10-13-2009, 06:54 PM
1. Boot into a LiveCD
2. Open a terminal
3. Open the GRUB Command line utility by typing
sudo grub
4. Tell GRUB where your Ubuntu partition is by entering
root (hdA,B)
Where 'A' is the hard-drive number, starting at 0, and 'B' is the partition number, starting at 0. For example, if Ubuntu was installed on the second partition of the first hard-drive, the command should be
root (hd0,1)
5. Tell GRUB which drive to put the boot sector on
setup (hd0)
(replacing 0, as above, if a drive other than the first is used as the boot device)
6. Leave the GRUB Command line
quit
and reboot.
2. Open a terminal
3. Open the GRUB Command line utility by typing
sudo grub
4. Tell GRUB where your Ubuntu partition is by entering
root (hdA,B)
Where 'A' is the hard-drive number, starting at 0, and 'B' is the partition number, starting at 0. For example, if Ubuntu was installed on the second partition of the first hard-drive, the command should be
root (hd0,1)
5. Tell GRUB which drive to put the boot sector on
setup (hd0)
(replacing 0, as above, if a drive other than the first is used as the boot device)
6. Leave the GRUB Command line
quit
and reboot.