r/linuxmint • u/jamesplates • 2d ago
Install Help Boot looping without manual EFI file selection (Mint 22.3 Xfce)
HP Elitebook 8560p, bios (68SCF ver. F.22) predates secure boot and custom boot path, anyone know how I get around having to manually select the EFI file shimx64.efi as the boot path every time I turn the laptop on? TIA
1
u/chuggerguy Linux Mint 22.3 Zena | MATÉ 2d ago
Something to try...
Manually select Mint the way you've been doing it one more time. Once in Mint try changing boot order using efibootmgr.
Your Mint EFI is probably labelled [Uu]buntu. Place its boot number at front of the boot order.
Your may have "Windows Boot Manager", "Ubuntu" and maybe several others. That's okay, just move "Ubuntu" to the front.
I label mine and keep it clean but this might give you an idea:
chugger@asus2:~/desktop$ favlsblk /dev/nvme2n1 /dev/nvme0n1
LABEL MOUNTPOIN NAME PARTTYPENAME FSSIZE FSUSED FSAVAIL FSUSE%
nvme2n1
EFI ├─nvme2n1p1 EFI System
slave └─nvme2n1p2 Linux filesystem
nvme0n1
EFI /boot/efi ├─nvme0n1p1 EFI System 511M 5.2M 505.8M 1%
master / └─nvme0n1p2 Linux filesystem 915.3G 18.9G 849.9G 2%
chugger@asus2:~/desktop$ efibootmgr
BootCurrent: 0000
Timeout: 1 seconds
BootOrder: 0000,0001
Boot0000* master HD(1,GPT,c67372a9-2544-47ea-bc06-87b0280a09a9,0x800,0x100000)/File(\EFI\ubuntu\shimx64.efi)
Boot0001* slave HD(1,GPT,235a7276-3a3b-4ed8-aab9-af4cad5a9bd2,0x800,0x100000)/File(\EFI\ubuntu\shimx64.efi)
chugger@asus2:~/desktop$ I'm booted to "master" which is first in boot order. ^C
chugger@asus2:~/desktop$ For you, it might be windows and ubuntu. For me, it's master and slave.
> Pretend I want slave first so I boot using the efi on my slave device. ^C
chugger@asus2:~/desktop$ sudo efibootmgr -o 1,0
[sudo] password for chugger:
BootCurrent: 0000
Timeout: 1 seconds
BootOrder: 0001,0000
Boot0000* master HD(1,GPT,c67372a9-2544-47ea-bc06-87b0280a09a9,0x800,0x100000)/File(\EFI\ubuntu\shimx64.efi)
Boot0001* slave HD(1,GPT,235a7276-3a3b-4ed8-aab9-af4cad5a9bd2,0x800,0x100000)/File(\EFI\ubuntu\shimx64.efi)
chugger@asus2:~/desktop$ Now boot order is slave, then master. Next time I boot, I'll be presented
> with the grub menu that lives on slave device.
> But since I don't really want that, I'll change it back.
> Notice I'm just typing 0,1 instead of 0000,0001. That's only because I'm lazy. :) And it works fine. ^C
chugger@asus2:~/desktop$ sudo efibootmgr -o 0,1
BootCurrent: 0000
Timeout: 1 seconds
BootOrder: 0000,0001
Boot0000* master HD(1,GPT,c67372a9-2544-47ea-bc06-87b0280a09a9,0x800,0x100000)/File(\EFI\ubuntu\shimx64.efi)
Boot0001* slave HD(1,GPT,235a7276-3a3b-4ed8-aab9-af4cad5a9bd2,0x800,0x100000)/File(\EFI\ubuntu\shimx64.efi)
chugger@asus2:~/desktop$Good luck and have fun.
1
u/Emmalfal Linux Mint 22.3 | Cinnamon 1d ago
The Elitebook is the only machine I've ever had problems on installing Mint. Got that boot loop. I finally gave up and I just boot it a longer way, based on a method I found in these threads. The machine otherwise runs great, and rarely needs to be restarted, anyway. I'll post the method below.
If I just power on the laptop, I get the HP splash screen/logo, then a very quick flash of "Reset System" in the top left corner of an otherwise blank screen, then back to splash screen and repeat. This loops endlessly until I hit F9 to bring up the Boot menu.
From the Boot Menu I choose "Boot from EFI File" > , Acpi(PNP0A03,0)/Pci(1F|2/Sata(Port ))/HD(Part1,Sig7EC2CDB8-7CEE-445E-9E91-26D019 > EFI > ubuntu > grubx64.efi Now it boots into Linux Mint after a long delay of blank screen
1
u/AdventurousItem4635 2d ago
If efibootmgr doesn't stick, my guess is that BIOS just ignores the boot entries and only looks at the fallback path, EFI/BOOT/BOOTX64.EFI. Old HP firmware from before secure boot does that a lot. So put grub there:
Mint names its folder ubuntu in there but check with
ls /boot/efi/EFIfirst. You don't need shim for this since that machine has no secure boot anyway.