From unknown Fri Jun 20 07:09:59 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#50786 <50786@debbugs.gnu.org> To: bug#50786 <50786@debbugs.gnu.org> Subject: Status: Missing info?? Reply-To: bug#50786 <50786@debbugs.gnu.org> Date: Fri, 20 Jun 2025 14:09:59 +0000 retitle 50786 Missing info?? reassign 50786 parted submitter 50786 "Michael D. Setzer II" severity 50786 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Sep 24 14:50:18 2021 Received: (at submit) by debbugs.gnu.org; 24 Sep 2021 18:50:18 +0000 Received: from localhost ([127.0.0.1]:59269 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mTqH2-0000tF-Ah for submit@debbugs.gnu.org; Fri, 24 Sep 2021 14:50:18 -0400 Received: from lists.gnu.org ([209.51.188.17]:43806) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mTk3B-000083-VG for submit@debbugs.gnu.org; Fri, 24 Sep 2021 08:11:34 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43938) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mTk3B-0007fX-Mo for bug-parted@gnu.org; Fri, 24 Sep 2021 08:11:33 -0400 Received: from palakse.guam.net ([202.128.0.18]:60062) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mTk36-0000PG-Mw for bug-parted@gnu.org; Fri, 24 Sep 2021 08:11:32 -0400 Received: from smtp1.guam.net (smtp1 [10.255.255.75]) by palakse.guam.net (Postfix) with ESMTP id AD316114657A for ; Fri, 24 Sep 2021 22:11:18 +1000 (ChST) Received: from [192.168.16.107] (182-173-233-11.guam.net [182.173.233.11]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: mikes) by smtp1.guam.net (Postfix) with ESMTPSA id 71B568A41ED for ; Fri, 24 Sep 2021 22:11:18 +1000 (ChST) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.guam.net 71B568A41ED DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=guam.net; s=default; t=1632485478; bh=IJ2Kxb8waxsTII8ntahNhskuYWZCIdseF2fmu42kRxQ=; h=From:To:Date:Subject:From; b=nxZA6njZzDyaxCi5qEwgSmfcgJuTQdWFbcWv9Ne5HxRQSoECX25EhKaf1NG1TFpk/ OE9Pei4YeyFiuJOapvpzB6ohHr+PzSvrOKOBeHu+mRmw5CXmMcmBFEwqGs1A/bImAJ YoI0UzzSxDSGIoc5PVQ9GBWoE+HrYaHG3Z1voWJM= From: "Michael D. Setzer II" To: bug-parted@gnu.org Date: Fri, 24 Sep 2021 22:11:17 +1000 MIME-Version: 1.0 Subject: Missing info?? Message-ID: <614DC065.19900.30BB0C4@mikes.guam.net> Priority: normal X-mailer: Pegasus Mail for Windows (4.73.639) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Content-description: Mail message body Received-SPF: pass client-ip=202.128.0.18; envelope-from=mikes@guam.net; helo=palakse.guam.net X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.6 (-) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Fri, 24 Sep 2021 14:50:14 -0400 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: -2.6 (--) I've been working to create an iso image that includes both regular usb boot, and UEFI usb boot. Process works fine. Create a 64M file, and create everything to the iso image. When image is copied to a flash thou, it has an issue since the flash is much larger than the 64M. Both gparted and parted -l will prompt to fix the error and do so nicely. With parted the -l option does the fix, but it runs on all devices in machine, not just the single flash?? Running parted -l shows info on all devices, and then prompts to repair. Warning: Not all of the space available to /dev/sdb appears to be used, you can fix the GPT to use all of the space (an extra 15499264 blocks) or continue with the current setting? Fix/Ignore? Fix Model: SanDisk Cruzer Blade (scsi) Disk /dev/sdb: 8003MB Sector size (logical/physical): 512B/512B Partition Table: gpt Disk Flags: Number Start End Size File system Name Flags 1 1049kB 67.1MB 66.0MB fat16 G4L boot, esp Have automated the fix with. echo -e "Fix" | sudo parted -l ---pretend-input-tty Was looking at page on parted, and it doesn't list the -l option at all, and don't see the --pretend-input-tty either?? Would like to have the parted -l only run against the flash device rather than all devices, but doesn't seem to work by adding the device to line.. Not a big deal, but thought I would mention it. The parted --help does list options. OPTIONs: -h, --help displays this help message -l, --list lists partition layout on all block devices -m, --machine displays machine parseable output -s, --script never prompts for user intervention -v, --version displays the version -a, --align=[none|cyl|min|opt] alignment for new partitions Thanks. From debbugs-submit-bounces@debbugs.gnu.org Fri Sep 24 19:23:55 2021 Received: (at 50786-close) by debbugs.gnu.org; 24 Sep 2021 23:23:55 +0000 Received: from localhost ([127.0.0.1]:59497 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mTuXr-000893-7m for submit@debbugs.gnu.org; Fri, 24 Sep 2021 19:23:55 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:57095) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mTuXn-00088t-V5 for 50786-close@debbugs.gnu.org; Fri, 24 Sep 2021 19:23:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1632525831; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=varKm2LUetJ/KQPNV7nkxBlhJngwy7jfvZ9P7P7HRbY=; b=IlgkfZisPGycsYFjLs/L9fh5hkGT1/4VEnmE8WFcQkDirSpkmj44WyC2exE/L/nxd7FGS8 6+QjoorWNGejLmHQhM3iWeVMEXMp1eqD5RFOz1zEJt4zXDFPH9wEY+Kp6osLgY2SAyuxsj cS7bCO2gCoq/g6ZZwLaBGiEk5d5uNzk= Received: from mail-pg1-f199.google.com (mail-pg1-f199.google.com [209.85.215.199]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-480-D9ljUEYQO26yV0JxQm7ojA-1; Fri, 24 Sep 2021 19:23:48 -0400 X-MC-Unique: D9ljUEYQO26yV0JxQm7ojA-1 Received: by mail-pg1-f199.google.com with SMTP id z19-20020a631913000000b00252ede336caso7347015pgl.4 for <50786-close@debbugs.gnu.org>; Fri, 24 Sep 2021 16:23:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=varKm2LUetJ/KQPNV7nkxBlhJngwy7jfvZ9P7P7HRbY=; b=Cb/RAT/Pj2+AJEcsa0GIy7z3KXtgwOPYiWKls/hAlvwOJf65g/cmv25YCocAfYryBf OorAWICDtB1d9b1yJ8M5Cjbk84/gbaYGUxiI5mhjjmWblPIOs4KDUNSedzKwTL4Z0QnF iD8AMe9HLInPWYnRmJxeLxPckjvjkvOGSDNSDfMgRj2zHN599x4RZrayjVVyrc+w6s7f cZa+6E+F9jDuFHo5IEIvSMO4HU4jGcGEswKcQqt17f3G8bcAf50BTYQpeU2l1u8N5U44 QtW1+wsuUjViAXBiXLWRvCArmEDSF6bRgD4uArErTXk7VepV+PPc+XSO1VJStari94aV ei7A== X-Gm-Message-State: AOAM532siTgHZut0L948gjJ5/WMDEpXcUTqaN8N/hMKbbhR1BywS6TWp 5jmKdPi0b9hEG8cKwk9fXjn77n4yYe5k60c6hreQ6dJ5aNYVaU8boROdOf6VjDKAG1jB0WkZJNL KS+5aV1wMIqC5qAttJs1y03mOJ+JzcVi5NT906FsljT2ZH+I/mDf0jYkoJRx8SFgfgz7C X-Received: by 2002:a62:7dd3:0:b0:438:a22:a49c with SMTP id y202-20020a627dd3000000b004380a22a49cmr12239513pfc.44.1632525827047; Fri, 24 Sep 2021 16:23:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJynuY/PjdVZVM2AQd4hTOsG26nk/jRYL8oUIkQMiv359HLseN+jmsP60T5tRxBvo3kdzCIZ7Q== X-Received: by 2002:a62:7dd3:0:b0:438:a22:a49c with SMTP id y202-20020a627dd3000000b004380a22a49cmr12239487pfc.44.1632525826609; Fri, 24 Sep 2021 16:23:46 -0700 (PDT) Received: from ohop.brianlane.com ([2601:603:5000:3e9::f06]) by smtp.gmail.com with ESMTPSA id q18sm9759981pfh.170.2021.09.24.16.23.45 for <50786-close@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Sep 2021 16:23:45 -0700 (PDT) Date: Fri, 24 Sep 2021 16:23:43 -0700 From: "Brian C. Lane" To: 50786-close@debbugs.gnu.org Subject: Re: bug#50786: Missing info?? Message-ID: References: <614DC065.19900.30BB0C4@mikes.guam.net> MIME-Version: 1.0 In-Reply-To: <614DC065.19900.30BB0C4@mikes.guam.net> Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=bcl@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 50786-close 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: -1.7 (-) You don't mention what version and distribution you are using. Upstream parted does have -l in the manpage so I'd file a bug with the distribution. parted now (or will, depending on whether your distribution includes patches from master) has a --fix option for your exact problem. When used along with --script it will automatically fix the size of the disk and write the backup partition table. Brian -- Brian C. Lane (PST8PDT) - weldr.io - lorax - parted - pykickstart From debbugs-submit-bounces@debbugs.gnu.org Fri Sep 24 22:28:34 2021 Received: (at 50786) by debbugs.gnu.org; 25 Sep 2021 02:28:34 +0000 Received: from localhost ([127.0.0.1]:59887 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mTxQX-00065g-Vz for submit@debbugs.gnu.org; Fri, 24 Sep 2021 22:28:34 -0400 Received: from palakse.guam.net ([202.128.0.18]:36287) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mTxQV-00065C-3o for 50786@debbugs.gnu.org; Fri, 24 Sep 2021 22:28:32 -0400 Received: from smtp1.guam.net (smtp1 [10.255.255.75]) by palakse.guam.net (Postfix) with ESMTP id AFE1F1146604 for <50786@debbugs.gnu.org>; Sat, 25 Sep 2021 12:28:22 +1000 (ChST) Received: from [192.168.16.107] (182-173-233-11.guam.net [182.173.233.11]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: mikes) by smtp1.guam.net (Postfix) with ESMTPSA id 5FD838A0057 for <50786@debbugs.gnu.org>; Sat, 25 Sep 2021 12:28:22 +1000 (ChST) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.guam.net 5FD838A0057 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=guam.net; s=default; t=1632536902; bh=EsJ8EpBhprLdTbTfBsj/HpNd38I867moKctCFI+xoOM=; h=From:To:Date:Subject:From; b=Lj9WL8RGjFGeMqcrBkDFmsjpIKVFVCsTJUMvucG8r6q/1GOkQOi+VcAU9kvtYlBeI iPslGOL9WJeb8dqovkV1tuq/dGADcqG6Y0BvW9XDsGaBEJM9IVVW7TTaQrOhjXgW9W GAE0CEGCNioKD1vsyWKNCbk2116hicMvqbL7e+h8= From: "Michael D. Setzer II" To: 50786@debbugs.gnu.org Date: Sat, 25 Sep 2021 12:28:21 +1000 MIME-Version: 1.0 Subject: Did find more info https://unix.stackexchange.com/questions/190317/gnu-parted-resizepart-in-script Message-ID: <614E8945.25131.61C575B@mikes.guam.net> Priority: normal X-mailer: Pegasus Mail for Windows (4.73.639) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Content-description: Mail message body X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 50786 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: -1.0 (-) Shows it as undocumented command line?? option? Also, figured it does need 3 dashes. Thought I might have mistyped it, and tried it with command and it failed. So does need 3 ---. Not sure why it is undocumented?? Note that 'isatty' test, which will fail. The 'pretend_input_tty' is an undocumented command line option, which can be switched on via ---pretend-input-tty. So, if you want to use parted from a script, my answer is the following: /sbin/parted -a optimal /dev/loop1 ---pretend-input-tty resizepart 4 Yes 522239s From debbugs-submit-bounces@debbugs.gnu.org Fri Sep 24 22:28:34 2021 Received: (at 50786) by debbugs.gnu.org; 25 Sep 2021 02:28:34 +0000 Received: from localhost ([127.0.0.1]:59889 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mTxQY-00065i-6F for submit@debbugs.gnu.org; Fri, 24 Sep 2021 22:28:34 -0400 Received: from palakse.guam.net ([202.128.0.18]:36288) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mTxQV-00065D-3o for 50786@debbugs.gnu.org; Fri, 24 Sep 2021 22:28:32 -0400 Received: from smtp1.guam.net (smtp1 [10.255.255.75]) by palakse.guam.net (Postfix) with ESMTP id D92C01146628 for <50786@debbugs.gnu.org>; Sat, 25 Sep 2021 12:28:22 +1000 (ChST) Received: from [192.168.16.107] (182-173-233-11.guam.net [182.173.233.11]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: mikes) by smtp1.guam.net (Postfix) with ESMTPSA id 953E98A11C5 for <50786@debbugs.gnu.org>; Sat, 25 Sep 2021 12:28:22 +1000 (ChST) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.guam.net 953E98A11C5 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=guam.net; s=default; t=1632536902; bh=E1GbHI1aKxn0CgsvwB8HTfXGC5DqMuv1oJ/dJTV4QR4=; h=From:To:Date:Subject:From; b=IaRL40QtoAR7G3Sywh++NyUvLFKDJ8f/psWQpAeXcXKaIBqKROh8q2H6v81KyOhEV 55oODdmV0qKaQTSn7odagv0zDpAsME6hR6pXcTgVUKmnLrYqyTSDwiw2vUtPn6s7Wd q3q6VICy/zHjDpU1dVmwHum9LyXY7WzQyih6C6+I= From: "Michael D. Setzer II" To: 50786@debbugs.gnu.org Date: Sat, 25 Sep 2021 12:28:21 +1000 MIME-Version: 1.0 Subject: Reply to reply... Clearing up things. Message-ID: <614E8945.5687.61C56E7@mikes.guam.net> Priority: normal X-mailer: Pegasus Mail for Windows (4.73.639) Content-type: text/plain; charset=UTF-8 Content-transfer-encoding: Quoted-printable Content-description: Mail message body X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 50786 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: -1.0 (-) Perhaps I wasn't clear. The distro I am using does shows the -l option The GNU page that I was looking at does not include it. https://www.gnu.org/software/parted/manual/parted.html 2.3 Command Line Options When invoked from the command line, Parted supports the following syntax: # parted [option] device [command [argument]] Available options and commands follow. For detailed explanations of the use of Parted commands, see Command explanations. Options begin with a hyphen, commands do not: Options: =E2=80=98-h=E2=80=99 =E2=80=98--help=E2=80=99 display a help message =E2=80=98-s=E2=80=99 =E2=80=98--script=E2=80=99 never prompt the user =E2=80=98-a alignment-type=E2=80=99 =E2=80=98--align alignment-type=E2=80=99 Set alignment for newly created partitions, valid alignment types are: none, cylinder, minimal and optimal. =E2=80=98-v=E2=80=99 =E2=80=98--version=E2=80=99 display the version While the Fedora 33 distro shows. OPTIONS -h, --help displays a help message -l, --list lists partition layout on all block devices -m, --machine displays machine parseable output -s, --script never prompts for user intervention -v, --version displays the version -a alignment-type, --align alignment-type Set alignment for newly created partitions, valid alignment types are: none Use the minimum alignment allowed by the disk type. cylinder Align partitions to cylinders. minimal Use minimum alignment as given by the disk topology information. This and the opt value will use layout information provided by the disk to align the logical partition table addresses to actual physical blocks on the disks. The min value is the minimum alignment needed to align the parti=E2=80=90 tion properly to physical blocks, which avoids performance degradation. optimal Use optimum alignment as given by the disk topology information. This aligns to a multiple of the physical block size in a way that guarantees optimal performance. Neither have anything about ---pretend-input-tty option. The line I am currently using to do the fixing is: echo -e "Fix" | parted -l --pretend-input-tty It does fix the issue, put the time command in front of it, and it reports real 0m17.244s user 0m0.015s sys 0m0.025s If I run parted -l a second time right after it shows. real 0m0.211s user 0m0.014s sys 0m0.018s So, not clear if the 17 seconds is to doing the repair on flash, or if the info from first run was used to speed up second run?? data on program with Fedora 33 is: 90888 Jul 29 2020 /usr/sbin/parted The man at end shows 2007 March 29?? parted --help doesn't seem to show any date info. OPTIONs: -h, --help displays this help message -l, --list lists partition layout on all block devices -m, --machine displays machine parseable output -s, --script never prompts for user intervention -v, --version displays the version -a, --align=3D[none|cyl|min|opt] alignment for new partitions That has the -l option, but it says it lists all block devices, so doesn't show that there might be a way to do just one. Tried piping the Fix , but without the --pretend-input-tty it seemed to be ignored?? Thanks again. Will see if parted is updated over time. From unknown Fri Jun 20 07:09:59 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 23 Oct 2021 11:24:10 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator