Laptop lost power, now boots to grub terminal

Forgot my laptop on sleep so it drained the battery and was not powered for more than 24 hours, after restoring the UEFI/BIOS settings it now boots to a grub terminal, giving the “exit” command switches to systemd-boot and I can then boot into Tumbleweed.

How do I avoid having to exit from the grub terminal every time I boot into my laptop?
Many thanks.

Maybe the BIOS battery is drained to and now it has lost it settings.

Yes, it drained and lost the UEFI/BIOS settings, but I have already restored them and successfully booted into Tumbleweed after exiting the simplified grub terminal, the issue is that even after doing that it still gets to a grub terminal when I reboot the laptop instead of booting to the systemd-boot selection screen

Did you exchange the motherboard/BIOS battery?

You mean the BIOS battery? No, I don’t even know if it has one honestly. The laptop battery is fine it simply got drained and I’m now charging it back up, the laptop is hooked to the charger right now and it still does that, the UEFI/BIOS settings are being loaded fine as far as I am aware.

As superuser issue efibootmgr, you should see what is the current boot.
Then reboot, enter the BIOS and ensure that same boot option is the first one in the UEFI boot order (the exact way to do that depends on your FW/BIOS).

costanzo@costanzo-portatile:~> sudo efibootmgr
[sudo] password for root: 
BootCurrent: 0002
Timeout: 0 seconds
BootOrder: 0000,0002,0001,0003,0004
Boot0000* debian        HD(1,GPT,3b47be23-20f3-45b9-bf8e-c7ba98850f5c,0x800,0x1e8000)/File(\EFI\debian\shimx64.efi)
Boot0001* UEFI: BC511 NVMe SK hynix 256GB, Partition 1  HD(1,GPT,3b47be23-20f3-45b9-bf8e-c7ba98850f5c,0x800,0x1e8000)/File(\EFI\Boot\BootX64.efi)0000424f
Boot0002* openSUSE Boot Manager HD(1,GPT,3b47be23-20f3-45b9-bf8e-c7ba98850f5c,0x800,0x1e8000)/File(\EFI\systemd\shim.efi)
Boot0003* Onboard NIC(IPV4)     PciRoot(0x0)/Pci(0x1f,0x6)/MAC(3448ed092975,0)/IPv4(0.0.0.00.0.0.0,0,0)0000424f
Boot0004* Onboard NIC(IPV6)     PciRoot(0x0)/Pci(0x1f,0x6)/MAC(3448ed092975,0)/IPv6([::]:<->[::]:,0,0)0000424f

So, I used to have Debian 13 on this laptop but I did a clean install of Tumbleweed so I thought that the Debian files in the boot partition were no longer there.

IIRC the boot option selected in the BIOS should be the same as Boot0001 but I’ll check now and let you know.

Should I delete the Debian boot? How do I do that?

So, yeah, the UEFI somehow recovered the Debian boot option even if it wasn’t there at first and since Debian13 is no longer installed it booted me into an empty Grub Shell.

I have now told the UEFI to ignore the Debian Boot and it boots right into the systemd-boot selection for Tumbleweed.

I will now delete any trace left of Debian from the boot partition so that an issue like that doesn’t present itself in the future.

(It also put SecureBoot into audit mode even if I didn’t tell it to do so, which is interesting)

sudo efibootmgr --bootorder 0002,0001,0003,0004,0000
and if you wish:
sudo efibootmgr --bootnum 0000 --delete-bootnum
also if you wish, after you rebooted into normal openSUSE
sudo rm -rvf /boot/efi/EFI/debian/

Thank you very much

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.