bug#80534: my bug report was truncated somehow before posting; here's all of it

Steve Newcomb <[email protected]> Tue, 03 Mar 2026 13:47:21 -0500
Newsgroups gmane.comp.gnu.parted.bugs
Message-ID <[email protected]>
--=-zil+L3gngMWmS4XDxS5k
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

The parted manual says the format for the mkpart command is

=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 mkpart [part-type name fs-=
type] start end

which is correct, especially because it clarifies that gpt labels,
among others, don't use part-type.

Within parted, however, the "help mkpart" command yields this (wrong)
information, which leads to baffling behavior from parted:

   (parted) help mkpart
   =C2=A0 mkpart PART-TYPE [FS-TYPE] START END =C2=A0 =C2=A0 make a partiti=
on
  =20
    PART-TYPE is one of: primary, logical, extended
   =C2=A0 =C2=A0 =C2=A0 =C2=A0 FS-TYPE is one of: udf, btrfs, nilfs2, ext4,=
 ext3, ext2, f2fs,
   fat32,
   =C2=A0 =C2=A0 =C2=A0 =C2=A0 fat16, hfsx, hfs+, hfs, jfs, swsusp, linux-s=
wap(v1), linux-
   swap(v0),
   =C2=A0 =C2=A0 =C2=A0 =C2=A0 ntfs, reiserfs, hp-ufs, sun-ufs, xfs, apfs2,=
 apfs1, asfs,
   amufs5,
   =C2=A0 =C2=A0 =C2=A0 =C2=A0 amufs4, amufs3, amufs2, amufs1, amufs0, amuf=
s, affs7, affs6,
   affs5,
   =C2=A0 =C2=A0 =C2=A0 =C2=A0 affs4, affs3, affs2, affs1, affs0, linux-swa=
p, linux-swap(new),
   =C2=A0 =C2=A0 =C2=A0 =C2=A0 linux-swap(old)
   =C2=A0 =C2=A0 =C2=A0 =C2=A0 START and END are disk locations, such as 4G=
B or 10%. =C2=A0Negative
   values
   =C2=A0 =C2=A0 =C2=A0 =C2=A0 count from (parted) help mkpart
   mkpart PART-TYPE [FS-TYPE] START END make a partition
  =20
   PART-TYPE is one of: primary, logical, extended
   FS-TYPE is one of: udf, btrfs, nilfs2, ext4, ext3, ext2, f2fs, fat32,
   fat16, hfsx, hfs+, hfs, jfs, swsusp, linux-swap(v1), linux-swap(v0),
   ntfs, reiserfs, hp-ufs, sun-ufs, xfs, apfs2, apfs1, asfs, amufs5,
   amufs4, amufs3, amufs2, amufs1, amufs0, amufs, affs7, affs6, affs5,
   affs4, affs3, affs2, affs1, affs0, linux-swap, linux-swap(new),
   linux-swap(old)
   START and END are disk locations, such as 4GB or 10%. Negative values
   count from the end of the disk. For example, -1s specifies exactly the
   last sector.
   'mkpart' makes a partition without creating a new file system on the
   partition. FS-TYPE may be specified to set an appropriate partition
   ID.
   (parted)the end of the disk. =C2=A0For example, -1s specifies exactly th=
e
   =C2=A0 =C2=A0 =C2=A0 =C2=A0 last sector.
   =C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0
   =C2=A0 =C2=A0 =C2=A0 =C2=A0 'mkpart' makes a partition without creating =
a new file system
   on the
   =C2=A0 =C2=A0 =C2=A0 =C2=A0 partition. =C2=A0FS-TYPE may be specified to=
 set an appropriate
   partition
   =C2=A0 =C2=A0 =C2=A0 =C2=A0 ID.
   (parted)=C2=A0
  =20


--=-zil+L3gngMWmS4XDxS5k
Content-Type: text/html; charset="utf-8"
Content-Transfer-Encoding: quoted-printable

<html><head></head><body><div><div style=3D"unicode-bidi: plaintext; caret-=
color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Cantarell; font-size=
: 14.666667px; font-style: normal; font-variant-caps: normal; font-weight: =
400; letter-spacing: normal; orphans: auto; text-align: start; text-indent:=
 0px; text-transform: none; white-space: normal; widows: auto; word-spacing=
: 0px; -webkit-tap-highlight-color: rgba(0, 0, 0, 0.4); -webkit-text-stroke=
-width: 0px; text-decoration: none;">The parted manual says the format for =
the mkpart command is</div><div style=3D"unicode-bidi: plaintext; caret-col=
or: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Cantarell; font-size: 1=
4.666667px; font-style: normal; font-variant-caps: normal; font-weight: 400=
; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0p=
x; text-transform: none; white-space: normal; widows: auto; word-spacing: 0=
px; -webkit-tap-highlight-color: rgba(0, 0, 0, 0.4); -webkit-text-stroke-wi=
dth: 0px; text-decoration: none;"><br></div><div style=3D"unicode-bidi: pla=
intext; caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Cantar=
ell; font-size: 14.666667px; font-style: normal; font-variant-caps: normal;=
 font-weight: 400; letter-spacing: normal; orphans: auto; text-align: start=
; text-indent: 0px; text-transform: none; white-space: normal; widows: auto=
; word-spacing: 0px; -webkit-tap-highlight-color: rgba(0, 0, 0, 0.4); -webk=
it-text-stroke-width: 0px; text-decoration: none;">&nbsp; &nbsp; &nbsp; &nb=
sp; &nbsp; &nbsp; &nbsp; mkpart [part-type name fs-type] start end</div><di=
v style=3D"font-size: 14.666667px;"><br></div><div style=3D"font-size: 14.6=
66667px;">which is correct, especially because it clarifies that gpt labels=
, among others, don't use part-type.</div><div style=3D"font-size: 14.66666=
7px;"><br></div><div style=3D"font-size: 14.666667px;">Within parted, howev=
er, the "help mkpart" command yields this (wrong) information, which leads =
to baffling behavior from parted:</div><div><br></div><div style=3D"margin-=
left: 3ch;">(parted) help mkpart</div><div style=3D"margin-left: 3ch;">&nbs=
p; mkpart PART-TYPE [FS-TYPE] START END &nbsp; &nbsp; make a partition</div=
><div style=3D"margin-left: 3ch;"><br></div><div style=3D"margin-left: 3ch;=
"><span class=3D"Apple-tab-span" style=3D"white-space:pre">	</span>PART-TYP=
E is one of: primary, logical, extended</div><div style=3D"margin-left: 3ch=
;">&nbsp; &nbsp; &nbsp; &nbsp; FS-TYPE is one of: udf, btrfs, nilfs2, ext4,=
 ext3, ext2, f2fs, fat32,</div><div style=3D"margin-left: 3ch;">&nbsp; &nbs=
p; &nbsp; &nbsp; fat16, hfsx, hfs+, hfs, jfs, swsusp, linux-swap(v1), linux=
-swap(v0),</div><div style=3D"margin-left: 3ch;">&nbsp; &nbsp; &nbsp; &nbsp=
; ntfs, reiserfs, hp-ufs, sun-ufs, xfs, apfs2, apfs1, asfs, amufs5,</div><d=
iv style=3D"margin-left: 3ch;">&nbsp; &nbsp; &nbsp; &nbsp; amufs4, amufs3, =
amufs2, amufs1, amufs0, amufs, affs7, affs6, affs5,</div><div style=3D"marg=
in-left: 3ch;">&nbsp; &nbsp; &nbsp; &nbsp; affs4, affs3, affs2, affs1, affs=
0, linux-swap, linux-swap(new),</div><div style=3D"margin-left: 3ch;">&nbsp=
; &nbsp; &nbsp; &nbsp; linux-swap(old)</div><div style=3D"margin-left: 3ch;=
">&nbsp; &nbsp; &nbsp; &nbsp; START and END are disk locations, such as 4GB=
 or 10%. &nbsp;Negative values</div><div style=3D"margin-left: 3ch;">&nbsp;=
 &nbsp; &nbsp; &nbsp; count from (parted) help mkpart</div><div style=3D"ma=
rgin-left: 3ch;">  mkpart PART-TYPE [FS-TYPE] START END     make a partitio=
n</div><div style=3D"margin-left: 3ch;"><br></div><div style=3D"margin-left=
: 3ch;">	PART-TYPE is one of: primary, logical, extended</div><div style=3D=
"margin-left: 3ch;">        FS-TYPE is one of: udf, btrfs, nilfs2, ext4, ex=
t3, ext2, f2fs, fat32,</div><div style=3D"margin-left: 3ch;">        fat16,=
 hfsx, hfs+, hfs, jfs, swsusp, linux-swap(v1), linux-swap(v0),</div><div st=
yle=3D"margin-left: 3ch;">        ntfs, reiserfs, hp-ufs, sun-ufs, xfs, apf=
s2, apfs1, asfs, amufs5,</div><div style=3D"margin-left: 3ch;">        amuf=
s4, amufs3, amufs2, amufs1, amufs0, amufs, affs7, affs6, affs5,</div><div s=
tyle=3D"margin-left: 3ch;">        affs4, affs3, affs2, affs1, affs0, linux=
-swap, linux-swap(new),</div><div style=3D"margin-left: 3ch;">        linux=
-swap(old)</div><div style=3D"margin-left: 3ch;">        START and END are =
disk locations, such as 4GB or 10%.  Negative values</div><div style=3D"mar=
gin-left: 3ch;">        count from the end of the disk.  For example, -1s s=
pecifies exactly the</div><div style=3D"margin-left: 3ch;">        last sec=
tor.</div><div style=3D"margin-left: 3ch;">        </div><div style=3D"marg=
in-left: 3ch;">        'mkpart' makes a partition without creating a new fi=
le system on the</div><div style=3D"margin-left: 3ch;">        partition.  =
FS-TYPE may be specified to set an appropriate partition</div><div style=3D=
"margin-left: 3ch;">        ID.</div><div style=3D"margin-left: 3ch;">(part=
ed)the end of the disk. &nbsp;For example, -1s specifies exactly the</div><=
div style=3D"margin-left: 3ch;">&nbsp; &nbsp; &nbsp; &nbsp; last sector.</d=
iv><div style=3D"margin-left: 3ch;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div>=
<div style=3D"margin-left: 3ch;">&nbsp; &nbsp; &nbsp; &nbsp; 'mkpart' makes=
 a partition without creating a new file system on the</div><div style=3D"m=
argin-left: 3ch;">&nbsp; &nbsp; &nbsp; &nbsp; partition. &nbsp;FS-TYPE may =
be specified to set an appropriate partition</div><div style=3D"margin-left=
: 3ch;">&nbsp; &nbsp; &nbsp; &nbsp; ID.</div><div style=3D"margin-left: 3ch=
;">(parted)&nbsp;</div></div><div style=3D"margin-left: 3ch;"><br></div><di=
v><br></div><div><span></span></div></body></html>

--=-zil+L3gngMWmS4XDxS5k--