Saturday, February 1, 2014

[Linux] HOW TO: Grub update / repair.


Hello again!

In this tutorial, you will learn how to repair or update grub on your system.

(Tested on Linux MINT 16 - CINNAMON 64bit edition)

1) Chose partition for grub installation. For list of partition use lsblk:

sudo lsblk -o NAME,FSTYPE,LABEL,UUID,SIZE
My output -> click

In this tutorial, I will use /dev/sda6.

2) Mount chosen partition:

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

3) Make chroot for /mnt, update grub and exit chroot:

sudo chroot /mnt
sudo update-grub
exit

4) Un-mount at the end:

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

5) You are done. Just restart system, grub should be there :)

No comments :

Post a Comment