GNU bug report logs - #19135
mklabel gpt always creates 128 partition entries

Previous Next

Package: parted;

Reported by: "Ulrich Windl" <Ulrich.Windl <at> rz.uni-regensburg.de>

Date: Fri, 21 Nov 2014 07:35:02 UTC

Severity: normal

Full log


View this message in rfc822 format

From: "Ulrich Windl" <Ulrich.Windl <at> rz.uni-regensburg.de>
To: 19135 <at> debbugs.gnu.org
Subject: bug#19135: mklabel gpt always creates 128 partition entries
Date: Fri, 21 Nov 2014 08:33:43 +0100
This is halfway a bug and halfway an enhancement:

parted's "mkpart gpt" always creates a Partition Entry Array with 128 entries.
It may be due to misunderstanding the UEFI docs that state the size of the partition entry should be a multiple of 128.
At the moment the Partition Entry Table needs 16kB (128*128). That's no much, especially when considering that most systems align data structures to 1MB boundaries.
An argument against it would be that at least 90% of all disks have less than 5 partitions, and I guess 99% have less than 10 partitions on the disk, so 128 seems to be an overkill. Even if unused, a program has to read and check all these unused entries.

(I created a GPT label on a 3MB test image)

Part of the enhancement is: Supply an additional parameter to "mklabel gpt" that allows to specify the size (number of entries) in the GPT Partition Entry Table, or even provide a command to resize it.






This bug report was last modified 10 years and 212 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.