-
-
Save embs/5822439 to your computer and use it in GitHub Desktop.
Mounting Linux partition
This file contains 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
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
Thanks