]>
Commit | Line | Data |
---|---|---|
2f2d6528 KZ |
1 | .\" partx.8 -- |
2 | .\" Copyright 2007 Karel Zak <kzak@redhat.com> | |
3 | .\" Copyright 2007 Red Hat, Inc. | |
4 | .\" May be distributed under the GNU General Public License | |
5 | .TH PARTX 8 "11 Jan 2007" | |
6 | .SH NAME | |
7 | partx \- | |
8 | telling the kernel about presence and numbering of on-disk partitions. | |
9 | .SH SYNOPSIS | |
5b620ebd PB |
10 | .B partx |
11 | .RB [ \-a | \-d | \-l ] | |
12 | .RB [ \-\-type | |
13 | .IR TYPE ] | |
14 | .RB [ \-\-nr | |
15 | .IR M-N ] | |
16 | .RI [ partition ] | |
17 | .I disk | |
2f2d6528 KZ |
18 | .SH DESCRIPTION |
19 | Given a block device ( | |
20 | .B disk | |
21 | ) and a partition table | |
22 | .B type | |
23 | , try to parse the partition table, and list the | |
24 | contents. Optionally add or remove partitions. | |
25 | ||
26 | This is not an fdisk - adding and removing partitions | |
27 | is not a change of the disk, but just telling the kernel | |
28 | about presence and numbering of on-disk partitions. | |
29 | ||
30 | .SH OPTIONS | |
31 | .TP | |
32 | .B \-a | |
33 | add specified partitions or read disk and add all partitions | |
34 | .TP | |
35 | .B \-d | |
36 | delete specified or all partitions | |
37 | .TP | |
38 | .B \-l | |
176303e0 | 39 | list partitions. Note that the all numbers are in 512-byte sectors. |
2f2d6528 KZ |
40 | .TP |
41 | .BI --type " TYPE" | |
42 | Specify the partition type -- dos, bsd, solaris, unixware or gpt. | |
43 | .TP | |
44 | .BI --nr " M-N" | |
45 | Specify the range of partitions (e.g --nr 2-4). | |
46 | ||
47 | .SH SEE ALSO | |
48 | .BR addpart (8), | |
49 | .BR delpart (8), | |
50 | .BR fdisk (8), | |
51 | .BR parted (8), | |
52 | .BR partprobe (8) | |
86d62711 KZ |
53 | |
54 | .SH AVAILABILITY | |
601d12fb KZ |
55 | The partx command is part of the util-linux package and is available from |
56 | ftp://ftp.kernel.org/pub/linux/utils/util-linux/. |