You are not logged in.

#1 2015-07-27 15:43:06

Bruno_Mattar
Member
Registered: 2015-04-26
Posts: 7

Deleted all boot entries using Efibootmgr

I acidently deleted the boot entries of my uefi ultrabook, which include the entries for booting directly to the HD, the boot for USB HDD, but luckly the USB CD boot was kept, allowing me to still boot some stuff using rEFInd. Is there any way to restore the default entries from my ultrabook, or to re-add them manually? I can't simply open and restart the BIOS because it's a ultrabook. Thank you.

Offline

#2 2015-07-27 17:49:58

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,732
Website

Re: Deleted all boot entries using Efibootmgr

Your firmware should automatically boot the file at $ESP/EFI/Boot/BOOTX64.EFI

If it doesn't, there may be an option to boot from a filesystem device (this will allow you to browse the EFI system partition and select the above loader).

If you were using gummiboot, then it will have copied the binary to that location during installation

If you were using GRUB, you can copy the "GRUBx64.EFI" bootloader file to the above location.

Alternatively, load the Arch live ISO and `arch-chroot` into your system and re-install your boot{loader,manager} -- this will create new NVRAM entries.

As a last resort, you can create your own NVRAM entry using the `efibootmgr` command:
https://wiki.archlinux.org/index.php/EF … bootmgr.29

Offline

#3 2015-07-27 17:58:05

Bruno_Mattar
Member
Registered: 2015-04-26
Posts: 7

Re: Deleted all boot entries using Efibootmgr

Thank  you for your reply, but I didn't lose my arch boot. I lost the UEFI options to boot devices. If I plug a live usb, it won't boot because I deleted the option to select it. In can only boot through USB-CD or my pre-installed Arch.

Offline

#4 2015-07-27 18:03:28

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,732
Website

Re: Deleted all boot entries using Efibootmgr

My firmware automatically re-creates such entries on-the-fly whenever a storage device with an ESP is inserted during boot up.

Check you firmware options for any menus related to these entries; in my system they can be disabled and re-enabled from there.

Give me a minute, I'll reboot and get the syntax of the entry for you...

EDIT:

empty@Arch ~ % sudo efibootmgr -v
BootCurrent: 0001
Timeout: 0 seconds
BootOrder: 0001,0002
Boot0001* UEFI OS	HD(1,GPT,50b97d29-e1fb-49ac-ae7e-b8f44a1002ba,0xde95000,0xffb8f)/File(\EFI\BOOT\BOOTX64.EFI)
Boot0002* UEFI: KingstonDataTraveler 2.01.00	PciRoot(0x0)/Pci(0x1d,0x0)/USB(1,0)/USB(5,0)/HD(1,MBR,0x1623539679,0xfc,0xf800)..BO

It just shows the PCI address sad

I think you will just have to fiddle with your firmware options, is there one to "reset to default settings" or similar?

Last edited by Head_on_a_Stick (2015-07-27 18:07:01)

Offline

#5 2015-07-27 19:40:35

Bruno_Mattar
Member
Registered: 2015-04-26
Posts: 7

Re: Deleted all boot entries using Efibootmgr

I booted the efi menu of the motherboard, tried every option but I can't restore the boot options... Not even with the "restore setup defaults" nor "restore defaults optimized". My hope is to do something with the efibootmgr or some other program to "re-enter" the usbs and hdds boot entries, but can't find anywhere.

Offline

#6 2015-07-27 20:21:51

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,732
Website

Re: Deleted all boot entries using Efibootmgr

Are you sure the NVRAM entries are not created dynamically by your firmware when you boot with a USB stick attached?

I always clear all my NVRAM entries out (as you can see above) and never have any problem booting from UEFI CDs/DVDs/USB sticks.

Looking at efibootmgr(8), there do seem to be flags relating to PCI devices and suchlike.

I think you may be able to do it with "-E" & "-e" but I can't immediately figure out how...

Offline

#7 2015-07-28 04:11:58

Bruno_Mattar
Member
Registered: 2015-04-26
Posts: 7

Re: Deleted all boot entries using Efibootmgr

Thank you for all your replies. I'll try to "play" with the efibootmgr and those commands you said. If I get anything, I'll message you smile

Offline

#8 2015-07-28 08:30:28

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,732
Website

Re: Deleted all boot entries using Efibootmgr

Bruno_Mattar wrote:

If I get anything, I'll message you smile

Post any progress here for the benefit of other Archers wink
https://wiki.archlinux.org/index.php/Fo … way_street

Anyway, I *never* check my emails... tongue

Offline

#9 2015-07-28 11:01:53

Buddlespit
Member
From: Chesapeake, Va.
Registered: 2014-02-07
Posts: 501

Re: Deleted all boot entries using Efibootmgr

@Bruno_Mattar- Do you not have a "Press Fxx for boot options" on the firmware boot screen?

Offline

#10 2015-07-28 14:21:49

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,804

Re: Deleted all boot entries using Efibootmgr

Head_on_a_Stick wrote:

Anyway, I *never* check my emails... tongue

I've good reason to believe that sad


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#11 2015-07-29 22:47:33

Bruno_Mattar
Member
Registered: 2015-04-26
Posts: 7

Re: Deleted all boot entries using Efibootmgr

Head_on_a_Stick, I meant I would post a reply here.
Buddlespit, they're gone from there too, that's the problem. I can no longer boot a usb flash unless I use something like rEFInd.

Anyway, I completely messed it yesterday trying to fix, now I don't have access to the bios also and all I see is a black screen (secure boot got activated during my "fix"). Left it on repair, hoping not to lose the computer...

Offline

Board footer

Powered by FluxBB