2020-05-12 04:55:30 +00:00
|
|
|
# efibootmgr
|
|
|
|
|
2021-05-20 16:13:41 -04:00
|
|
|
> Manipulate the UEFI Boot Manager.
|
2021-04-16 16:42:14 +02:00
|
|
|
> More information: <https://manned.org/efibootmgr>.
|
2020-05-12 04:55:30 +00:00
|
|
|
|
2024-07-10 19:24:55 +02:00
|
|
|
- List all boot options with their numbers:
|
2020-05-12 04:55:30 +00:00
|
|
|
|
2025-03-09 01:35:31 +02:00
|
|
|
`efibootmgr {{[-u|--unicode]}}`
|
2020-05-12 04:55:30 +00:00
|
|
|
|
2024-07-10 19:24:55 +02:00
|
|
|
- Add UEFI Shell v2 as a boot option:
|
2020-05-12 04:55:30 +00:00
|
|
|
|
2025-03-15 23:32:36 +02:00
|
|
|
`sudo efibootmgr {{[-c|--create]}} {{[-d|--disk]}} {{/dev/sda}} {{[-p|--part]}} {{1}} {{[-l|--loader]}} "{{\path\to\shell.efi}}" {{[-L|--label]}} "{{UEFI Shell}}"`
|
2020-05-12 04:55:30 +00:00
|
|
|
|
2024-07-10 19:24:55 +02:00
|
|
|
- Add Linux as a boot option:
|
2020-05-12 04:55:30 +00:00
|
|
|
|
2025-03-15 23:32:36 +02:00
|
|
|
`sudo efibootmgr {{[-c|--create]}} {{[-d|--disk]}} {{/dev/sda}} {{[-p|--part]}} {{1}} {{[-l|--loader]}} "{{\vmlinuz}}" {{[-u|--unicode]}} "{{kernel_cmdline}}" {{[-L|--label]}} "{{Linux}}"`
|
2020-05-12 04:55:30 +00:00
|
|
|
|
|
|
|
- Change the current boot order:
|
|
|
|
|
2025-03-09 01:35:31 +02:00
|
|
|
`sudo efibootmgr {{[-o|--bootorder]}} {{0002,0008,0001,0005}}`
|
2020-05-12 04:55:30 +00:00
|
|
|
|
|
|
|
- Delete a boot option:
|
|
|
|
|
2025-03-09 01:35:31 +02:00
|
|
|
`sudo efibootmgr {{[-b|--bootnum]}} {{0008}} {{[-B|--delete-bootnum]}}`
|