我剛剛在新分割區且完全填充的磁碟上執行 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 分割區表放置在磁碟末端的程度。正如消息所說。