emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#58393: closed (parted ignores "fs-type" in mkpart when it specified


From: GNU bug Tracking System
Subject: bug#58393: closed (parted ignores "fs-type" in mkpart when it specified in command line)
Date: Mon, 10 Oct 2022 15:49:01 +0000

Your message dated Mon, 10 Oct 2022 08:48:37 -0700
with message-id <Y0Q+1cVgvBXm9t2G@ohop.brianlane.com>
and subject line Re: bug#58393: parted ignores "fs-type" in mkpart when it 
specified in command line
has caused the debbugs.gnu.org bug report #58393,
regarding parted ignores "fs-type" in mkpart when it specified in command line
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
58393: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=58393
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: parted ignores "fs-type" in mkpart when it specified in command line Date: Sun, 09 Oct 2022 00:34:37 +0300
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)
 
 
 

--- End Message ---
--- Begin Message --- 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



--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]