Skip to content

Instantly share code, notes, and snippets.

@cevhyruz
Created February 6, 2018 10:53
Show Gist options
  • Save cevhyruz/8de97c9a03a11898d2880c94f6c0d2dc to your computer and use it in GitHub Desktop.
Save cevhyruz/8de97c9a03a11898d2880c94f6c0d2dc to your computer and use it in GitHub Desktop.
fix can't boot into grub: win-linux dual boot
#!/usr/bin/env bash
mount /dev/sda3 /mnt
mount --bind /dev /mnt/dev
mount --bind /dev/pts /mnt/dev/pts
mount --bind /proc /mnt/proc
mount --bind /sys /mnt/sys
chroot /mnt
grub-install /dev/sda
update-grub
exit
umount /mnt/dev/pts
umount /mnt/dev
umount /mnt/proc
umount /mnt/sys
umount /mnt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment