💾 Archived View for hyperborea.org › tech-tips › fix-uefi.gmi captured on 2023-07-22 at 16:27:12. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2022-04-28)

➡️ Next capture (2024-08-31)

-=-=-=-=-=-=-

🖥️ Repair missing UEFI entry for Fedora Linux

After a windstorm led to multiple power dropouts*, I found that my computer would no longer boot to Fedora. It booted to Windows still, but wouldn’t load GRUB.

Fixing it was confusing, because it wasn’t clear where the problem was. I found lots of references to how to reinstall GRUB2 or how to regenerate a GRUB boot menu (which you can fix by booting to a live USB stick and mounting the system image or using specialized recovery tools), and lots of references to how to modify a Windows boot menu (depending on whether you are using UEFI or MBR), and so on, but the problem turned out to be that the UEFI firmware had lost the menu item, so it wouldn’t load GRUB, so GRUB couldn’t load Fedora.

This is how I added back that missing menu item:

"sudo efibootmgr -c -w -L Fedora -d /dev/sdb -p 1 -l /EFI/fedora/shim.efi"

-L is a label, which you can assign whatever you want.

-d is the disk with the EFI partition.

-p is the number of the EFI partition.

—Kelson Vibber, 2021-01-26

Web Edition

Tech Republic: How to Repair the Grub2 Boot Loader on Linux

Fedora Documentation: Reinstalling GRUB

More Tips

Fediverse: KelsonV@Wandering.shop