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
|
|
|
|
2024-07-10 19:24:55 +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
|
|
|
|
2024-07-10 19:24:55 +02:00
|
|
|
`sudo efibootmgr -c -d {{/dev/sda}} -p {{1}} -l "{{\path\to\shell.efi}}" -L "{{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
|
|
|
|
2024-07-10 19:24:55 +02:00
|
|
|
`sudo efibootmgr --create --disk {{/dev/sda}} --part {{1}} --loader "{{\vmlinuz}}" --unicode "{{kernel_cmdline}}" --label "{{Linux}}"`
|
2020-05-12 04:55:30 +00:00
|
|
|
|
|
|
|
- Change the current boot order:
|
|
|
|
|
2024-07-10 19:24:55 +02:00
|
|
|
`sudo efibootmgr {{-o|--bootorder}} {{0002,0008,0001,0005}}`
|
2020-05-12 04:55:30 +00:00
|
|
|
|
|
|
|
- Delete a boot option:
|
|
|
|
|
2024-07-10 19:24:55 +02:00
|
|
|
`sudo efibootmgr {{-b|--bootnum}} {{0008}} {{-B|--delete-bootnum}}`
|