Red Hat Bugzilla – Bug 209968
parted should not create dos partitions >2TB
Last modified: 2008-07-24 15:49:36 EDT
Description of problem:
parted can create dos partitions > 2TB but dos partitions can not be larger than
2TB, so when you reboot, your partitions & FS are broken.
Version-Release number of selected component (if applicable):
I do not have direct access to a >2TB disk so I can't test, but I have seen this
Steps to Reproduce:
From what I can figure out, when you create the partition, parted tells the
kernel there is a new partition and it's correct details. These details are
valid and the partition works. The partition table however is not correct. The
partition table can only record partitions up to 2TB in size.
When you reboot, the kernel reads the partition table from the disk and gets the
partition size wrong, the FS then complains because it is too big for the
partition. This may well cause FS corruption, or at least prevent you from
accessing your new filesystem.
parted should not offer to make a dos partition larger than 2TB. It should
instead offer to use GPT partitioning.
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release. Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products. This request is not yet committed for inclusion in an Update
Created attachment 298107 [details]
Will be fixed in parted-1.6.19-20.EL and later.
a fix for this bug is available in RHEL4-U7 Beta on RHN.
Can you please grab the bits and test this issue.
This does not work. There is a mistake in the patch:
if (!part->type & PED_PARTITION_METADATA)
needs to be
if (!(part->type & PED_PARTITION_METADATA))
I will attach the altered patch file
Created attachment 308773 [details]
Prevent creating dos partitions > 2TB
This is a small bugfix over the previous patch
do you agree with comment #11? If so can you commit the correct patch to cvs.
Yes, go with the patch in comment #11.
(Reassigning this to jgranado, who is the new parted maintainer.)
Bug in RHEL5 447768
The package with the fix in comment #11 will be available in parted-1.6.19-22.EL
firstname.lastname@example.org: the package noted in comment#20 is available from
Are you able to confirm that the updated package fixes the reported issue?
parted-1.6.19-22.EL.i386.rpm seems to work as expected. I have only tested msdos
label type and on a virtual disk but it correctly imposed the 2TB limit.
Relabling as gpt allows creating partitions larger.
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.