How to default boot GRUB along with windows 10 on UEFI Boards

Few laptops mostly HP come with default OS as Windows, so they always try to boot from Windows EFI system.
They by default look for EFI/Microsoft/Boot/bootmgfw.efi even you have already installed grub.
To deal with this kind of situation you have to mainuplate the efi boot file, so every time it looks for efi boot file it should get grub efi file instead of windows efi.

On some systems the efi boot directory can be found at following location

/boot/efi/EFI/Microsoft/Boot/bootmgfw.efi


and on other systems (like arch linux) it can be found here

/boot/EFI/Microsoft/Boot/bootmgfw.efi

Here we go, we are going to set default efi file as grub instead of windows
So we first take a backup of original efi boot file

# cp /boot/EFI/Microsoft/Boot/bootmgfw.efi  /boot/EFI/Microsoft/Boot/bootmgfw2.efi

Then replace grub boot file with windows boot file

# cp /boot/EFI/GRUB/grubx64.efi /boot/EFI/Microsoft/Boot/bootmgfw.efi

Note: On ubuntu systems /boot/EFI/GRUB may be replaced by /boot/efi/EFI/ubuntu/
In that case (if you have ubuntu) run following

# cp /boot/efi/EFI/ubuntu/grubx64.efi /boot/efi/EFI/Microsoft/Boot/bootmgfw.efi

After doing that reboot the system and it will now boot into grub instead of windows.

Update

The above solution is not a permanent solution though, You can find permanent solution here which needs two boot drives http://lampjs.com/eufi-always-loads-windows-as-default-boot-but-why/

4 thoughts on “How to default boot GRUB along with windows 10 on UEFI Boards

  1. I’ve run into the same problem and found the same “solution”. My problem is now, that after a Win10 Update, it destroyed the startup because the update reinstalled /EFI/Microsoft/Boot/bootmgfw.efi.
    Do you know any persistent solution since I have 60 Laptops at my school and I cannot copy the grub.efi after every Windowsupdate at ebery laptop…

    Cheers,
    Jochen

Leave a Reply

Your email address will not be published. Required fields are marked *