GNU bug report logs - #58393
parted ignores "fs-type" in mkpart when it specified in command line

Previous Next

Package: parted;

Reported by: rva <galdralag <at> bk.ru>

Date: Sun, 9 Oct 2022 08:11:02 UTC

Severity: normal

Done: "Brian C. Lane" <bcl <at> redhat.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 58393 in the body.
You can then email your comments to 58393 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-parted <at> gnu.org:
bug#58393; Package parted. (Sun, 09 Oct 2022 08:11:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to rva <galdralag <at> bk.ru>:
New bug report received and forwarded. Copy sent to bug-parted <at> gnu.org. (Sun, 09 Oct 2022 08:11:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: rva <galdralag <at> bk.ru>
To: bug-parted <at> gnu.org
Subject: parted ignores "fs-type" in mkpart when it specified in command line
Date: Sun, 09 Oct 2022 00:34:37 +0300
[Message part 1 (text/plain, inline)]
When running in command prompt (gpt disk with no partitions)
mkpart PartName ext4 1M 500M
partition is created and "print" command shows file system ext4
 
When running
parted /dev/sda mkpart PartName ext4 1M 500M
parted creates partition but "print" does show file system.
 
So "mkpart" works different in interactive mode and non-interactive (file system is ignored)
 
 
 
[Message part 2 (text/html, inline)]

Reply sent to "Brian C. Lane" <bcl <at> redhat.com>:
You have taken responsibility. (Mon, 10 Oct 2022 15:49:01 GMT) Full text and rfc822 format available.

Notification sent to rva <galdralag <at> bk.ru>:
bug acknowledged by developer. (Mon, 10 Oct 2022 15:49:01 GMT) Full text and rfc822 format available.

Message #10 received at 58393-close <at> debbugs.gnu.org (full text, mbox):

From: "Brian C. Lane" <bcl <at> redhat.com>
To: 58393-close <at> debbugs.gnu.org
Subject: Re: bug#58393: parted ignores "fs-type" in mkpart when it specified
 in command line
Date: Mon, 10 Oct 2022 08:48:37 -0700
On Sun, Oct 09, 2022 at 12:34:37AM +0300, rva via Bug reports for the GNU Parted disk partition editor wrote:
> 
> When running in command prompt (gpt disk with no partitions)
> mkpart PartName ext4 1M 500M
> partition is created and "print" command shows file system ext4
>  
> When running
> parted /dev/sda mkpart PartName ext4 1M 500M
> parted creates partition but "print" does show file system.
>  
> So "mkpart" works different in interactive mode and non-interactive (file system is ignored)

I assume you mean that a separate print 'does not' show the filesystem.
This is normal, and it is because parted doesn't actually create the
filesystem, you need to do that yourself.

When creating a partition the filesystem you enter is used to determine
the UUID to use for the partition type (eg. linux data or swap or
whatever). When you rerun parted without actually creating that
filesystem it doesn't show anything because it hasn't detected a
filesystem on the partition. If you create an ext4 filesystem on that
partition it will show ext4.

Note that in the current master version of parted it can show the actual
partition type UUID in the --json output.

Brian

-- 
Brian C. Lane (PST8PDT) - weldr.io - lorax - parted - pykickstart





bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 08 Nov 2022 12:24:08 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 280 days ago.

Previous Next


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