EFIBOOTMGR(8)
๐ EFIBOOTMGR(8) โ efibootmgr ๐
โจ NAME โจ
efibootmgr โ change the UEFI Boot Manager configuration. That's the whole name vibe, bestie. ๐
๐ SYNOPSIS ๐
efibootmgr [ -a ] [ -A ] [ -b XXXX ] [ -B ] [ -c ] [ -d DISK ] [ -D ] [ -e 1|3|-1 ] [ -E NUM ] [ --full-dev-path | --file-dev-path ] [ -f ] [ -F ] [ -g ] [ -i NAME ] [ -l NAME ] [ -L LABEL ] [ -m t|f ] [ -M X ] [ -n XXXX ] [ -N ] [ -o XXXX,YYYY,ZZZZ ... ] [ -O ] [ -p PART ] [ -q ] [ -r | -y ] [ -t seconds ] [ -T ] [ -u ] [ -v ] [ -V ] [ -w ] [ -@ file ]
๐ DESCRIPTION ๐
okay so efibootmgr is a userspace application used to modify the UEFI Boot Manager. This application can create and destroy boot entries, change the boot order, change the next running boot option, and more. It's giving boot-manager main character energy, no cap. ๐
Details on the UEFI Boot Manager are available from the UEFI Specification, v1.02 or later, available from: http://www.uefi.org
Note:efibootmgrrequires that the kernel support access to EFI non-volatile variables through/sys/firmware/efi/varsor/sys/firmware/efi/efivars/. bestie, pls check that first, iykyk. ๐ซถ
๐ฆ OPTIONS ๐ฆ
The following is a list of options accepted by efibootmgr:
-a,--activeโ Set bootnum active.-A,--inactiveโ Set bootnum inactive.-b,--bootnum XXXXโ ModifyBootXXXX(hex).-B,--delete-bootnumโ Delete bootnum.-c,--createโ Create new variable bootnum and add to bootorder.-C,--create-onlyโ Create new variable bootnum and do not add to bootorder.-d,--disk DISKโ The disk containing the loader (defaults to/dev/sda).-D,--remove-dupsโ Remove duplicated entries fromBootOrder.-e,--edd 1|3โ Force EDD 1.0 or 3.0 creation variables.
Use -e 1 together with -E if you are using a very old system which uses UEFI to boot, but requires legacy CSM (BIOS) device drivers for storage devices.
-e 3 is now deprecated, and is an alias for --full-dev-path. ๐
-E,--edd-device NUMโ EDD 1.0 device number (defaults to0x80). See--edd.--full-dev-pathโ Force creation of boot entries use a full UEFI device path, starting at the PCIe root or equivalent on the current platform. The default is to use a hard disk basedHD()abbreviated path.
You shouldn't need to use this option unless the system firmware won't boot off of your device using an abbreviated HD() device path.
Note that forcing a full path will fail if we don't know what the system device root is, how the specified device is connected to it, or how to encode any one of those. fr fr, it can fail. ๐ญ
--file-dev-pathโ Force creation of boot entries use an abbreviated UEFI device path which starts with theFile()portion of the path. The default is to use a hard disk basedHD()abbreviated path.-f,--reconnectโ Re-connect devices after driver is loaded. Only applicable for driver entries.-F,--do-not-reconnectโ Do not reconnect devices after driver is loaded. Only applicable for driver entries.-g,--gptโ Force disk with invalid PMBR to be treated as GPT.-i,--iface NAMEโ Create a netboot entry for the named interface.-k,--keep NAMEโ Keep old entries when adjusting order.-l,--loader NAMEโ Specify a loader (defaults to\EFI\linux\grub.efi).-L,--label LABELโ Boot manager display label (defaults to"Linux").-m,--mirror-below-4G t|fโ Settif you want to mirror memory below 4GB.-M,--mirror-above-4G XโXpercentage memory to mirror above 4GB. Floating-point value with up to 2 decimal places is accepted.-n,--bootnext XXXXโ SetBootNexttoXXXX(hex).-N,--delete-bootnextโ DeleteBootNext.-o,--bootorder XXXX,YYYY,ZZZZโ Explicitly setBootOrder(hex). Any value from0toFFFFis accepted so long as it corresponds to an existingBoot####variable, and zero padding is not required.-O,--delete-bootorderโ DeleteBootOrder.-p,--part PARTโ Partition number containing the bootloader (defaults to1).-q,--quietโ Quiet mode - suppresses output.-r,--driverโ Operate onDriver####variables instead ofBoot####variables.-t,--timeout secondsโ Boot Manager timeout, in seconds.-T,--delete-timeoutโ Delete Timeout variable.-u,--unicode,--UCS-2โ Handle extra command line arguments as UCS-2 (default is ASCII).-v,--verboseโ Verbose mode - prints additional information.-V,--versionโ Just print version string and exit.-w,--write-signatureโ Write unique signature to the MBR if needed.-y,--sysprepโ Operate onSysPrep####variables instead ofBoot####variables.-@,--append-binary-argsโ Append extra variable args from file (use-to read from stdin). Data in file is appended as command line arguments to the boot loader command, with no modification to the data, so you can pass any binary or text data necessary.
๐ EXAMPLES ๐
Displaying the current settings (must be root):
[root@localhost ~]# efibootmgr
BootCurrent: 0004
BootNext: 0003
BootOrder: 0004,0000,0001,0002,0003
Timeout: 30 seconds
Boot0000* Diskette Drive(device:0)
Boot0001* CD-ROM Drive(device:FF)
Boot0002* Hard Drive(Device:80)/HD(Part1,Sig00112233)
Boot0003* PXE Boot: MAC(00D0B7C15D91)
Boot0004* Linux
Each of the above are boot variables, which are defined as follows:
BootCurrent- the boot entry used to start the currently running systemBootOrder- the boot order as would appear in the boot manager. The boot manager tries to boot the first active entry in this list. If unsuccessful, it tries the next entry, and so on.BootNext- the boot entry which is scheduled to be run on next boot. This supersedesBootOrderfor one boot only, and is deleted by the boot manager after first use. This allows you to change the next boot behavior without changingBootOrder.Timeout- the time in seconds between when the boot manager appears on the screen until when it automatically chooses the startup value fromBootNextorBootOrder.- Five boot entries (
0000-0004), along with the active/inactive flag (*means active) and the name displayed on the screen.
Creating a new boot option
An OS installer would call efibootmgr -c. This assumes that /dev/sda1 is your EFI System Partition, and is mounted at /boot/efi. This creates a new boot option, called "Linux", and puts it at the top of the boot order list. Options may be passed to modify the default behavior. The default OS Loader is \EFI\linux\grub.efi. iconic installer behavior, honestly. โจ
Changing the boot order
Assuming the configuration in the first example, efibootmgr -o 3,4 could be called to specify PXE boot first, then Linux boot.
Changing the boot order for the next boot only
Assuming the configuration in the first example, efibootmgr -n 4 could be called to specify that the Linux entry be taken on next boot.
Deleting a boot option
Assuming the configuration in the first example, efibootmgr -b 4 -B could be called to delete entry 4 and remove it from the BootOrder.
Creating network boot entries
A system administrator wants to create a boot option to network boot. You create the boot entry with: efibootmgr -c -i eth0 -L netboot [ -l '\filename.efi' ]
๐ BUGS ๐
Please direct any bugs, features, patches, etc. to the Red Hat bootloader team at https://github.com/rhboot/efibootmgr . bestie, send the receipts to the right place. ๐
๐ AUTHOR ๐
This man page was generated by dann frazier <dannf@debian.org> for the Debian GNU/Linux operating system and updated by Robert Bisewski <contact@ibiscybernetics.com>, but may be used by others.
It has subsequently been modified by Robbie Harwood <rharwood@redhat.com> for the efibootmgr project.
That's the whole EFIBOOTMGR(8) manual, bestie โ dated 28 September 2021. stay bootable ๐
โจ๐ฆ
๐ฆ where this page comes from
- opensuse-leap 16.0: efibootmgr 18-160000.2.2 ยท GPL-2.0-or-later
- opensuse-leap 16.0: efibootmgr 18-160000.2.2 ยท GPL-2.0-or-later
- opensuse-leap 16.0: efibootmgr 18-160000.2.2 ยท GPL-2.0-or-later
- opensuse-leap 16.0: efibootmgr 18-160000.2.2 ยท GPL-2.0-or-later
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms