Monday, October 26, 2009

Fix GRUB After Installing Windows 7

If just like me you installed Windos 7 (or vista) on a computer running Ubuntu Linux in a different partition, then ,just like me, you lost GRUB. Now the computer boots straight to Windows 7. Don't worry. Follow these steps to recover GRUB and bring back the GRUB boot menu.

First: Boot from the Ubuntu live CD and open a terminal.
Second: type this in the terminal:

  1. sudo grub
  2. find /boot/grub/stage1
  3. root (x,y)
  4. setup (x)
  5. quit
  6. sudo shutdown "now" -r
Replace "x" and "y" with the results from the find command.
Also, remember to edit the file /boot/grub/menu.lst to make sure the GRUB menu shows all the operating systems in your computer.

This tip is from David Mooney

No comments:

Post a Comment