Arch 安装后Grub无法引导的解决方法

首先,仅对UEFI有效

这个问题常出现在全新安装中,比如虚拟机

问题原因在于需要开启boot分区的“bootable flag”

开启方法:

  1. 挂载boot分区
    1. mount /dev/sda1 /boot
  2. 使用“parted”工具,“set 1 boot on”
  3. 重新执行“grub-install”与“grub-mkconfig”:
    1. grub-install --target=x86-64-efi --efi-directory /boot --bootloader-id=GRUB
    2. grub-mkconfig -o /boot/grub/grub.cfg

相关介绍:

  1. A boot flag is a 1-byte value in a non-extended partition record, within a master boot record. It appears at the beginning of a partition record, as the value 0x80. A value of 0x00 indicates the partition does not have the boot flag set.[1][2] Any other value is invalid.
评论 8
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值