Created
June 3, 2015 03:11
-
-
Save alambike/4fdade40fcfad08d89f5 to your computer and use it in GitHub Desktop.
Commands to repair grub2 from a live cd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo mount /dev/sdXY /mnt | |
sudo mount --bind /dev /mnt/dev && | |
sudo mount --bind /dev/pts /mnt/dev/pts && | |
sudo mount --bind /proc /mnt/proc && | |
sudo mount --bind /sys /mnt/sys | |
sudo chroot /mnt | |
grub-install /dev/sdXY | |
grub-install --recheck /dev/sdXY | |
update-grub |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment