Skip to content

Instantly share code, notes, and snippets.

@ikoner
Last active August 29, 2015 14:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ikoner/97c696c33cdbacb0adc7 to your computer and use it in GitHub Desktop.
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
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