Created
March 23, 2016 00:11
-
-
Save doorbash/884f7548895b74de4240 to your computer and use it in GitHub Desktop.
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
# Mount root partition: | |
sudo mount /dev/sdXY /mnt # /dev/sdXY is your root partition, e.g. /dev/sda1 | |
# If you have a separate boot partition you'll need to mount it also: | |
sudo mount /dev/sdYY /mnt/boot | |
# Mount your virtual filesystems: | |
for i in /dev /dev/pts /proc /sys /run; do sudo mount -B $i /mnt$i; done | |
# Chroot | |
sudo chroot /mnt | |
update-grub |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment