1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2024-10-28 11:19:46 +01:00

efibootmgr: update page (#13250)

This commit is contained in:
Lena 2024-07-10 19:24:55 +02:00 committed by GitHub
parent 5089c229f7
commit 70e383ee71
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3,22 +3,22 @@
> Manipulate the UEFI Boot Manager.
> More information: <https://manned.org/efibootmgr>.
- List the current settings then bootnums with their name:
- List all boot options with their numbers:
`efibootmgr`
- List the filepaths:
`efibootmgr -v`
`efibootmgr {{-u|--unicode}}`
- Add UEFI Shell v2 as a boot option:
`sudo efibootmgr -c -d {{/dev/sda1}} -l {{\EFI\tools\Shell.efi}} -L "{{UEFI Shell}}"`
`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 {{0002,0008,0001,0005}}`
`sudo efibootmgr {{-o|--bootorder}} {{0002,0008,0001,0005}}`
- Delete a boot option:
`sudo efibootmgr -b {{0008}} --delete-bootnum`
`sudo efibootmgr {{-b|--bootnum}} {{0008}} {{-B|--delete-bootnum}}`