Skip to content

Restoring GRUB

If you install Windows after you installed Ubuntu, you’ll need to restore GRUB to allow choosing the system to boot. Fosswire has a tutorial for Restoring an Overwritten GRUB Boot Loader. The basic idea is to

  1. boot a live Linux system from CD or USB
  2. mount the lost system partition
  3. sudo -i to become full root
  4. bind the devices: “mount -o bind /dev /mnt/system/dev”
  5. chroot: “chroot /mnt/system”
  6. install GRUB: “grub-install /dev/sda”

That should reset the drive’s boot sector and allow choosing which OS to run on the next boot.

One comment refers to a simpler method at the How-To Geek: Reinstall Ubuntu Grub Bootloader After Windows Wipes it Out. This one just runs grub from the live boot and tells it to setup the root partition. Steps: “sudo grub” – “> root (hd0,0)” – “> setup (hd0)” – “> exit”

Post a Comment

You must be logged in to post a comment.