Files
cheatsheet-tldr/tldr/linux/efibootmgr
2025-05-17 00:19:33 +00:00

30 lines
896 B
Plaintext
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# 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|--create]}} {{[-d|--disk]}} {{/dev/sda}} {{[-p|--part]}} {{1}} {{[-l|--loader]}} "{{\path o\shell.efi}}" {{[-L|--label]}} "{{UEFI Shell}}"`
- Add Linux as a boot option:
`sudo efibootmgr {{[-c|--create]}} {{[-d|--disk]}} {{/dev/sda}} {{[-p|--part]}} {{1}} {{[-l|--loader]}} "{{ mlinuz}}" {{[-u|--unicode]}} "{{kernel_cmdline}}" {{[-L|--label]}} "{{Linux}}"`
- Change the current boot order:
`sudo efibootmgr {{[-o|--bootorder]}} {{0002,0008,0001,001A,...}}`
- Delete a boot option:
`sudo efibootmgr {{[-b|--bootnum]}} {{0008}} {{[-B|--delete-bootnum]}}`