grub-install: warning: this GPT partition label contains no BIOS Boot Partition; embedding won’t be possible Ubuntu使用BIOS启动时, GPT分区表下安装grub2报错 的解决办法
在制作minios时,格式化系统盘,然后安装grub的时候,出现如下错误
root@z:/mnt# grub-install /dev/sdb Installing for i386-pc platform. grub-install: warning: this GPT partition label contains no BIOS Boot Partition; embedding won't be possible. grub-install: error: embedding is not possible, but this is required for cross-disk install. root@z:/mnt#
This is fixed by creating a 2 MB partition on the 2 TB hard disk and setting its flag to “bios_grub”
1 |
|
Here “1” is the partition number for the 2 MB partition.
01 02 03 04 05 06 07 08 09 10 11 12 13 |
|
Now grub-install worked properly.
1 2 3 4 |
|
I set /dev/sdb as first boot device in BIOS and it booted perfectly.