Accidentally reset BIOS option, lost boot option for Linux, how to recover?

Hello, I am using a 2024 ThinkPad T16 Gen 3. I have installed openSUSE Tumbleweed with secure boot disabled and have been using it for a month. Last night, I reset BIOS to factory defaults and lost access to dual booting with openSUSE Tumbleweed. I noticed this when I was forced to boot into Windows without secure boot (asking for my email address for verification) and I got in but it shows that my files are intact and my partition still exists.

I tried to use Mir_ppc’s advice in USB flash drive recovery mode to reassign the bootloader to ESP GitHub - Mirppc/Grub-Recovery-SUSE: guide on how to recover from a broken grub install and also how to repair your suse system with access to the system's yast utility.. However, this wasn’t successful as I was unable to run grub2-install in the last step. Included below is a picture of where I’m stuck at (I can’t upload more than one picture as a new user).

If anyone knows how to fix this or needs more info, please let me know!

“EFI variables are not supported on this system” occurs due to current boot not in UEFI mode. Try booting your original installation media in UEFI mode, selecting to boot installed system. Efibootmgr can be used directly to create a boot entry. Grub2-install isn’t necessary.

It is in UEFI mode. The BIOS tells me the UEFI version and everything. Lenovo said that they also removed the ability to run Legacy Mode. I flashed my drive in GPT.

As part of your rescue attempt, you used:

mount --bind /sys /mnt/sys

Try again, but this time use:

mount --rbind /sys /mnt/sys

The “–bind” is okay for the other mounts. But you need the “–rbind” for “/sys” because some efi stuff is mounted below that.

1 Like

This is what I have. Do I reboot now? Is it done?

Thank you very much! It works now!

2 Likes

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