Home > Linux > Restore Grub 2 Using LiveCD

Restore Grub 2 Using LiveCD

Restore Grub 2 Using LiveCD
Grub 2 typically gets overridden when you install Windows or another operating system. To make Grub 2 control the boot process, you need to reinstall (repair/restore) Grub 2 using a Ubuntu live CD.

Boot the computer using live CD. Open the Terminal. Using the following commands to mount the partition your Ubuntu Installation is on. If you are not sure which it is, launch GParted (included in the Live CD) and find out. Replace the XY in the command with your drive letter and partition number.

sudo mount /dev/sdXY /mnt
sudo mount --bind /proc /mnt/proc
sudo mount --bind /dev /mnt/dev
sudo mount --bind /sys /mnt/sys

Now you need to change root using chroot command.

sudo chroot /mnt

Now install and Grub 2. This time you only need to add the partition letter (no number) to replace X.

grub-install /dev/sdX
grub-install --recheck /dev/sdX

Now you can exit you mounted hard disk and unmount.

exit
sudo umount /mnt/sys
sudo umount /mnt/dev
sudo umount /mnt/proc
sudo umount /mnt

Shut down and turn your computer back on, and you will be met with the default Grub2 screen. You may want to update or re-configure Grub 2 using the method mentioned in Grub 2 Configuration to the way you like it.

Reference
How to Repair/Restore/Reinstall Grub 2 with a Ubuntu Live CD.

Categories: Linux Tags:
  1. No comments yet.
  1. No trackbacks yet.