由于 msdos-partition-table-imposed 错误,无法创建 3TB ext4 分区

wim*_*wim 44 partitioning

我刚买了一个 3TB WD 绿色驱动器,但是当我尝试在 gparted 中进行分区时,出现如下错误:

======================
libparted : 2.3
======================
partition length of 5860530176 sectors exceeds the msdos-partition-table-imposed maximum of 4294967295
Run Code Online (Sandbox Code Playgroud)

当我尝试使用 Ubuntu“磁盘工具”时,我收到类似的错误:

Error creating partition: helper exited with exit code 1: In part_add_partition: device_file=/dev/sdc, start=0, size=3000592982016, type=0x83
Entering MS-DOS parser (offset=0, size=3000592982016)
MSDOS_MAGIC found
looking at part 0 (offset 0, size 0, type 0x00)
new part entry
looking at part 1 (offset 0, size 0, type 0x00)
new part entry
looking at part 2 (offset 0, size 0, type 0x00)
new part entry
looking at part 3 (offset 0, size 0, type 0x00)
new part entry
Exiting MS-DOS parser
MSDOS partition table detected
containing partition table scheme = 0
got it
got disk
new partition
Error: partition length of 5860528002 sectors exceeds the msdos-partition-table-imposed maximum of 4294967295
ped_disk_add_partition() failed
Run Code Online (Sandbox Code Playgroud)

Jam*_*dge 54

PC 上使用的传统分区表格式包括一个 32 位字段,用于记录特定分区覆盖的扇区数。

对于 512 字节扇区,这将最大分区大小设置为 2TB (512 * 2 32 )。

如果您需要大于 2TB 的分区,则需要使用磁盘的 GUID 分区表 (GPT) 格式重新分区驱动器。如果您不尝试从这个新磁盘启动,则不太可能遇到任何兼容性问题。

使用 GParted,您可以通过进入 Device->Create Partition Table 并从列表中选择“gpt”来完成此操作。

  • 我今天刚买了一个 3TB,这救了我的命。 (9认同)
  • 你还救了我的命,喂养了非洲许多饥饿的儿童。 (2认同)

小智 16

为了补充 James Henstridge 对计算机 w/out gparted 的回答:您可以使用 parted 从命令行获得相同的结果。对于下面的示例,我使用驱动器名称sdX(尽管您的名称可能是 sdb、sdc...)

sudo parted
(parted) select /dev/sdX
(parted) mklabel gpt
(parted) mkpart primary 0% 100%
(parted) quit
sudo mkfs.ext4 /dev/sdX1
Run Code Online (Sandbox Code Playgroud)