首先,仅对UEFI有效
这个问题常出现在全新安装中,比如虚拟机
问题原因在于需要开启boot分区的“bootable flag”
开启方法:
- 挂载boot分区
- mount /dev/sda1 /boot
- 使用“parted”工具,“set 1 boot on”
- 重新执行“grub-install”与“grub-mkconfig”:
- grub-install –target=x86-64-efi –efi-directory /boot –bootloader-id=GRUB
- grub-mkconfig -o /boot/grub/grub.cfg
相关介绍:
- 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.
版权声明:本文为ytingone原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。