parted
A partition manipulation program. tldr-pages
On Linux
Linux
List partitions on all block devices
sudo parted --listIdentifyCreate a new partition table of the specified label-type
sudo parted /dev/sdX mklabel aixIdentifyCreate a new gpt partition table with a 500MiB boot partition and give the rest for the system partition (--script skips user intervention prompts)
sudo parted /dev/sdX --script mklabel gpt mkpart "boot_partition_name" 0% 500MiB mkpart "system_partition_name" 500MiB 100%IdentifySet a partition to have its boot flag turned on
sudo parted /dev/sdX set 1 boot onIdentifyStart interactive mode with the specified disk selected
sudo parted /dev/sdXIdentifyDisplay help
parted --helpIdentify