-
-
Save umpirsky/cad3b52717905e5ebb9e to your computer and use it in GitHub Desktop.
Reinstall GRUB
This file contains hidden or 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/dm-2 /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/dm-2 | |
grub-install --recheck /dev/dm-2 | |
update-grub | |
exit && | |
sudo umount /mnt/sys && | |
sudo umount /mnt/proc && | |
sudo umount /mnt/dev/pts && | |
sudo umount /mnt/dev && | |
sudo umount /mnt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment