Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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
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
dracut -f --no-kernel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment