1PARTED(8)                      GNU Parted Manual                     PARTED(8)
2
3
4

NAME

6       GNU Parted - a partition manipulation program
7

SYNOPSIS

9       parted [options] [device [command [options...]...]]
10

DESCRIPTION

12       This  manual page documents briefly the parted command.  Complete docu‐
13       mentation is distributed with the  package  in  GNU  Info  format;  see
14       below.
15
16       parted  is  a  disk  partitioning  and  partition resizing program.  It
17       allows you to create, destroy, resize, move and copy ext2, ext3, linux-
18       swap,  FAT,  FAT32, and reiserfs partitions.  It can create, resize and
19       move Macintosh HFS partitions, as well as detect jfs,  ntfs,  ufs,  and
20       xfs partitions.  It is useful for creating space for new operating sys‐
21       tems, reorganising disk usage, and copying data to new hard disks.
22

OPTIONS

24       -h, --help
25              displays a help message
26
27       -i, --interactive
28              prompts for user intervention
29
30       -l, --list
31              lists partition layout on all block devices
32
33       -m, --machine
34              displays machine parseable output
35
36       -s, --script
37              never prompts for user intervention
38
39       -v, --version
40              displays the version
41

COMMANDS

43       [device]
44              The block device to partition.
45
46       [command [options]]
47              Specifies a command to parted. If no command  is  given,  parted
48              will give you a command prompt. Commands are:
49
50              check partition
51                     does a simple check on partition.
52
53              cp [source-device] source dest
54                     copies the source partition's filesystem on source-device
55                     (or the current device if no other device was  specified)
56                     to the dest partition on the current device.
57
58              help [command]
59                     prints general help, or help on command if specified.
60
61              mkfs partition fs-type
62                     make  a  filesystem  fs-type on partition. fs-type can be
63                     one of "fat16", "fat32", "ext2", "linux-swap"  or  "reis‐
64                     erfs".
65
66              mklabel label-type
67                     Creates  a new disklabel (partition table) of label-type.
68                     label-type should be one of "bsd", "dvh", "gpt",  "loop",
69                     "mac", "msdos", "pc98" or "sun".
70
71              mkpart part-type [fs-type] start end
72                     make  a  part-type  partition with filesystem fs-type (if
73                     specified), beginning at start  and  ending  at  end  (in
74                     megabytes).   fs-type  can  be  one  of "fat16", "fat32",
75                     "ext2", "HFS", "linux-swap", "NTFS", "reiserfs" or "ufs".
76                     part-type  should  be  one  of  "primary",  "logical"  or
77                     "extended"
78
79              mkpartfs part-type fs-type start end
80                     make a part-type partition with filesystem fs-type begin‐
81                     ning at start and ending at end (in megabytes)
82
83              move partition start end
84                     move  partition  to  start at start and end at end. Note:
85                     move never changes the minor number
86
87              name partition name
88                     set the name of partition to name. This option works only
89                     on  Mac, PC98, and GPT disklabels. The name can be placed
90                     in quotes, if necessary
91
92              print  displays the partition table
93
94              quit   exits parted
95
96              resize partition start end
97                     resize the filesystem on partition to start at start  and
98                     end at end megabytes
99
100              rm partition
101                     deletes partition
102
103              select device
104                     choose  device  as  the  current  device  to edit. device
105                     should usually be a Linux hard disk device, but it can be
106                     a partition, software raid device or a LVM logical volume
107                     if that is necessary
108
109              set partition flag state
110                     change the state of the flag on partition to state. Flags
111                     supported  are: "boot", "root", "swap", "hidden", "raid",
112                     "lvm", "lba" and "palo".  state should be either "on"  or
113                     "off"
114

REPORTING BUGS

116       Report bugs to <bug-parted@gnu.org>
117

SEE ALSO

119       fdisk(8),  mkfs(8),  The  parted  program  is  fully  documented in the
120       info(1) format GNU partitioning software manual.
121

AUTHOR

123       This manual page was written by Timshel Knoll <timshel@debian.org>, for
124       the Debian GNU/Linux system (but may be used by others).
125
126
127
128parted                           18 Mar, 2002                        PARTED(8)
Impressum