Install/Recover Grub2 from Linux Live CD/USB.

Recover/Reinstall/Repair Grub2 from a Linux Live Distribution (either via USB Stick or CD) is not a difficult procedure, and can be useful after the installation of another OS in the same Hard-Disk or simply id Grub Loader doesn’t work anymore.

Simply follow these simple steps, to have your Grub Loader working in the system again:

1. Boot a Linux Live Distribution and, from a working terminal, gain root privileges:

sudo -i

2. Check the drives number in Partition Manager :

fdisk -l

3. Find and Select the drive where the Installed Linux Distribution is (in the example /dev/sdaX):

mount /dev/sdaX /mnt
mount /dev/sdaX /mnt/boot
mount --bind /dev /mnt/dev/

4. Change the apparent root directory for the current running processes and its children:

chroot /mnt

5. (Re)Install Grub command (changing ‘a’ in “sda” with the correct hard drive identifier):

grub-install /dev/sda

6. UN-Mount devices:

umount /mnt/dev
umount /mnt

7. Reboot the machine:

reboot

Now Grub should work back again.


Comments are closed.