Debian Codegraph @

upstream/opensuse-leap-16-1/man8/parted.8

raw
1 .TH PARTED 8 "2021 September 28" parted "GNU Parted Manual"
2 .SH NAME
3 parted \- a partition manipulation program
4 .SH SYNOPSIS
5 .B parted
6 [options] [device [command [options...]...]]
7 .SH DESCRIPTION
8 .B parted
9 is a program to manipulate disk partitions. It supports multiple partition
10 table formats, including MS-DOS and GPT. It is useful for creating space for
11 new operating systems, reorganising disk usage, and copying data to new hard
12 disks.
13 .PP
14 This manual page documents \fBparted\fP briefly. Complete documentation is
15 distributed with the package in GNU Info format.
16 .SH OPTIONS
17 .TP
18 .B -h, --help
19 displays a help message
20 .TP
21 .B -l, --list
22 lists partition layout on all block devices
23 .TP
24 .B -m, --machine
25 displays machine parseable output
26 .TP
27 .B -j, --json
28 displays JSON output
29 .TP
30 .B -s, --script
31 never prompts for user intervention
32 .TP
33 .B -f, --fix
34 automatically answer "fix" to exceptions in script mode
35 .TP
36 .B -v, --version
37 displays the version
38 .TP
39 .B --ignore-busy
40 perform the requested action in script mode although a partition is busy
41 .TP
42 .B --wipesignatures
43 mkpart wipes the superblock signatures from the disk region where it is
44 about to create the partition
45 .TP
46 .B -a \fIalignment-type\fP, --align \fIalignment-type\fP
47 Set alignment for newly created partitions, valid alignment types are:
48 .RS
49 .IP none
50 Use the minimum alignment allowed by the disk type.
51 .IP cylinder
52 Align partitions to cylinders.
53 .IP minimal
54 Use minimum alignment as given by the disk topology information. This and
55 the opt value will use layout information provided by the disk to align the
56 logical partition table addresses to actual physical blocks on the disks.
57 The min value is the minimum alignment needed to align the partition properly to
58 physical blocks, which avoids performance degradation.
59 .IP optimal
60 Use optimum alignment as given by the disk topology information. This
61 aligns to a multiple of the physical block size in a way that guarantees
62 optimal performance.
63 .RE
64
65 .SH COMMANDS
66 .TP
67 .B [device]
68 The block device to be used. When none is given, \fBparted\fP will use the
69 first block device it finds.
70 .TP
71 .B [command [options]]
72 Specifies the command to be executed. If no command is given,
73 .BR parted
74 will present a command prompt. Possible commands are:
75 .RS
76 .TP
77 .B help \fI[command]\fP
78 Print general help, or help on \fIcommand\fP if specified.
79 .TP
80 .B align-check \fItype\fP \fIpartition\fP
81 Check if \fIpartition\fP satisfies the alignment constraint of \fItype\fP.
82 \fItype\fP must be "minimal" or "optimal".
83 .TP
84 .B mklabel \fIlabel-type\fP
85 Create a new disklabel (partition table) of \fIlabel-type\fP. \fIlabel-type\fP
86 should be one of "aix", "amiga", "bsd", "dvh", "gpt", "loop", "mac", "msdos",
87 "pc98", or "sun".
88 .TP
89 .B mkpart [\fIpart-type\fP \fIname\fP \fIfs-type\fP] \fIstart\fP \fIend\fP
90 Create a new partition. \fIpart-type\fP may be specified only with msdos and
91 dvh partition tables, it should be one of "primary", "logical", or "extended".
92 \fIname\fP is required for GPT partition tables and \fIfs-type\fP is optional.
93 \fIfs-type\fP can be one of "btrfs", "ext2", "ext3", "ext4", "fat16", "fat32",
94 "hfs", "hfs+", "linux-swap", "ntfs", "reiserfs", "udf", or "xfs".
95 .TP
96 .B name \fIpartition\fP \fIname\fP
97 Set the name of \fIpartition\fP to \fIname\fP. This option works only on Mac,
98 PC98, and GPT disklabels. The name can be placed in double quotes, if necessary.
99 And depending on the shell may need to also be wrapped in single quotes so that
100 the shell doesn't strip off the double quotes.
101 .TP
102 .B print \fIprint-type\fP
103 Display the partition table.
104 \fIprint-type\fP is optional, and can be one of devices, free, list, or all.
105 .TP
106 .B quit
107 Exit from \fBparted\fP.
108 .TP
109 .B rescue \fIstart\fP \fIend\fP
110 Rescue a lost partition that was located somewhere between \fIstart\fP and
111 \fIend\fP. If a partition is found, \fBparted\fP will ask if you want to
112 create an entry for it in the partition table.
113 .TP
114 .B resizepart \fIpartition\fP \fIend\fP
115 Change the \fIend\fP position of \fIpartition\fP. Note that this does not
116 modify any filesystem present in the partition.
117 .TP
118 .B rm \fIpartition\fP
119 Delete \fIpartition\fP.
120 .TP
121 .B select \fIdevice\fP
122 Choose \fIdevice\fP as the current device to edit. \fIdevice\fP should usually
123 be a Linux hard disk device, but it can be a partition, software raid device,
124 or an LVM logical volume if necessary.
125 .TP
126 .B set \fIpartition\fP \fIflag\fP \fIstate\fP
127 Change the state of the \fIflag\fP on \fIpartition\fP to \fIstate\fP.
128 Supported flags are: "boot", "root", "swap", "hidden", "raid", "lvm", "lba",
129 "legacy_boot", "irst", "msftres", "esp", "chromeos_kernel", "bls_boot", "linux-home",
130 "no_automount", "bios_grub", and "palo".
131 \fIstate\fP should be either "on" or "off".
132 .TP
133 .B unit \fIunit\fP
134 Set \fIunit\fP as the unit to use when displaying locations and sizes, and for
135 interpreting those given by the user when not suffixed with an explicit unit.
136 \fIunit\fP can be one of "s" (sectors), "B" (bytes), "kB", "MB", "KiB", "MiB", "GB",
137 "GiB", "TB", "TiB", "%" (percentage of device size), "cyl" (cylinders), "chs"
138 (cylinders, heads, sectors), or "compact" (megabytes for input, and a
139 human-friendly form for output).
140 .TP
141 .B toggle \fIpartition\fP \fIflag\fP
142 Toggle the state of \fIflag\fP on \fIpartition\fP.
143 .TP
144 .B type \fIpartition\fP \fIid\fP or \fIuuid\fP
145 On MS-DOS set the type aka. partition id of \fIpartition\fP to
146 \fIid\fP. The \fIid\fP is a value between "0x01" and "0xff". On GPT
147 the type-uuid of \fIpartition\fP to \fIuuid\fP.
148 .TP
149 .B disk_set \fIflag\fP \fIstate\fP
150 Change a \fIflag\fP on the disk to \fIstate\fP. A flag can be either "on" or "off".
151 Some or all of these flags will be available, depending on what disk label you
152 are using. Supported flags are: "pmbr_boot" on GPT to enable the boot flag on the
153 GPT's protective MBR partition.
154 .TP
155 .B disk_toggle \fIflag\fP
156 Toggle the state of the disk \fIflag\fP.
157 .TP
158 .B version
159 Display version information and a copyright message.
160 .RE
161 .SH REPORTING BUGS
162 Report bugs to <[email protected]>
163 .SH SEE ALSO
164 .BR fdisk (8),
165 .BR mkfs (8),
166 The \fIparted\fP program is fully documented in the
167 .BR info(1)
168 format
169 .IR "GNU partitioning software"
170 manual.
171 .SH AUTHOR
172 This manual page was written by Timshel Knoll <[email protected]>,
173 for the Debian GNU/Linux system (but may be used by others).