LinuxCommandLibrary

efibootbgr

Manipulate the UEFI Boot Manager (the Bootoptions).

TLDR

List the current settings / bootnums

$ efibootmgr
copy

List the filepaths

$ efibootmgr -v
copy

Add UEFI Shell v2 as a boot option

$ sudo efibootmgr -c -d [/dev/sda1] -l [\EFI\tools\Shell.efi] -L "[UEFI Shell]"
copy

Change the current boot order

$ sudo efibootmgr -o [0002,0008,0001,0005]
copy

Delete a boot option

$ sudo efibootmgr -b [0008] --delete-bootnum
copy

Copied to clipboard