Saturday, May 19, 2007

Reinstalling GRUB in Ubuntu Feisty Fawn

After reading from many forums and mailing lists, these are the steps I used to reinstall GRUB in Ubuntu.

1. boot using the Live CD
2. open terminal
3. sudo mkdir /mnt/ubuntu
4. sudo mount /dev/hdxn /mnt/ubuntu (replace hdxn with the device where you have installed Ubuntu, mine is hdb5)
5. sudo chroot /mnt/ubuntu
6. type 'sudo grub' and then Enter, you will see grub prompt ('grub>')
7. find /boot/grub/stage1 (please remember the output)
8. root (hdn,n) -> replace with the output from step 7
9. setup (hd0) -> install the grub in MBR
10. quit

Restart your computer and voilaaaa.... grub is installed!

0 Comments:

Post a Comment

<< Home