Skip to content

Instantly share code, notes, and snippets.

@styx
Created June 23, 2018 16: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 styx/936321cadd33e145a41b367a3fcb6a03 to your computer and use it in GitHub Desktop.
Save styx/936321cadd33e145a41b367a3fcb6a03 to your computer and use it in GitHub Desktop.
FIx grub2 after win10 installation
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