Skip to content

Instantly share code, notes, and snippets.

@brunoocasali
Created October 31, 2018 18:49
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 brunoocasali/cf8707c86513486dd4fd1e7df9c1056b to your computer and use it in GitHub Desktop.
Save brunoocasali/cf8707c86513486dd4fd1e7df9c1056b to your computer and use it in GitHub Desktop.
grub grub2
sudo su
mkdir /mnt/dir
mount /dev/sda6 /mnt/dir
for dir in proc dev sys etc bin sbin var usr lib lib64 tmp; do
mount -o bind $dir /mnt/dir/$dir
done
chroot /mnt/dir
# nano /etc/default/grub
# update-grub2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment