I had quite some problems starting Ubuntu on my new/used HP Elitebook 840 G2. I installed a dual boot system with Windows 10 and Ubuntu 18.04. Whatever I did the system would only boot into Windows. In the boot device selection menu (accessed by pressing the Esc key at startup) however there was an entry for Ubuntu which made it load grub. I disabled Secure Boot, copied all the files from /boot/efi/ubuntu
into /boot/efi/BOOT
, and deleted all the files there, but none of these things solved the problem. There was also a menu for the boot order but the "ubuntu" entry did not appear there.
Finally I renamed the "Microsoft" folder on the EFI partition. This made the system load grub directly (although the Windows entry is no longer working, bad luck Microsoft). Is it possible that the UEFI loader has a hard-coded setting which prefers hard-coded entries in folders named Microsoft? It seems pretty strange or is there another explanation for this behavior?
For the Windows entry in grub I can now edit the command every time using "e" on the Windows 10 entry and correcting the folder name of the .efi file. Is there a way to make this edit permanent? I looked into the settings (/etc/default/grub
), but did not find settings there.