Linux‎ > ‎

Grub

Repair a broken GRUB bootloader

posted Apr 15, 2013, 1:13 PM by Joe Bieber

Boot to a Linux live CD.

From the live CD, Use Gparted or Gnome-disk-utility to find which partiton holds your Linux OS and mount it.

sudo mount /dev/sda# /mnt

Bind mount the following from your Linux partition.

for i in /sys /proc /run /dev; do sudo mount --bind "$i" "/mnt$i"; done

chroot to your Linux installation

sudo chroot /mnt

Update GRUB

update-grub

Install GRUB to the MBR

grub-install /dev/sda

Update GRUB again for good measure

update-grub 

Exit and reboot

exit

sudo reboot

Hopefully all is well.

1-1 of 1