GNU bug report logs - #55184
XFS partition could not be created on NVMe disk via parted command

Previous Next

Package: parted;

Reported by: Hossein Ojani <hossein.ojani <at> gmail.com>

Date: Fri, 29 Apr 2022 14:10: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 55184 in the body.
You can then email your comments to 55184 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#55184; Package parted. (Fri, 29 Apr 2022 14:10:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Hossein Ojani <hossein.ojani <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-parted <at> gnu.org. (Fri, 29 Apr 2022 14:10:02 GMT) Full text and rfc822 format available.

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

From: Hossein Ojani <hossein.ojani <at> gmail.com>
To: bug-parted <at> gnu.org
Subject: XFS partition could not be created on NVMe disk via parted command
Date: Fri, 29 Apr 2022 09:12:25 -0400
[Message part 1 (text/plain, inline)]
Hi Team,

I am writing this email to you because of an error that I've been
encountering using parted command on a NVMe disk.

Using an Ubuntu 20.04 dist, I've been trying to create partitions on a NVMe
disk though I see errors. Below I will put just one of the conditions that
I've faced errors, but there are several.

(parted) print free
Model: NVMe Device (nvme)
Disk /dev/nvme0n1: 5369MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:

Number  Start   End     Size    Type     File system  Flags
        0.00B   511B    512B             Free Space
 1      512B    1074MB  1074MB  primary               lvm
        1074MB  5369MB  4295MB           Free Space

*(parted) mkpart extended xfs 1074MB 1574MB *
Error: Invalid number.

However, the same action could be done if the File-System is not mentioned
in the command:

*(parted) mkpart extended 1074MB 1574MB*
(parted) print
Model: NVMe Device (nvme)
Disk /dev/nvme0n1: 5369MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:

Number  Start   End     Size    Type      File system  Flags
 1      512B    1074MB  1074MB  primary                lvm
 2      1074MB  1574MB  500MB   extended               lba

It seems the command only denies using XFS File System as it does accept
other partitions as below:

(parted) mkpart primary ext4 1575MB 1774MB
(parted) print
Model: NVMe Device (nvme)
Disk /dev/nvme0n1: 5369MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:

Number  Start   End     Size    Type     File system  Flags
 1      512B    1074MB  1074MB  primary               lvm
 2      1074MB  1574MB  500MB   primary               lba
 3      1575MB  1774MB  199MB   primary  ext4         lba

Would you please check the case as I observed the same question in some
relevant forums?
I am looking forward to hearing from you.

Yours sincerely,
Hossein Ojani
[Message part 2 (text/html, inline)]

Reply sent to "Brian C. Lane" <bcl <at> redhat.com>:
You have taken responsibility. (Fri, 29 Apr 2022 15:42:02 GMT) Full text and rfc822 format available.

Notification sent to Hossein Ojani <hossein.ojani <at> gmail.com>:
bug acknowledged by developer. (Fri, 29 Apr 2022 15:42:02 GMT) Full text and rfc822 format available.

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

From: "Brian C. Lane" <bcl <at> redhat.com>
To: Hossein Ojani <hossein.ojani <at> gmail.com>
Cc: 55184-close <at> debbugs.gnu.org
Subject: Re: bug#55184: XFS partition could not be created on NVMe disk via
 parted command
Date: Fri, 29 Apr 2022 08:41:31 -0700
On Fri, Apr 29, 2022 at 09:12:25AM -0400, Hossein Ojani wrote:
> Hi Team,
> 
> I am writing this email to you because of an error that I've been
> encountering using parted command on a NVMe disk.
> 
> Using an Ubuntu 20.04 dist, I've been trying to create partitions on a NVMe
> disk though I see errors. Below I will put just one of the conditions that
> I've faced errors, but there are several.


> *(parted) mkpart extended xfs 1074MB 1574MB *
> Error: Invalid number.

That's because an extended partition is a container for logical
partitions, it doesn't have a filesystem on it, the logical partition
does.

Brian

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





Information forwarded to bug-parted <at> gnu.org:
bug#55184; Package parted. (Sun, 01 May 2022 23:42:02 GMT) Full text and rfc822 format available.

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

From: Hossein Ojani <hossein.ojani <at> gmail.com>
To: "Brian C. Lane" <bcl <at> redhat.com>
Cc: 55184-close <at> debbugs.gnu.org
Subject: Re: bug#55184: XFS partition could not be created on NVMe disk via
 parted command
Date: Sun, 1 May 2022 19:41:09 -0400
[Message part 1 (text/plain, inline)]
Hi Brian,

Sorry, my bad. missed the point.

Regards,
Hossein


On Fri, Apr 29, 2022 at 11:41 AM Brian C. Lane <bcl <at> redhat.com> wrote:

> On Fri, Apr 29, 2022 at 09:12:25AM -0400, Hossein Ojani wrote:
> > Hi Team,
> >
> > I am writing this email to you because of an error that I've been
> > encountering using parted command on a NVMe disk.
> >
> > Using an Ubuntu 20.04 dist, I've been trying to create partitions on a
> NVMe
> > disk though I see errors. Below I will put just one of the conditions
> that
> > I've faced errors, but there are several.
>
>
> > *(parted) mkpart extended xfs 1074MB 1574MB *
> > Error: Invalid number.
>
> That's because an extended partition is a container for logical
> partitions, it doesn't have a filesystem on it, the logical partition
> does.
>
> Brian
>
> --
> Brian C. Lane (PST8PDT) - weldr.io - lorax - parted - pykickstart
>
>
[Message part 2 (text/html, inline)]

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 30 May 2022 11:24:09 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 329 days ago.

Previous Next


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