Tuesday, January 19, 2010

Backup, Repairing and Reinstalling GRUB

1. Boot your computer up with Ubuntu Live CD
2. Open a terminal window or switch to a tty.
3. Change to SuperUser (that is, type "sudo -s"). Enter root passwords as necessary.
4. Type "grub"
5. Type "find /boot/grub/stage1". You'll get a response like "(hd0,1)". Use whatever your computer spits out for the following lines.
6. Type "root (hd0,1)", or whatever your hard disk + boot partition numbers are for Ubuntu.
7. Type "setup (hd0)", to install GRUB to MBR, or "setup (hd0,1)" or whatever your hard disk + partition nr is, to install GRUB to a partition.
8. Quit grub by typing "quit".
9. Reboot and remove the bootable CD.

These instructions from https://help.ubuntu.com/community/GrubHowto

No comments: