Created
June 23, 2018 16:49
-
-
Save styx/936321cadd33e145a41b367a3fcb6a03 to your computer and use it in GitHub Desktop.
FIx grub2 after win10 installation
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
sudo mount /dev/sdXXX /mnt | |
sudo mount /dev/sdXX /mnt/boot/efi | |
for i in /dev /dev/pts /proc /sys /run; do sudo mount -B $i /mnt$i; done | |
sudo chroot /mnt | |
grub-install /dev/sdX | |
update-grub | |
Put this in your /etc/grub.d/40_custom file: | |
menuentry 'Windows 10' { | |
search --fs-uuid --no-floppy --set=root D464-A236 | |
chainloader (${root})/EFI/Microsoft/Boot/bootmgfw.efi | |
} | |
grub-mkconfig -o /boot/grub.cfg | |
blkid | |
https://ihaveabackup.net/article/grub2-entry-for-windows-10-uefi | |
dracut -f --no-kernel |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment