1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-08-24 19:44:17 +02:00
tldr/pages/linux/efibootmgr.md

24 lines
678 B
Markdown

# efibootmgr
> Manipulate the UEFI Boot Manager.
> More information: <https://manned.org/efibootmgr>.
- List all boot options with their numbers:
`efibootmgr {{[-u|--unicode]}}`
- Add UEFI Shell v2 as a boot option:
`sudo efibootmgr -c -d {{/dev/sda}} -p {{1}} -l "{{\path\to\shell.efi}}" -L "{{UEFI Shell}}"`
- Add Linux as a boot option:
`sudo efibootmgr --create --disk {{/dev/sda}} --part {{1}} --loader "{{\vmlinuz}}" --unicode "{{kernel_cmdline}}" --label "{{Linux}}"`
- Change the current boot order:
`sudo efibootmgr {{[-o|--bootorder]}} {{0002,0008,0001,0005}}`
- Delete a boot option:
`sudo efibootmgr {{[-b|--bootnum]}} {{0008}} {{[-B|--delete-bootnum]}}`