efibootmgr

Manipulate the UEFI Boot Manager. More information: <https://manned.org/efibootmgr>.

Install

All systems
curl cmd.cat/efibootmgr.sh
Debian Debian
apt-get install efibootmgr
Ubuntu
apt-get install efibootmgr
Arch Arch Linux
pacman -S efibootmgr
image/svg+xml Kali Linux
apt-get install efibootmgr
CentOS
yum install efibootmgr
Fedora
dnf install efibootmgr
Windows (WSL2)
sudo apt-get update sudo apt-get install efibootmgr
Raspbian
apt-get install efibootmgr

Manipulate the UEFI Boot Manager. More information: <https://manned.org/efibootmgr>.

  • List the current settings then bootnums with their name:
    efibootmgr
  • List the filepaths:
    efibootmgr -v
  • Add UEFI Shell v2 as a boot option:
    sudo efibootmgr -c -d /dev/sda1 -l \EFI\tools\Shell.efi -L "UEFI Shell"
  • Change the current boot order:
    sudo efibootmgr -o 0002,0008,0001,0005
  • Delete a boot option:
    sudo efibootmgr -b 0008 --delete-bootnum

© tl;dr; authors and contributors