![进一步阅读](https://linux22.com/image/1555256/%E8%BF%9B%E4%B8%80%E6%AD%A5%E9%98%85%E8%AF%BB.png)
我刚刚在新分区并完全填充的磁盘上运行了 gdisk,并收到以下错误消息。
由于我刚刚创建了这个单一分区,所以我不确定事物如何会重叠。
我应该担心吗?
merc@merc-All-Series:~$ sudo gdisk
GPT fdisk (gdisk) version 1.0.1
Type device filename, or press <Enter> to exit: ^C
merc@merc-All-Series:~$ sudo gdisk /dev/sda
GPT fdisk (gdisk) version 1.0.1
Partition table scan:
MBR: MBR only
BSD: not present
APM: not present
GPT: not present
***************************************************************
Found invalid GPT and valid MBR; converting MBR to GPT format
in memory. THIS OPERATION IS POTENTIALLY DESTRUCTIVE! Exit by
typing 'q' if you don't want to convert your MBR partitions
to GPT format!
***************************************************************
Warning! Secondary partition table overlaps the last partition by
33 blocks!
You will need to delete this partition or resize it in another utility.
Command (? for help): p
Disk /dev/sda: 1953523055 sectors, 931.5 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): 7F03D27C-4FD8-4A31-A027-8F438F676805
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 1953523021
Partitions will be aligned on 2048-sector boundaries
Total free space is 2014 sectors (1007.0 KiB)
Number Start (sector) End (sector) Size Code Name
1 2048 1953523054 931.5 GiB 8300 Linux filesystem
Command (? for help):
答案1
gdisk
主要从 GPT 分区的角度来处理磁盘。如您所见,它在启动时自动将 MBR 样式的分区表转换为 GPT 分区表。它写入 EFI 分区表。
您对磁盘进行了分区,导致无法在其中写入 GPT 分区表。您用单个分区填满了整个磁盘,而没有在末尾留出空间来存放 GPT 分区将放置在那里的备份 GPT 分区表。讽刺的是,您还留下了太多了一开始就留出空间,用于存放主 GPT 分区表,因为您使用的工具采用了 1MiB 对齐。
如果您希望能够使用尝试对磁盘进行 GPT 分区的工具,请将该分区缩小到足以将备份 GPT 分区表放置在磁盘末尾。如消息所述。