blob: 70404025cdb08c13ff0c30883b15c95ee0e9e4eb [file] [log] [blame]
.TH PARTED 8 "2007 March 29" parted "GNU Parted Manual"
GNU Parted \- a partition manipulation program
.B parted
[options] [device [command [options...]...]]
.B parted
is a disk partitioning and partition resizing program. It allows you to
create, destroy, resize, move and copy ext2, ext3, linux-swap, FAT, FAT32, and reiserfs
partitions. It can create, resize, and move Macintosh HFS partitions, as well as detect jfs,
ntfs, ufs, and xfs partitions. It is useful for creating space for new operating systems,
reorganising disk usage, and copying data to new hard disks.
This manual page documents \fBparted\fP briefly. Complete documentation is
distributed with the package in GNU Info format; see near the bottom.
.B -h, --help
displays a help message
.B -i, --interactive
prompts for user intervention
.B -l, --list
lists partition layout on all block devices
.B -m, --machine
displays machine parseable output
.B -s, --script
never prompts for user intervention
.B -v, --version
displays the version
.B [device]
The block device to be used. When none is given, \fBparted\fP will use the
first block device it finds.
.B [command [options]]
Specifies the command to be executed. If no command is given,
.BR parted
will present a command prompt. Possible commands are:
.B check \fIpartition\fP
Do a simple check on \fIpartition\fP.
.B cp \fI[source-device]\fP \fIsource\fP \fIdest\fP
Copy the \fIsource\fP partition's filesystem on \fIsource-device\fP (or the
current device if no other device was specified) to the \fIdest\fP partition
on the current device.
.B help \fI[command]\fP
Print general help, or help on \fIcommand\fP if specified.
.B mkfs \fIpartition\fP \fIfs-type\fP
Make a filesystem \fIfs-type\fP on \fIpartition\fP. \fIfs-type\fP can be one
of "fat16", "fat32", "ext2", "linux-swap", or "reiserfs".
.B mklabel \fIlabel-type\fP
Create a new disklabel (partition table) of \fIlabel-type\fP.
\fIlabel-type\fP should be one of "bsd", "dvh", "gpt", "loop", "mac", "msdos",
"pc98", or "sun".
.B mkpart \fIpart-type\fP \fI[fs-type]\fP \fIstart\fP \fIend\fP
Make a \fIpart-type\fP partition with filesystem \fIfs-type\fP (if specified),
beginning at \fIstart\fP and ending at \fIend\fP (by default in megabytes).
\fIfs-type\fP can be one of
"fat16", "fat32", "ext2", "HFS", "linux-swap", "NTFS", "reiserfs", or "ufs".
\fIpart-type\fP should be one of "primary", "logical", or "extended".
.B mkpartfs \fIpart-type\fP \fIfs-type\fP \fIstart\fP \fIend\fP
Make a \fIpart-type\fP partition with filesystem \fIfs-type\fP beginning at
\fIstart\fP and ending at \fIend\fP (by default in megabytes).
.B move \fIpartition\fP \fIstart\fP \fIend\fP
Move \fIpartition\fP so that it begins at \fIstart\fP and ends at \fIend\fP.
Note: \fBmove\fP never changes the minor number.
.B name \fIpartition\fP \fIname\fP
Set the name of \fIpartition\fP to \fIname\fP. This option works only on Mac,
PC98, and GPT disklabels. The name can be placed in quotes, if necessary.
.B print
Display the partition table.
.B quit
Exit from \fBparted\fP.
.B rescue \fIstart\fP \fIend\fP
Rescue a lost partition that was located somewhere between \fIstart\fP and
\fIend\fP. If a partition is found, \fBparted\fP will ask if you want to
create an entry for it in the partition table.
.B resize \fIpartition\fP \fIstart\fP \fIend\fP
Resize the filesystem on \fIpartition\fP so that it begins at \fIstart\fP and
ends at \fIend\fP (by default in megabytes).
.B rm \fIpartition\fP
Delete \fIpartition\fP.
.B select \fIdevice\fP
Choose \fIdevice\fP as the current device to edit. \fIdevice\fP should usually
be a Linux hard disk device, but it can be a partition, software raid device,
or an LVM logical volume if necessary.
.B set \fIpartition\fP \fIflag\fP \fIstate\fP
Change the state of the \fIflag\fP on \fIpartition\fP to \fIstate\fP.
Supported flags are: "boot", "root", "swap", "hidden", "raid", "lvm", "lba",
and "palo".
\fIstate\fP should be either "on" or "off".
.B unit \fIunit\fP
Set \fIunit\fP as the unit to use when displaying locations and sizes,
and for interpreting those given by the user when not suffixed with an
explicit unit. \fIunit\fP can be one of "s" (sectors), "B" (bytes), "kB",
"MB", "GB", "TB", "%" (percentage of device size), "cyl" (cylinders),
"chs" (cylinders, heads, sectors), or "compact" (megabytes for input,
and a human-friendly form for output).
.B version
Display version information and a copyright message.
Report bugs to <>
.BR fdisk (8),
.BR mkfs (8),
The \fIparted\fP program is fully documented in the
.BR info(1)
.IR "GNU partitioning software"
This manual page was written by Timshel Knoll <>,
for the Debian GNU/Linux system (but may be used by others).