Skip to content

Instantly share code, notes, and snippets.

@embs
Created June 20, 2013 12:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save embs/5822439 to your computer and use it in GitHub Desktop.
Save embs/5822439 to your computer and use it in GitHub Desktop.
Mounting Linux partition
Boot your system into a live CD. Mount your system into the live CD:
sudo mount /dev/sda1 /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
Log into the mounted system:
sudo chroot /mnt
Install grub:
grub-install --boot-directory=/boot/ --recheck /dev/sda
Reboot your system.
@TroiSilver
Copy link

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment