Preview:
# Mount the drive
$ mount /dev/sda5 /mnt
# Mount all partitions and devs
$ for i in /dev /dev/pts /proc /sys /run; do sudo mount -B $i /mnt$i; done
chroot /mnt
# Update grub
sudo grub-install /dev/sda
sudo update-grub



downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter