2025-03-14 21:59:59 -06:00
|
|
|
# efibootmgr
|
|
|
|
|
|
|
|
|
|
> Manipulate the UEFI Boot Manager.
|
|
|
|
|
> More information: <https://manned.org/efibootmgr>.
|
|
|
|
|
|
|
|
|
|
- List all boot options with their numbers:
|
|
|
|
|
|
2025-03-19 19:23:44 -06:00
|
|
|
`efibootmgr {{[-u|--unicode]}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Add UEFI Shell v2 as a boot option:
|
|
|
|
|
|
2026-08-06 22:19:46 -06:00
|
|
|
`sudo efibootmgr {{[-c|--create]}} {{[-d|--disk]}} {{/dev/sda}} {{[-p|--part]}} {{1}} {{[-l|--loader]}} "{{path\to\shell.efi}}" {{[-L|--label]}} "{{UEFI Shell}}"`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Add Linux as a boot option:
|
|
|
|
|
|
2026-08-06 22:19:46 -06:00
|
|
|
`sudo efibootmgr {{[-c|--create]}} {{[-d|--disk]}} {{/dev/sda}} {{[-p|--part]}} {{1}} {{[-l|--loader]}} "{{path\to\vmlinuz}}" {{[-u|--unicode]}} "{{root=UUID=drive_uuid rw loglevel=3 initrd=path\to\initramfs-linux.img}}" {{[-L|--label]}} "{{Linux}}"`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Change the current boot order:
|
|
|
|
|
|
2025-06-28 19:25:29 -06:00
|
|
|
`sudo efibootmgr {{[-o|--bootorder]}} {{0002,0008,0001,001A,...}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Delete a boot option:
|
|
|
|
|
|
2025-03-19 19:23:44 -06:00
|
|
|
`sudo efibootmgr {{[-b|--bootnum]}} {{0008}} {{[-B|--delete-bootnum]}}`
|