Skip to content

Instantly share code, notes, and snippets.

@doorbash
Created March 23, 2016 00:11
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 doorbash/884f7548895b74de4240 to your computer and use it in GitHub Desktop.
Save doorbash/884f7548895b74de4240 to your computer and use it in GitHub Desktop.
# 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