安装 Grub 时出错

安装 Grub 时出错

我正在尝试安装 grub,但出现错误:

Warning This GPT partition label contains no BIOS boot partition: 
embedding won't be possible

我使用的是GPT分区,文件系统是ext3。当我运行时,gdisk -l它显示 SSD 上的第一个分区起始扇区(即 /sda)是 2040。

我收到此错误是因为磁盘未从前 512 字节启动吗?

如果不是,还有什么可能导致此错误?

我正在尝试让它完成 Arch 安装。

parted -l

Warning: /dev/sda contains GPT signatures, indicating that it has a GTP table.
However, it does not have a valid fake msdos partition table, as it should.
Perhaps it was corrupted -- possibly by a program that doesn't understand GTP
partition tables. Or prehaps you deleted the GPT table, and are now using an
msdos partition table. Is this a GPT partition table?
Yes/No: yes
Error: The backup GPT table is not at the end of the disk, as it should be. This might mean that another operating system believes the disk is smaller. Fix, by moving the backup to the end (and removing the old backup)?
Fix/Ignore/Cancel? Fix
Warning: Not all of the space available to /dev/sda appears to be used, you can fix the GPT to use all of the sapce (an extra 6576128 blocks) or continue with the current setting?
Fix/Ignore/Cancel? Fix
Error: Unable to satisfy all constraints on the partition.
Model: Verbatim (scsi)
Disk /dev/sda: 3932MB
Sector size (logical/physical): 512B/512B
Partition Table: unknown
Disk Flags:

Model: ATA TOSHIBA THNSNH12 (scsi)
Disk /dev/sdb: 120GB
Sector size (logical/physical): 512B/512B
Partition Table: loop
Disk Flags:

Number   Start   End   Size   File system   Flags
 1       0.00B   120GB 120GB  ext3

我的驱动器现在是/dev/sdb.我只需要擦除所有内容并重新开始安装。

答案1

第一个分区可以从 2040 开始,但它必须具有 bios_grub 标志,这就是您的 grub 安装所抱怨的。

如果你这样做,parted -l /dev/sda你应该得到类似的东西:

Model: ATA Samsung SSD 840 (scsi)
Disk /dev/sda: 250GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number  Start   End     Size    File system  Name  Flags
 1      1049kB  2097kB  1049kB                     bios_grub
 2      2097kB  2150MB  2147MB  ext2
 3      2150MB  36,5GB  34,4GB  btrfs

相关内容