Definition:
- It can be used to create, destroy, and resize Disk Partition. The parted command runs the GNU Parted utility.
- example:
sudo parted /dev/sd*
mklabel gpt
mkpart primary ext4 1MB 2000MB
print
quit
- can also format NTFS partitions
Synopsis:
parted [options] [device [command [options...]...]]
List of options:
help [COMMAND]
: print general help, or help on COMMAND
mklabel,mktable LABEL-TYPE
: create a new disklabel (partition table)
mkpart PART-TYPE [FS-TYPE] START END
: make a partition
print [devices|free|list,all|NUMBER]
: display the partition table, available devices, free space, all found partitions, or a particular partition
quit
: exit program
resizepart NUMBER END
: resize partition NUMBER
rm NUMBER
: delete partition NUMBER
select DEVICE
: choose the device to edit