Files
nexus/wiki/concepts/efibootmgr.md
2026-04-17 08:38:12 +08:00

1.0 KiB
Raw Blame History

title, type, tags, date
title type tags date
efibootmgr concept
boot
efi
linux
command-line
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

# 查看当前启动顺序
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