CmdID

CmdID / Commands

diskutil-partitiondisk

Utility to manage partitions inside disks and volumes. tldr-pages

On macOS

Opens CmdID with your command. It is read in your browser and sent nowhere.

Utility to manage partitions inside disks and volumes. APM is only supported for macOS, MBR is optimized for DOS, while GPT is compatible for most modern systems. Part of diskutil.

Reformat a volume using APM/MBR/GPT partitioning scheme, leaving no partitions inside (this will erase all data on the volume)

diskutil partitionDisk /dev/disk_device 0 APMIdentify

Reformat a volume, then create a single partition using a specific filesystem filling up all free space

diskutil partitionDisk /dev/disk_device 1 APM partition_filesystem partition_nameIdentify

Reformat a volume, then create a single partition using a specific filesystem under specific size (e.g. 16G for 16GB or 50% to fill half of total volume size)

diskutil partitionDisk /dev/disk_device 1 APM partition_filesystem partition_name partition_sizeIdentify

Reformat a volume, then create multiple partitions

diskutil partitionDisk /dev/disk_device number_of_partitions APM partition_filesystem1 partition_name1 partition_size1 partition_filesystem2 partition_name2 partition_size2 ...Identify

List all supported filesystems for partitioning

diskutil listFilesystemsIdentify