Want to remove some boot entries

I have an ASUS motherboard running a UEFI bios. I have been using it for many years and tried out many distros along the way. After my latest fiasco I was forced to reinstall my OSes. But I have hit a funny problem:

When I insert the USB and go into my BIOS to select the USB as the boot device, the BIOS freezes.

As far as I can tell, there are 8 boot devices available. Adding the USB makes the number 9, which I am theorizing causes the freeze.
Since 7 of these entries don’t work, is there any way, using efibootmgr or something else, that would make these entries disappear?

Here is the output of efibootmgr:

type or paste clocalhost:/home/jc # efibootmgr
BootCurrent: 000E
Timeout: 1 seconds
BootOrder: 000E,000D,000F,0010,0002,0003,0004,0001
Boot0001* Hard Drive    BBS(HD,,0x0)0000474f00004e4fb700000001000000750057004400430020002000570044005300310030003000540032004200300042002d0030003000590053003700300000000501090002000000007fff040002010c00d041030a0000000001010600010801010600020003120a000300ffff00007fff040001043e00ef47642dc93ba041ac194d51d01b4ce63900310035003000330038003000380036003000320039002000200020002000200020002000200000007fff04000000424f00004e4fb700000001000000750057004400430020002000570044005300310030003000540032004200300041002d003000300053004d003500300000000501090002000000007fff040002010c00d041030a0000000001010600030101010600010003120a000400ffff00007fff040001043e00ef47642dc93ba041ac194d51d01b4ce63000320036003300360039003000380036003200370031002000200020002000200020002000200000007fff04000000424f
Boot0002* CD/DVD Drive  BBS(CDROM,,0x0)0000474f00004e4fb5000000010000007500410053005500530020002000200020004400520057002d003200340042003100530054002000200020006a0000000501090003000000007fff040002010c00d041030a0000000001010600030101010600010003120a000500ffff00007fff040001043e00ef47642dc93ba041ac194d51d01b4ce638004a00300044004c0043003100300039003800370039002000200020002000200020002000200000007fff04000000424f
Boot0003* Fedora        HD(2,GPT,434be06a-6729-4f0a-9a44-715d71d72afb,0x7800800,0x219800)/File(\EFI\FEDORA\SHIM.EFI)0000424f
Boot0004* opensuse      HD(2,GPT,434be06a-6729-4f0a-9a44-715d71d72afb,0x7800800,0x219800)/File(\EFI\OPENSUSE\GRUBX64.EFI)0000424f
Boot000D* opensuse-secureboot   HD(2,GPT,434be06a-6729-4f0a-9a44-715d71d72afb,0x7800800,0x219800)/File(\EFI\OPENSUSE\SHIM.EFI)
Boot000E* Ubuntu        HD(2,GPT,434be06a-6729-4f0a-9a44-715d71d72afb,0x7800800,0x219800)/File(\EFI\UBUNTU\SHIMX64.EFI)
Boot000F* Fedora        HD(2,GPT,434be06a-6729-4f0a-9a44-715d71d72afb,0x7800800,0x219800)/File(\EFI\FEDORA\SHIMX64.EFI)
Boot0010* openSUSE Boot Manager HD(2,GPT,434be06a-6729-4f0a-9a44-715d71d72afb,0x7800800,0x219800)/File(\EFI\SYSTEMD\SHIM.EFI)
localhost:/home/jcode here

@featherfoot Should be able to delete entries in the BIOS? If not efibootmgr -b NNNN -B NNNN to remove…

With a less than ideal UEFI BIOS, malcolmlewis’s recommendation employed may not persist. If the defunct ESP directories remain on the filesystem, they would need to be removed manually. The same problem may occur if there remains unused raw disk space formerly used by an ESP deleted from partition table which space hasn’t been wiped.

The problem was solved. Using efibootmgr to delete entries did not work. I eventually found a method to delete entries in the advanced settings of the BIOS.

Thank you for your help.

1 Like