partition manipulation program

parted [options] [device [command [options]]]

Manipulate disk partitions. It supports multiple partition table formats, including MS-DOS and GPT. for creating space for new operating systems, reorganising disk usage, and copying data to new hard disks.

partition layout on all block devices
Model: SD SL32G (sd/mmc)
Disk /dev/mmcblk0: 31.9GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags: 

Number  Start   End     Size    Type     File system  Flags
 1      4194kB  47.7MB  43.5MB  primary  fat32        lba
 2      48.2MB  15.9GB  15.9GB  primary  ext4
 3      15.9GB  22.4GB  6442MB  primary
displays machine parseable output
/dev/mmcblk0:31.9GB:sd/mmc:512:512:msdos:SD SL32G:;
no prompts
-a atype
--align atype
Set alignment for newly created partitions, valid types :
none Use the minimum alignment allowed by the disk type.
cylinder Align partitions to cylinders.
minimal . Use minimum alignment as given by the disk topology information. This and the opt value will use layout information provided by the disk to align the logical partition table addresses to actual physical blocks on the disks. The min value is the minimum alignment needed to align the partition properly to physical blocks, which avoids performance degradation.
optimal as given by the disk topology information. to a multiple of the physical block size for optimal performance.


device The block device to be used. default:first block device it finds.
command options If no command is given, parted will present a command prompt.
print Display the partition table.
align-check type partition Check if partition satisfies the alignment constraint of type. type must be minimal or optimal.
mklabel label-type Create a new disklabel (partition table) of aix amiga bsd dvh gpt loop mac msdos pc98 or sun.
mkpart part-type [fs-type] start end Make a part-type partition for filesystem fs-type (if specified), beginning at start and ending at end (by default in megabytes). part-type should be one of primary logical or extended.
name partition name Set the name of partition to name. only on Mac, PC98, and GPT disklabels. The name can be placed in quotes, if necessary.
rescue start end Rescue a lost partition located between start and end.
resizepart partition end Change the end position of partition. does not modify filesystem present in the partition.
rm partition Delete partition.
select device Choose device as the current device to edit. hard disk device, partition, software raid device, or an LVM logical volume if necessary.
set partition flag on|off Change the state of the flag on partition to state. Supported flags are: boot root swap hidden raid lvm lba legacy_boot irst esp and palo.
unit unit Set default unit when displaying locations and sizes, and for interpreting those given
When not suffixed with an explicit unit. unit can be one of s (sectors), B (bytes), kB MB MiB GB GiB TB TiB % (percentage of device size), cyl (cylinders), chs (cylinders, heads, sectors), or compact" (megabytes for input, and a human-friendly form for output).
toggle partition flag Toggle the state of flag on partition.
help [command] Print general help, or help on command if specified.

SEE ALSO fdisk(8), mkfs(8),