Go to ...

Techpository

A Better Technical Repository

RSS Feed

Linux: Reinstalling Grub


Boot into a live Linux CD or USB
(Note: It is safest to us the same version of OS that is on your PC, but at minimum match the 32bit or 64bit and the Grub version)

Start a terminal session
Type: sudo fdisk -l
Find the boot partition of you linux installation (In this example we have it install on /dev/sda5)

sudo mount /dev/sda5 /mnt *****Using the linux installation on your hard drive instead of /dev/sda5
Create some neccessary hardlinks
sudo mount –bind /dev /mnt/dev
sudo mount –bind /proc /mnt/proc
sudo mount –bind /sys /mnt/sys
sudo chroot /mnt
grub-install /dev/sda *****Using your boot device instead of /dev/sda
CTRL-D
sudo umount /mnt/dev
sudo umount /mnt/proc
sudo umount /mnt/sys
sudo umount /mnt

 

By: Nixie modified by Nighthawk