How to recover GRUB after installing Windows
Posted on 19. Jan, 2009 by miguel in technology

Many Linux distributions offer a boot loader called GRUB. Using GRUB you can choose among different operating systems installed on your computer when it boots. If you install Windows later it will replace the loader into MBR so you won’t enjoy GRUB anymore. But you can get it back in five easy steps.
- Boot a Desktop/Live CD (e.g. Ubuntu CD).
- Open a terminal (e.g. on Ubuntu: Applications > Accessories > Terminal).
- In terminal, start GRUB as root.
sudo grub - And then:
grub> root (hd0,0)
grub> setup (hd0)
grub> quit
The “root” line must point to the location of your /boot/ partition. In that line “hd0,0″ means first disk and first partition. You can change it according to your system configuration (e.g. hd1,2 for second disk and third partition). - And finally, reboot.
sudo reboot
Reference: Recovering Ubuntu after installing Windows – Community Ubuntu Documentation.