•
To print general help, or help on COMMAND:
help [COMMAND]
•
To create a new disk label (partition table):
mklabel PARTITION_TYPE
The supported values for PARTITION_TYPE are: gpt, bsd, mac, dvh, msdos, pc98, sun,
amiga, loop
•
To make a file system FTYPE on partition MINOR:
mkfs MINOR FTYPE
FTYPE is file system type: fat16, fat32, ext2 and linux-swap.
•
To create a partition:
mkpart PTYPE START END
PTYPE is partition type: primary, logical or extended. For GPT partition table only "primary"
is used.
•
To create a partition with a file system:
mkpartfs PTYPE FTYPE START END
PTYPE is partition type: primary, logical or extended. For GPT partition table only "primary"
is used.
FTYPE is file system type: fat16, fat32, ext2 and linux-swap.
•
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
The accepted value to state is "on" or "off".
80
Utilities Reference