Proxmox VM(Xpenology DSM)当前有一个 4 TB 虚拟硬盘,该硬盘具有错误的分区表msdos
。相反,应该使用具有 GPT 的硬盘(以便能够将其调整为大于 2 TB)。
我们如何克隆现有硬盘,使得数据保持不变,但使用 GPT?
$ sudo fdisk -l /dev/sdc
Disk /dev/sdc: 3.9 TiB, 4294967296000 bytes, 8388608000 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x9694dbae
Device Boot Start End Sectors Size Id Type
/dev/sdc1 2048 4982527 4980480 2.4G fd Linux raid autodetect
/dev/sdc2 4982528 9176831 4194304 2G fd Linux raid autodetect
/dev/sdc3 9437184 4194303999 4184866816 2T fd Linux raid autodetect
$ sudo parted /dev/sdc print | grep -i '^Partition Table'
Partition Table: msdos
无法将 2 TB 调整为 4 TB:
$ sudo parted /dev/sdc resizepart 3 100%
Error: partition length of 8379170816 sectors exceeds the
msdos-partition-table-imposed maximum of 4294967295