1PARTED(8) GNU Parted Manual PARTED(8)
2
3
4
6 parted - a partition manipulation program
7
9 parted [options] [device [command [options...]...]]
10
12 parted is a program to manipulate disk partitions. It supports multi‐
13 ple partition table formats, including MS-DOS and GPT. It is useful
14 for creating space for new operating systems, reorganising disk usage,
15 and copying data to new hard disks.
16
17 This manual page documents parted briefly. Complete documentation is
18 distributed with the package in GNU Info format.
19
21 -h, --help
22 displays a help message
23
24 -l, --list
25 lists partition layout on all block devices
26
27 -m, --machine
28 displays machine parseable output
29
30 -s, --script
31 never prompts for user intervention
32
33 -v, --version
34 displays the version
35
36 -a alignment-type, --align alignment-type
37 Set alignment for newly created partitions, valid alignment
38 types are:
39
40 none Use the minimum alignment allowed by the disk type.
41
42 cylinder
43 Align partitions to cylinders.
44
45 minimal
46 Use minimum alignment as given by the disk topology
47 information. This and the opt value will use layout
48 information provided by the disk to align the logical
49 partition table addresses to actual physical blocks on
50 the disks. The min value is the minimum alignment needed
51 to align the partition properly to physical blocks, which
52 avoids performance degradation.
53
54 optimal
55 Use optimum alignment as given by the disk topology
56 information. This aligns to a multiple of the physical
57 block size in a way that guarantees optimal performance.
58
59
61 [device]
62 The block device to be used. When none is given, parted will
63 use the first block device it finds.
64
65 [command [options]]
66 Specifies the command to be executed. If no command is given,
67 parted will present a command prompt. Possible commands are:
68
69 help [command]
70 Print general help, or help on command if specified.
71
72 align-check type partition
73 Check if partition satisfies the alignment constraint of
74 type. type must be "minimal" or "optimal".
75
76 mklabel label-type
77 Create a new disklabel (partition table) of label-type.
78 label-type should be one of "aix", "amiga", "bsd", "dvh",
79 "gpt", "loop", "mac", "msdos", "pc98", or "sun".
80
81 mkpart part-type [fs-type] start end
82 Make a part-type partition for filesystem fs-type (if
83 specified), beginning at start and ending at end (by
84 default in megabytes). fs-type can be one of "btrfs",
85 "ext2", "ext3", "ext4", "fat16", "fat32", "hfs", "hfs+",
86 "linux-swap", "ntfs", "reiserfs", or "xfs". part-type
87 should be one of "primary", "logical", or "extended".
88
89 name partition name
90 Set the name of partition to name. This option works only
91 on Mac, PC98, and GPT disklabels. The name can be placed
92 in quotes, if necessary.
93
94 print Display the partition table.
95
96 quit Exit from parted.
97
98 rescue start end
99 Rescue a lost partition that was located somewhere
100 between start and end. If a partition is found, parted
101 will ask if you want to create an entry for it in the
102 partition table.
103
104 resizepart partition end
105 Change the end position of partition. Note that this
106 does not modify any filesystem present in the partition.
107
108 rm partition
109 Delete partition.
110
111 select device
112 Choose device as the current device to edit. device
113 should usually be a Linux hard disk device, but it can be
114 a partition, software raid device, or an LVM logical vol‐
115 ume if necessary.
116
117 set partition flag state
118 Change the state of the flag on partition to state. Sup‐
119 ported flags are: "boot", "root", "swap", "hidden",
120 "raid", "lvm", "lba", "legacy_boot" and "palo". state
121 should be either "on" or "off".
122
123 unit unit
124 Set unit as the unit to use when displaying locations and
125 sizes, and for interpreting those given by the user when
126 not suffixed with an explicit unit. unit can be one of
127 "s" (sectors), "B" (bytes), "kB", "MB", "MiB", "GB",
128 "GiB", "TB", "TiB", "%" (percentage of device size),
129 "cyl" (cylinders), "chs" (cylinders, heads, sectors), or
130 "compact" (megabytes for input, and a human-friendly form
131 for output).
132
133 toggle partition flag
134 Toggle the state of flag on partition.
135
136 version
137 Display version information and a copyright message.
138
140 Report bugs to <bug-parted@gnu.org>
141
143 fdisk(8), mkfs(8), The parted program is fully documented in the
144 info(1) format GNU partitioning software manual.
145
147 This manual page was written by Timshel Knoll <timshel@debian.org>, for
148 the Debian GNU/Linux system (but may be used by others).
149
150
151
152parted 2007 March 29 PARTED(8)