parted /dev/sdb mkpart primary ext4 0% 50%

Category: Administration

parted /dev/sdb mkpart primary ext4 0% 50%

Create a partition with parted

Creates a new partition on a disk using parted. Specifies the type, filesystem, and size range.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.