1parted(1M)              System Administration Commands              parted(1M)
2
3
4

NAME

6       parted - partition manipulation program
7

SYNOPSIS

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

DESCRIPTION

13       parted  is  a  disk  partitioning  and  partition resizing  program. It
14       allows you to create, destroy,  resize,  move,  and  copy  ext2,  ext3,
15       linux-swap,  FAT,  FAT32,  and  reiserfs   partitions.  It  can create,
16       resize, and move Macintosh HFS  partitions,  as  well  as  detect  jfs,
17       ntfs,  ufs, and xfs partitions. It is useful for creating space for new
18       operating systems, reorganizing disk usage, and  copying  data  to  new
19       hard disks.
20
21
22       This  manual page documents parted briefly. Complete  parted documenta‐
23       tion is distributed with the package in "GNU Info"  format.
24
25
26       parted is implemented with a set of top-level options and a set of sub‐
27       commands, most of which have their own options and operands. These sub‐
28       commands are described below. parted has an optional operand:
29
30       device    The block device to be used. When none is given, parted  uses
31                 the first block device it finds.
32
33

OPTIONS

35       The following options are supported:
36
37       -h, --help
38
39           Displays a help message.
40
41
42       -i, --interactive
43
44           Prompts for user intervention.
45
46
47       -l, --list
48
49           Lists partition layout on all block devices.
50
51
52       -m, --machine
53
54           Displays machine-parseable output.
55
56
57       -s, --script
58
59           Never prompts for user intervention.
60
61
62       -v, --version
63
64           Displays the version number.
65
66

SUB-COMMANDS

68       If you omit a subcommand in a parted command line, the utility issues a
69       command prompt.
70
71       check partition
72
73           Do a simple check on partition.
74
75
76       cp [source-device] source dest
77
78           Copy the source partition's filesystem  on  source-device  (or  the
79           current device if no other device was specified) to the dest parti‐
80           tion on the current device.
81
82
83       help command
84
85           Display general help, or help on a command, if specified.
86
87
88       mkfs partition fs-type
89
90           Make a filesystem fs-type on  partition.  fs-type  can  be  one  of
91           fat16, fat32, ext2, linux-wap, or reiserfs.
92
93
94       mklabel label-type
95
96           Create a new disk label (partition table) of label-type. label-type
97           should be one of bsd, dvh, gpt, loop, mac, msdos, pc98, or sun.
98
99
100       mkpart part-type [fs-type] start end
101
102           Make a part-type partition with file system fs-type (if specified),
103           beginning  at  start  and ending at end (by default, in megabytes).
104           fs-type can be one of fat16, fat32, ext2,  HFS,  linux-swap,  NTFS,
105           reiserfs,  or  ufs. part-type should be one of primary, logical, or
106           extended.
107
108
109       mkpartfs part-type fs-type start end
110
111           Make a part-type partition with file system fs-type,  beginning  at
112           start and ending at end (by default, in megabytes).
113
114
115       move partition start end
116
117           Move  partition  so  that  it begins at start and ends at end. Note
118           that move never changes the minor number.
119
120
121       name partition name
122
123           Set the name of partition to name. This option works only  on  Mac,
124           PC98,  and  GPT  disk  labels. The name can be placed in quotes, if
125           necessary.
126
127
128       print
129
130           Display the partition table.
131
132
133       quit
134
135           Exit from parted.
136
137
138       rescue start end
139
140           Rescue a lost partition that was located  somewhere  between  start
141           and  end.  If  a partition is found, parted will ask if you want to
142           create an entry for it in the partition table.
143
144
145       resize partition start end
146
147           Resize the file system on partition so that it begins at start  and
148           ends at end (by default, in megabytes).
149
150
151       rm partition
152
153           Delete partition.
154
155
156       select device
157
158           Choose device as the current device to edit.  device should usually
159           be a Solaris or Linux hard disk device, but it can be a  partition,
160           software raid device, or an SVM or LVM logical volume if necessary.
161
162
163       set partition flag state
164
165           Change the state of the flag on partition to state. Supported flags
166           are: boot, root, swap, hidden, raid,  lvm,  lba,  and  palo.  state
167           should be either on or off.
168
169
170       unit unit
171
172           Set  unit  as  the unit to use when displaying locations and sizes,
173           and for interpreting those given by the user when not suffixed with
174           an  explicit  unit.  unit can be one of s (sectors), B (bytes), kB,
175           MB, GB, TB, % (percentage of device  size),  cyl  (cylinders),  chs
176           (cylinders, heads, sectors), or compact (megabytes for input, and a
177           human-friendly form for output).
178
179
180       version
181
182           Display version information and a copyright message.
183
184

ATTRIBUTES

186       See attributes(5) for descriptions of the following attributes:
187
188
189
190
191       ┌─────────────────────────────┬─────────────────────────────┐
192       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
193       ├─────────────────────────────┼─────────────────────────────┤
194       │Availability                 │SUNWparted                   │
195       ├─────────────────────────────┼─────────────────────────────┤
196       │Interface Stability          │Uncommitted                  │
197       └─────────────────────────────┴─────────────────────────────┘
198

SEE ALSO

200       fdisk(1M), mkfs(1M), attributes(5)
201
202
203       The parted program is fully documented in the info(1) format GNU parti‐
204       tioning software manual.
205

AUTHOR

207       This  manual page was written by Timshel Knoll for the Debian GNU/Linux
208       system. It is here adapted for the Solaris operating system.
209
210
211
212SunOS 5.11                        27 May 2009                       parted(1M)
Impressum