I have an HP 500-413nl (a desktop) and Windows 10 keeps changing the boot order in UEFI/BIOS every time, so that if I want to boot Ubuntu 16.10 (64-bit) I always have to press F10, thus entering the BIOS setup and changing boot order…
Is there a workaround for my PC? What should I do? I'm a little desperate.
P.S.: I have already disabled "Secure boot" and "Fast/quick boot" in the BIOS and "Fast startup" in Windows options / Control panel.
sudo efibootmgr -c -g -d /dev/sdX -p 2-w -L "UEFI hard drive" -l '\EFI\Boot\bootx64.efi'
I changed settings to match your ESP of sda2. see man efibootmgr for details of parameters. – oldfred Oct 19 '16 at 22:43sudo efibootmgr -c -g -d /dev/sdX -p 2-w -L "UEFI hard drive" -l '\EFI\Boot\bootx64.efi'
it gave me this output:efibootmgr: Could not set variable: No such file or directory efibootmgr: Could not prepare boot variable: No such file or directory
– JK andy-drew Oct 20 '16 at 18:01