You are not logged in.

#1 2013-04-26 19:25:55

Greed1sGood
Member
Registered: 2012-02-11
Posts: 44

[Solved] Can't add boot entry with efibootmg

After the last gnome update broke my system I decided to reinstall grub (It's a long story).
I'm booting from a live usb and after chrooting to my system I issue the efibootmgr command to add
new bios entry, but no entry is being added. I've loaded the efivars module and the efibootmgr command is
Executed without errors.

Its already the second day I'm trying to solve this issue, so any help will be greatly appreciated.

Last edited by Greed1sGood (2013-04-27 15:10:55)

Offline

#2 2013-04-27 15:10:22

Greed1sGood
Member
Registered: 2012-02-11
Posts: 44

Re: [Solved] Can't add boot entry with efibootmg

Managed to partialy solve the problem using the information in the following page:
Managing EFI Boot Loaders for Linux. The relevant paragraph is:

If you want the boot loader to be the default in case the NVRAM entries are cleared, you can use /boot/efi/EFI/BOOT as the target directory for the .efi file, and you can rename the boot loader to bootx64.efi (assuming an x86-64 architecture). On most systems, this name makes the boot loader the default.

.

Offline

#3 2013-04-27 15:26:46

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [Solved] Can't add boot entry with efibootmg

But it sounds like you did not actually solve the original problem... no?

So you say that you booted from a live media, and then tried to run an efibootmgr command from there.  Are you sure that you are booting the live media via UEFI?  If you do not boot with UEFI, you are not able to write boot manager entries.  It is kind of a chicken -> egg thing.

But if you use the \EFI\boot\bootx64.efi method to get your systemd running, you should now be able to successfully use efibootmgr.  To test to make sure that efibootmgr is working, see if running just "efibootmgr" (as root obviously) outputs all of your boot manager entries.

Also, if you are using an Arch live media that is at all recent, modprobing efivars is not necessary, as it is now built into the kernel.

Last edited by WonderWoofy (2013-04-27 15:31:27)

Offline

Board footer

Powered by FluxBB