Auto-sync: 2026-04-17 08:37

This commit is contained in:
2026-04-17 08:38:12 +08:00
parent 6caa1c2f47
commit a0a48bd334
247 changed files with 6577 additions and 3061 deletions

View File

@@ -0,0 +1,39 @@
---
title: "efibootmgr"
type: concept
tags: [boot, efi, linux, command-line]
date: 2026-04-16
---
## Aliases
- efibootmgr
## Definition
efibootmgr 是 Linux 下的命令行工具,用于管理 EFI 固件中的启动顺序和启动项。可以查看、创建、删除和调整 UEFI 启动顺序,解决 HP BIOS 等系统启动顺序被重置的问题。
## Key Properties
- 平台Linux
- 功能NVRAM 启动项管理
- 权限:需要 root 权限
- 常见用法:-o 设置启动顺序,-c 创建新启动项,-v 查看详细信息
## Use Cases
- 修复 Ubuntu 启动顺序问题
- 设置默认启动操作系统
- 处理 HP BIOS 启动顺序被重置
## Example Commands
```bash
# 查看当前启动顺序
sudo efibootmgr
# 将 Ubuntu (Boot0005) 设为首选
sudo efibootmgr -o 0005,0000,0001,0002,0003
# 创建新启动项
sudo efibootmgr -c -d /dev/nvme0n1 -p 1 -L "Ubuntu" -l "\\EFI\\ubuntu\\shimx64.efi"
```
## Connections
- [[efibootmgr]] ← manages ← [[UEFI]]
- [[efibootmgr]] ← fixes ← [[启动顺序]]