From unknown Tue Jun 17 20:20:28 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#25007 <25007@debbugs.gnu.org> To: bug#25007 <25007@debbugs.gnu.org> Subject: Status: Bug: command parameters ignored when parted sees need to fix GPT Reply-To: bug#25007 <25007@debbugs.gnu.org> Date: Wed, 18 Jun 2025 03:20:28 +0000 retitle 25007 Bug: command parameters ignored when parted sees need to fix = GPT reassign 25007 parted submitter 25007 Yann Dirson severity 25007 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Nov 23 11:30:40 2016 Received: (at submit) by debbugs.gnu.org; 23 Nov 2016 16:30:40 +0000 Received: from localhost ([127.0.0.1]:39470 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c9aRU-0006cG-1N for submit@debbugs.gnu.org; Wed, 23 Nov 2016 11:30:40 -0500 Received: from eggs.gnu.org ([208.118.235.92]:44721) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c9ZQD-00053y-0l for submit@debbugs.gnu.org; Wed, 23 Nov 2016 10:25:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c9ZQ6-0000g8-7n for submit@debbugs.gnu.org; Wed, 23 Nov 2016 10:25:11 -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.8 required=5.0 tests=BAYES_50,HTML_MESSAGE, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:50352) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c9ZQ6-0000fw-56 for submit@debbugs.gnu.org; Wed, 23 Nov 2016 10:25:10 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35667) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c9ZQ5-0006XP-3f for bug-parted@gnu.org; Wed, 23 Nov 2016 10:25:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c9ZQ4-0000cu-8P for bug-parted@gnu.org; Wed, 23 Nov 2016 10:25:09 -0500 Received: from mail-io0-x236.google.com ([2607:f8b0:4001:c06::236]:35207) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c9ZQ4-0000Wk-2b for bug-parted@gnu.org; Wed, 23 Nov 2016 10:25:08 -0500 Received: by mail-io0-x236.google.com with SMTP id a124so29340567ioe.2 for ; Wed, 23 Nov 2016 07:25:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=blade-group-com.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to; bh=VPrav2XihXW7sBwP6d8nyyLambnwb+N4i4wj3l2JcQI=; b=Ej4jmu6fG6HZiA8N/jNrpHoGy0j9Qv0Fqb2Dza+vre9wkbiXNY9u9/LIuapRnyBbOW h2ryfFEM+gZsH/6bcgWEPCuiuepEHE2uJku/sRR8eZaOg7sOHpUDoSaocI4st0X6Q2lN hbBL+ajMa3BgKf+SoBaqJ15HNd/9MKm3styuD2hOcFFjTDoVkRsz0OUsdhE/yJmJ02Ll C77lOy3ZqsHuJuaGGkZhg2ZaDqvnvzlU2SF27yNur9EO6NcFYJTBfOZAhz5AwB/s+DR4 uF2TU8IQgAmfExb2MHSDHHrFF9jZbIS0pT/x0VUIRtJxEbLoOlKrkcJ1T/QrPhc4CCTE 8/sA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=VPrav2XihXW7sBwP6d8nyyLambnwb+N4i4wj3l2JcQI=; b=mZn497APePKLXjIKWRrwiqG2qgV5tSLhBV/HHlq7CepfEBYlxOvmouAMmZ5G0h7fEz CCUppkS2z2i+X1h8Dq3GJTrDcmXvPkusWo0N3RrsvwFPhsM4S2ETPKuyT5o7QKAkDxEw fh8/4yFhGtEzL7ez7fICGi9qvnFMRoWefP2ZwZ13bnif8n96aVmzKVRltgRKJG/0l8IE LASj9epwCB/G7yGWlgzNqHggyJzuoAeKXySIn9Z00+lsQGPpm9CudXXVuiFg7tyDsgOc uwx3W+zALMc06tq0G0yXBjMEI3AdrgFhnYfUU/WDcWkPyi4/HM/9s1uPiK2nQfWPuht4 uXog== X-Gm-Message-State: AKaTC01NQKpSjtMhfYc2rMu1Arx2PPQ3BTi0CELTUY+ij/B1bUtr7V3m5aQ0iA7LZu2E8P+GCRrxJP0kUnegMyI9 X-Received: by 10.107.1.138 with SMTP id 132mr3676885iob.72.1479914703164; Wed, 23 Nov 2016 07:25:03 -0800 (PST) MIME-Version: 1.0 Received: by 10.79.96.68 with HTTP; Wed, 23 Nov 2016 07:25:02 -0800 (PST) From: Yann Dirson Date: Wed, 23 Nov 2016 16:25:02 +0100 Message-ID: Subject: Bug: command parameters ignored when parted sees need to fix GPT To: bug-parted@gnu.org Content-Type: multipart/alternative; boundary=001a113965ae2e40e80541f97e5c X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Wed, 23 Nov 2016 11:30:39 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -4.0 (----) --001a113965ae2e40e80541f97e5c Content-Type: text/plain; charset=UTF-8 Trying to see how things perform when we don't fix the GPT as suggested: # parted /dev/mmcblk0 mkpart persist 2048 2058 Warning: Not all of the space available to /dev/mmcblk0 appears to be used, you can fix the GPT to use all of the space (an extra 25661440 blocks) or continue with the current setting? parted: invalid token: persist Fix/Ignore? i Partition name? []? File system type? [ext2]? Start? ^C Note that hitting ^C on the "fix/ignore" or "partition name" prompts have no effect, one cannot abort before the "file system type" prompt. Then once I have accepted the fix things do work as expected: # parted /dev/mmcblk0 mkpart persist 2048 2058 Information: You may need to update /etc/fstab. Or, alternatively, one can just use the "no question on tty" feature: # parted /dev/mmcblk0 mkpart persist 2048 2058 Blade -- 90 avenue des Ternes, 75017 Paris --001a113965ae2e40e80541f97e5c Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Trying to see how things perform when we don'= ;t fix the GPT as suggested:

# parted /dev/mmcblk0 mkpart persist 20= 48 2058
Warning: Not all of the space available to /dev/mmcblk0 appears = to be used, you can fix the GPT to use all of the space (an extra 25661440 = blocks) or continue with the current setting?
parted: invalid token: per= sist
Fix/Ignore? i
Partition name?=C2=A0 []?
File system type?=C2= =A0 [ext2]?
Start? ^C

Note that hitting ^C on the &quo= t;fix/ignore" or "partition name" prompts have no effect, on= e cannot abort before the "file system type" prompt.

Then once I have accepted the fix things do work as expected= :

# parted /dev/mmcblk0 mkpart persist 2048 2058
Information: You= may need to update /etc/fstab.


Or, alternatively, one can= just use the "no question on tty" feature:

# parted /dev/= mmcblk0 mkpart persist 2048 2058 </dev/null


--
=
Yann Dirs= on <yann@blade= -group.com>
Blade -- 90 avenue des Ternes, 75017 Paris
--001a113965ae2e40e80541f97e5c--