• To move a partition MINOR:
move MINOR START END
• To name a partition MINOR to NAME:
name MINOR NAME
• To display a partition table, or a partition:
print [MINOR]
• To exit:
quit
• To recovery a lost partition near START and END:
rescue START END
• To resize a file system on partition MINOR:
resize MINOR START END
• To delete partition MINOR:
rm MINOR
• To select the device to edit:
select DEVICE
• To change a flag on partition MINOR:
set MINOR FLAG STATE
The relevant flags are:
boot Set ESP Partition GUID.
hidden Hidden partition
hp-service Set HPSP Partition GUID.
msftres Set MSRES Partition GUID.
The accepted values for STATE are “on” or “off”.
• To create a new GPT partition table in /dev/sda device:
parted -s /dev/sda mklabel gpt
• To create a partition with 100 MB, starting in LBA 0 and finalizing in LBA 100 in
/dev/cciss/c0d0 device:
parted -s /dev/cciss/c0d0 mkpart 0 100
• To set the ESP partition GUID in the first partition on the table:
parted -s /dev/cciss/c0d0 set 1 boot on
• To set the name of the second partition of the /dev/cciss/c0d0 partition table to “HP
Service Partition” use:
parted -s /dev/sda name 2 “HP Service Partition”
100 Utilities Reference