Recovering From GRUB Failures
Sometimes life belches and GRUB fails to function. Here are some basic steps toward recovery.
- Boot with a Live ISO, preferably the same as the operating system.
- Launch a terminal window.
- Elevate privileges:
sudo su -
mkdir /mnt/chroot
Discover which hard disk partition is the system partition.
mount /dev/sdaX /mnt/chroot
whereX
is the system partition.mount --bind /dev /mnt/chroot/dev
mount --bind /proc /mnt/chroot/proc
mount --bind /sys /mnt/chroot/sys
mount --bind /tmp /mnt/chroot/tmp
If there are no error messages then chroot
into the hard disk system partition.
chroot /mnt/chroot
At this point access to the installed system is available, almost as though booting with a good GRUB boot menu.
Restore GRUB:
- Mount all partitions:
mount -a
- Update GRUB:
update-grub
- Install GRUB:
grub-install
- Update the initrd:
update-initramfs -u
- Exit the chroot:
exit
Reboot. Hopefully GRUB is repaired.
Posted: Usability Tagged: General
Category:Next: isolinux.bin Missing or Corrupt
Previous: Converting MBR to GPT