Skip to content

Instantly share code, notes, and snippets.

@fberndl
Forked from embs/mnt
Created September 18, 2018 10:13
Show Gist options
  • Save fberndl/5504f55086dc5b2262fe7f0a33a5f892 to your computer and use it in GitHub Desktop.
Save fberndl/5504f55086dc5b2262fe7f0a33a5f892 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment