bug#22190: mkpart: "primary" unrecognised

"Brian C. Lane" <[email protected]>
Newsgroups gmane.comp.gnu.parted.bugs
Message-ID <[email protected]>
On Thu, Dec 17, 2015 at 04:16:53PM +1300, worik wrote:
> $ sudo parted -s /dev/sdb mkpart primary 0 8000
> parted: invalid token: primary
> Error: Expecting a file system type.
> 
> 
> The man page says:
> 
> mkpart part-type [fs-type] start end
>                      Make a part-type partition with filesystem fs-type
> (if specified), beginning at  start  and  ending  at  end  (by default
> in megabytes).   fs-type  can  be  one of "fat16", "fat32", "ext2",
> "HFS", "linux-swap", "NTFS", "reiserfs", or "ufs".  part-type
>                      should be one of "primary", "logical", or "extended".

What type of disklabel is it? If it is GPT then primary, etc. isn't
used. We should figure out how to make this clearer in the docs.

-- 
Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.