Last active
August 29, 2015 14:26
-
-
Save ikoner/97c696c33cdbacb0adc7 to your computer and use it in GitHub Desktop.
Repair, Restore, or Reinstall Grub 2 with a Mint Live CD or USB
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
if you have 64bit linux mint, you need 64bit live cd | |
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/sdX | |
grub-install --recheck /dev/sdX | |
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