From unknown Sat Jun 21 10:35:11 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#19135 <19135@debbugs.gnu.org> To: bug#19135 <19135@debbugs.gnu.org> Subject: Status: mklabel gpt always creates 128 partition entries Reply-To: bug#19135 <19135@debbugs.gnu.org> Date: Sat, 21 Jun 2025 17:35:11 +0000 retitle 19135 mklabel gpt always creates 128 partition entries reassign 19135 parted submitter 19135 "Ulrich Windl" severity 19135 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Nov 21 02:34:16 2014 Received: (at submit) by debbugs.gnu.org; 21 Nov 2014 07:34:16 +0000 Received: from localhost ([127.0.0.1]:40170 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XrijQ-0000OS-CK for submit@debbugs.gnu.org; Fri, 21 Nov 2014 02:34:16 -0500 Received: from eggs.gnu.org ([208.118.235.92]:47254) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XrijN-0000OI-UR for submit@debbugs.gnu.org; Fri, 21 Nov 2014 02:34:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XrijD-0003g1-To for submit@debbugs.gnu.org; Fri, 21 Nov 2014 02:34:13 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_40 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:54000) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XrijD-0003fx-R7 for submit@debbugs.gnu.org; Fri, 21 Nov 2014 02:34:03 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48948) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xrij6-0002Xh-AY for bug-parted@gnu.org; Fri, 21 Nov 2014 02:34:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xriiy-0003dt-Pw for bug-parted@gnu.org; Fri, 21 Nov 2014 02:33:56 -0500 Received: from rrzmta2.uni-regensburg.de ([194.94.155.52]:51361) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xriiy-0003dU-Il for bug-parted@gnu.org; Fri, 21 Nov 2014 02:33:48 -0500 Received: from rrzmta2.uni-regensburg.de (localhost [127.0.0.1]) by localhost (Postfix) with SMTP id D88D65D02F for ; Fri, 21 Nov 2014 08:33:45 +0100 (CET) Received: from gwsmtp1.uni-regensburg.de (gwsmtp1.uni-regensburg.de [132.199.5.51]) by rrzmta2.uni-regensburg.de (Postfix) with ESMTP id C26A05C9B7 for ; Fri, 21 Nov 2014 08:33:45 +0100 (CET) Received: from uni-regensburg-smtp1-MTA by gwsmtp1.uni-regensburg.de with Novell_GroupWise; Fri, 21 Nov 2014 08:33:45 +0100 Message-Id: <546EF8E7020000A100017EFF@gwsmtp1.uni-regensburg.de> X-Mailer: Novell GroupWise Internet Agent 14.0.1 Date: Fri, 21 Nov 2014 08:33:43 +0100 From: "Ulrich Windl" To: Subject: mklabel gpt always creates 128 partition entries Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 208.118.235.17 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) 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. From debbugs-submit-bounces@debbugs.gnu.org Fri Nov 21 11:06:53 2014 Received: (at 19135) by debbugs.gnu.org; 21 Nov 2014 16:06:53 +0000 Received: from localhost ([127.0.0.1]:41056 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XrqjU-00070E-NL for submit@debbugs.gnu.org; Fri, 21 Nov 2014 11:06:52 -0500 Received: from mail-qa0-f53.google.com ([209.85.216.53]:54950) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XrqjS-000707-SE for 19135@debbugs.gnu.org; Fri, 21 Nov 2014 11:06:51 -0500 Received: by mail-qa0-f53.google.com with SMTP id bm13so3662478qab.12 for <19135@debbugs.gnu.org>; Fri, 21 Nov 2014 08:06:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=roWt5/oPnWGBFz72jymK1ZUywreChjRPlnwSiLwqWHg=; b=kCcKK1whikecJ8m/TO8AF7ZiWjtthftB19l3dVCquTFDpjVtEYYFcC3WY7LL8vs0Di rvTyM9JMnas5lLW3gMCnfvRi0ZAS186czG3vlmU4GGnmc7nOfsPGkk/ZnCqHZHh6cGMS s/FLwIljrM34a6+vISubhBPECjUjeiRYUBqpZrDyNIzAaUmaH/dTdyr+IN8znkl74ahl l9fn8Nkzn/qDo8/nDGcEp1kF0DKJc1hzEZkpwR3vGzIN59mKfCweijuuFs7l3XDNBQBM 99yKNpaCQMfQSXoVjoTndyex57TNz3s4lsGsvTjLDqZmYOQPIDjClerDn9y8jtzVCFDN xbjw== MIME-Version: 1.0 X-Received: by 10.229.240.138 with SMTP id la10mr7532726qcb.13.1416586009713; Fri, 21 Nov 2014 08:06:49 -0800 (PST) Received: by 10.140.81.227 with HTTP; Fri, 21 Nov 2014 08:06:49 -0800 (PST) In-Reply-To: <546EF8E7020000A100017EFF@gwsmtp1.uni-regensburg.de> References: <546EF8E7020000A100017EFF@gwsmtp1.uni-regensburg.de> Date: Fri, 21 Nov 2014 17:06:49 +0100 Message-ID: Subject: Re: bug#19135: mklabel gpt always creates 128 partition entries From: =?UTF-8?B?SMOla29uIEzDuHZkYWw=?= To: Ulrich Windl Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 19135 Cc: 19135@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) On 21 November 2014 08:33, Ulrich Windl wrote: > parted's "mkpart gpt" always creates a Partition Entry Array with 128 ent= ries. Is this also observed with version 2.3 of parted? If so can you reproduce with the latest version, 3.2? BR H=C3=A5kon L=C3=B8vdal From debbugs-submit-bounces@debbugs.gnu.org Mon Nov 24 02:04:55 2014 Received: (at 19135) by debbugs.gnu.org; 24 Nov 2014 07:04:55 +0000 Received: from localhost ([127.0.0.1]:43170 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xsnhe-0006KR-NF for submit@debbugs.gnu.org; Mon, 24 Nov 2014 02:04:55 -0500 Received: from rrzmta2.uni-regensburg.de ([194.94.155.52]:52978) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xsnhc-0006KD-P4 for 19135@debbugs.gnu.org; Mon, 24 Nov 2014 02:04:53 -0500 Received: from rrzmta2.uni-regensburg.de (localhost [127.0.0.1]) by localhost (Postfix) with SMTP id B28D651CC1 for <19135@debbugs.gnu.org>; Mon, 24 Nov 2014 08:04:51 +0100 (CET) Received: from gwsmtp1.uni-regensburg.de (gwsmtp1.uni-regensburg.de [132.199.5.51]) by rrzmta2.uni-regensburg.de (Postfix) with ESMTP id 9E20A51C88 for <19135@debbugs.gnu.org>; Mon, 24 Nov 2014 08:04:51 +0100 (CET) Received: from uni-regensburg-smtp1-MTA by gwsmtp1.uni-regensburg.de with Novell_GroupWise; Mon, 24 Nov 2014 08:04:51 +0100 Message-Id: <5472E6A2020000A100017F56@gwsmtp1.uni-regensburg.de> X-Mailer: Novell GroupWise Internet Agent 14.0.1 Date: Mon, 24 Nov 2014 08:04:50 +0100 From: "Ulrich Windl" To: <19135@debbugs.gnu.org> Subject: Antw: bug#19135: Acknowledgement (mklabel gpt always creates 128 partition entries) References: <546EF8E7020000A100017EFF@gwsmtp1.uni-regensburg.de> In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 19135 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) It turned out that UEFI spec 2.4 states the Partition Entry Array should = be at least 16kB (which is nonsense, because they should better define the = number of entries) which gives 128 Entries. However why have all those flexible data structures if the number of = Pertition Entries is fixed? I still believe 128 Pertition Entries is severe overkill.