Restore GRUB after installing windows 7
I have re installed windows 7 on my desktop PC in order to get the latest and replace my RC installation, installation was quite fine and windows was set up.
The thing was that I had double boot, windows and ubuntu 9.04.
After installing Windows, my GRUB loader was wiped out by the windows installer, so I had to restore that, here are the steps I followed, pretty simple and easy to achieve:
1. Pop in the Live CD, boot from it until you reach the desktop.
2. Open a terminal window or switch to a tty.
3. Type “grub”
4. Type “root (hd0,6)”, or whatever your harddisk + boot partition
numbers are (my /boot is at /dev/sda7, which translates to hd0,6 for
grub).
5. Type “setup (hd0)”, ot whatever your harddisk nr is.
6. Quit grub by typing “quit”.
7. Reboot.
The original post can be found here: http://ubuntuforums.org/archive/index.php/t-24113.html