From 2f2d6528e3af6d9722e44727064a7a86b42b9168 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Fri, 9 Feb 2007 19:15:23 +0100 Subject: partx: add man pages for addpart, delpart and partx Signed-off-by: Karel Zak --- partx/Makefile.am | 2 ++ partx/addpart.8 | 36 ++++++++++++++++++++++++++++++++++++ partx/delpart.8 | 30 ++++++++++++++++++++++++++++++ partx/partx.8 | 45 +++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 113 insertions(+) create mode 100644 partx/addpart.8 create mode 100644 partx/delpart.8 create mode 100644 partx/partx.8 (limited to 'partx') diff --git a/partx/Makefile.am b/partx/Makefile.am index e2fb5793..461392a4 100644 --- a/partx/Makefile.am +++ b/partx/Makefile.am @@ -6,4 +6,6 @@ usrsbinexec_PROGRAMS = addpart delpart partx partx_SOURCES = bsd.c dos.c partx.c solaris.c unixware.c gpt.c crc32.c \ efi.h gpt.h crc32.h partx.h dos.h +man_MANS = addpart.8 delpart.8 partx.8 + endif diff --git a/partx/addpart.8 b/partx/addpart.8 new file mode 100644 index 00000000..a53e3e66 --- /dev/null +++ b/partx/addpart.8 @@ -0,0 +1,36 @@ +.\" addpart.8 -- +.\" Copyright 2007 Karel Zak +.\" Copyright 2007 Red Hat, Inc. +.\" May be distributed under the GNU General Public License +.TH ADDPART 8 "11 Jan 2007" +.SH NAME +addpart \- +simple wrapper around the "add partition" ioctl +.SH SYNOPSIS +.B addpart device partition start length +.SH DESCRIPTION +.B addpart +is a program that informs the Linux kernel of new partition. + +This command doesn't manipulate with partitions on hard drive. + +.SH PARAMETERS +.TP +.BI device +Specify the disk device. +.TP +.BI partition +Specify the partition number. +.TP +.BI start +Specify the begin of the partition (in bytes). +.TP +.BI length +Specify the length of the partition (in bytes). + +.SH SEE ALSO +.BR delpart (8), +.BR fdisk (8), +.BR parted (8), +.BR partprobe (8), +.BR partx (8) diff --git a/partx/delpart.8 b/partx/delpart.8 new file mode 100644 index 00000000..9bc4d0b7 --- /dev/null +++ b/partx/delpart.8 @@ -0,0 +1,30 @@ +.\" delpart.8 -- +.\" Copyright 2007 Karel Zak +.\" Copyright 2007 Red Hat, Inc. +.\" May be distributed under the GNU General Public License +.TH DELPART 8 "11 Jan 2007" +.SH NAME +delpart \- +simple wrapper around the "del partition" ioctl +.SH SYNOPSIS +.B delpart device partition +.SH DESCRIPTION +.B delpart +is a program that asks the Linux kernel to remove a partition. + +This command doesn't manipulate with partitions on hard drive. + +.SH OPTIONS +.TP +.BI device +Specify the disk device. +.TP +.BI partition +Specify the partition number. + +.SH SEE ALSO +.BR addpart (8), +.BR fdisk (8), +.BR parted (8), +.BR partprobe (8), +.BR partx (8) diff --git a/partx/partx.8 b/partx/partx.8 new file mode 100644 index 00000000..6f48dc99 --- /dev/null +++ b/partx/partx.8 @@ -0,0 +1,45 @@ +.\" partx.8 -- +.\" Copyright 2007 Karel Zak +.\" Copyright 2007 Red Hat, Inc. +.\" May be distributed under the GNU General Public License +.TH PARTX 8 "11 Jan 2007" +.SH NAME +partx \- +telling the kernel about presence and numbering of on-disk partitions. +.SH SYNOPSIS +.B partx [-a|-d|-l] [--type TYPE] [--nr M-N] [partition] disk +.SH DESCRIPTION +Given a block device ( +.B disk +) and a partition table +.B type +, try to parse the partition table, and list the +contents. Optionally add or remove partitions. + +This is not an fdisk - adding and removing partitions +is not a change of the disk, but just telling the kernel +about presence and numbering of on-disk partitions. + +.SH OPTIONS +.TP +.B \-a +add specified partitions or read disk and add all partitions +.TP +.B \-d +delete specified or all partitions +.TP +.B \-l +list partitions +.TP +.BI --type " TYPE" +Specify the partition type -- dos, bsd, solaris, unixware or gpt. +.TP +.BI --nr " M-N" +Specify the range of partitions (e.g --nr 2-4). + +.SH SEE ALSO +.BR addpart (8), +.BR delpart (8), +.BR fdisk (8), +.BR parted (8), +.BR partprobe (8) -- cgit v1.2.3