Created
February 6, 2018 10:53
-
-
Save cevhyruz/8de97c9a03a11898d2880c94f6c0d2dc to your computer and use it in GitHub Desktop.
fix can't boot into grub: win-linux dual boot
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
#!/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