Next: , Previous: mkpart, Up: Command explanations


2.4.7 mkpartfs

— Command: mkpartfs part-type fs-type start end

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:

Example:

          (parted) mkpartfs logical ext2 440 670
     

Make a logical partition and write an ext2 file system, starting 440 megabytes and ending 670 megabytes from the beginning of the disk.