目次
【書式】
# parted /dev/[DEVICE]
【例】
# parted /dev/sdb GNU Parted 1.8.1 Using /dev/sdb Welcome to GNU Parted! Type 'help' to view a list of commands. (parted)
【書式】
(parted) print
(parted) p
【例】
(parted) print Model: AMCC 9650SE-12M DISK (scsi) Disk /dev/sdb: 10000GB Sector size (logical/physical): 512B/512B Partition Table: gpt Number Start End Size File system Name Flags 1 17.4kB 2000GB 2000GB 1
【書式】
(parted) mkpart Partition name? []? 1 File system type? [ext2]? ext3 Start? 0 End? 2000000
(parted) mkpart Partition name? []? 3 File system type? [ext2]? ext3 Start? 1 End? -1
【書式】
(parted) mklabel gpt
| check NUMBER | do a simple check on the file system |
| cp [FROM-DEVICE] FROM-NUMBER TO-NUMBER | copy file system to another partition |
| help [COMMAND] | prints general help, or help on COMMAND |
| mklabel,mktable LABEL-TYPE | create a new disklabel (partition table) |
| mkfs NUMBER FS-TYPE | make a FS-TYPE file system on partititon NUMBER |
| mkpart PART-TYPE [FS-TYPE] START END | make a partition |
| mkpartfs PART-TYPE FS-TYPE START END | make a partition with a file system |
| move NUMBER START END | move partition NUMBER |
| name NUMBER NAME | name partition NUMBER as NAME |
| print [free/NUMBER/all] | display the partition table, a partition, or all devices |
| quit | exit program |
| rescue START END | rescue a lost partition near START and END |
| resize NUMBER START END | resize partition NUMBER and its file system |
| rm NUMBER | delete partition NUMBER |
| select DEVICE | choose the device to edit |
| set NUMBER FLAG STATE | change the FLAG on partition NUMBER |
| toggle [NUMBER [FLAG]] | toggle the state of FLAG on partition NUMBER |
| unit UNIT | set the default unit to UNIT |
| version | displays the current version of GNU Parted and copyright |
| information |