5

Linux下UEFI引导修复

 2 years ago
source link: https://blog.bluexiii.com/202101/Linux%E4%B8%8BUEFI%E5%BC%95%E5%AF%BC%E4%BF%AE%E5%A4%8D/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Linux下UEFI引导修复

Posted on

2021-01-05

某曙光服务器,在主板CMOS电池掉电后,NVRAM信息丢失。重新开机后,无法自动从SATA0硬盘的EFI分区的/EFI/boot/bootx64.efi进行引导。需要用启动盘进入恢复模式,将引导项重新写入NVRAM。

# 挂EFI分区,已经进入系统时则不需要
fdisk -l /dev/sda
mount /dev/sda1 /boot/efi/

# 查看引导项
efibootmgr -v

# 删除引导项
efibootmgr -b 0001 -B

# 添加引导项
efibootmgr -c -d /dev/sda -p 1 -l '\EFI\centos\grubx64.efi' -L CentOS
efibootmgr -c -d /dev/sda -p 1 -l '\EFI\debian\grubx64.efi' -L Debian
-c 创建引导项
-d 选择硬盘
–p 选择分区
-l efi文件路径
-L 引导项标签

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK