Next: move, Previous: mkpart, Up: Command explanations
Creates a new partition of type part-type with a new file system of type fs-type on it. The new partition will start start megabytes, and end end megabytes from the beginning of the disk. Do not use this command to recover a deleted partition (use mkpart instead).
part-type is one of: primary, extended, logical. Extended and logical are only used for msdos and dvh disk labels.
fs-type must be one of these supported file systems:
- ext2
- fat16, fat32
- linux-swap
- reiserfs (if libreiserfs is installed)
Example:
(parted) mkpartfs logical ext2 440 670Make a logical partition and write an ext2 file system, starting 440 megabytes and ending 670 megabytes from the beginning of the disk.