root@kvm1:/# parted /dev/sda
GNU Parted3.2Using/dev/sda
Welcome to GNU Parted! Type 'help'to view a list of commands.
(parted) help
align-check TYPE N check partition N for TYPE(min|opt) alignment(检查分区N是否为TYPE(min |opt)对齐)
help [COMMAND] print general help, or help on COMMAND(打印一般帮助,或帮助COMMAND)
mklabel,mktable LABEL-TYPE create a new disklabel (partition table)(创建一个新的disklabel(分区表))
mkpart PART-TYPE [FS-TYPE] START END makea partition(做一个分区)
name NUMBER NAME name partition NUMBER as NAME(将分区名称NUMBER作为NAME)
print [devices|free|list,all|NUMBER] display the partition table, available devices, freespace, all found partitions, or a particular partition(显示分区表,可用设备,可用空间,所有找到的分区或特定分区)
quit exit program(退出程序)
rescue START END rescue a lost partition near START and END(在START和END附近找出丢失的分区)
resizepart NUMBER END resize partition NUMBER(调整分区NUMBER)rmNUMBER delete partition NUMBER(删除分区NUMBER)selectDEVICE choose the device to edit(选择要编辑的设备)
disk_set FLAG STATE change the FLAG on selected device(更改所选设备上的FLAG)
disk_toggle [FLAG] toggle the state of FLAG on selected device(在所选设备上切换FLAG的状态)
set NUMBER FLAG STATE change the FLAG on partition NUMBER(更改分区NUMBER上的FLAG)
toggle [NUMBER [FLAG]] toggle the state of FLAG on partition NUMBER(切换分区NUMBER上的FLAG状态)
unit UNIT set the default unit to UNIT(将默认单位设置为UNIT)
version display the version number and copyright information of GNU Parted(显示GNU Parted的版本号和版权信息)