You might have been searching for instructions to reinstall grub after upgrading or reinstalling Windows on your systems to get your Ubuntu booting once again. Here are the steps.
- Boot to the 9.10 Karmic LiveCD Desktop.
- Open a terminal - Applications, Accessories, Terminal.
- Determine your normal system partition – (the switch is a lowercase “L”)
sudo fdisk -l- If you aren’t sure, run df -Th. Look for the correct disk size and ext3 or ext4 format.
- Mount your normal system partition:
- Substitute the correct partition: sda1, sdb5, etc.
- GRUB 2 counts the first drive as “0″, but the first partition as “1″
sudo mount /dev/sdXX /mnt - Only if you have a separate boot partition:
- sdYY is the /boot partition designation (examply sdb3)
sudo mount /dev/sdYY /mnt/boot
- Mount devices:
sudo mount --bind /dev/ /mnt/dev - Chroot into your normal system device: sudo chroot /mnt
- Reinstall GRUB 2:
- Substitute the correct device – sda, sdb, etc. Do not specify a partition number.
sudo grub-install /dev/sdX - Verify the install (use the correct device, for example sda. Do not specify a partition): sudo grub-install –recheck /dev/sdX
- Exit chroot: CTRL-D on keyboard
- Unmount devices: sudo umount /mnt/dev
- If you mounted a separate /boot partition: sudo umount /mnt/boot
- Unmount last device:
sudo umount /mnt - Reboot. reboot
Ubuntu 9.10 now comes with Grub2. To learn more about Grub2 use the following link:
https://help.ubuntu.com/community/Grub2
Enjoy!!!









“recheck” option actually has two dashes in front of it.
–recheck
Other than that minor typo, this was a wonderful, clear tutorial. Thank you so much.
“–recheck”
This thing won’t print double dashes. Anyway, thanks again.
Your instructions got me a bit closer, but still didn’t work. After running the grub-install script, I got some kind of error like “unable to resolve host ubuntu”. But it then completed and reported “no errors.” Otherwise, everything looked fine… only when I reboot, there’s #@&$&@! Windows again, no sign of GRUB.