summaryrefslogtreecommitdiffstats
path: root/misc-utils/wipefs.8
diff options
context:
space:
mode:
authorKarel Zak2011-11-15 15:19:28 +0100
committerKarel Zak2011-11-15 15:19:28 +0100
commitf126cd4694908db5e01d66f2c206d42312bb64c2 (patch)
tree7ab880fc368fffe3eb37d956d2c113f23f209690 /misc-utils/wipefs.8
parentlib,match: split match_fstype() from libmount (diff)
downloadkernel-qcow2-util-linux-f126cd4694908db5e01d66f2c206d42312bb64c2.tar.gz
kernel-qcow2-util-linux-f126cd4694908db5e01d66f2c206d42312bb64c2.tar.xz
kernel-qcow2-util-linux-f126cd4694908db5e01d66f2c206d42312bb64c2.zip
wipefs: add -t <list> option
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'misc-utils/wipefs.8')
-rw-r--r--misc-utils/wipefs.832
1 files changed, 26 insertions, 6 deletions
diff --git a/misc-utils/wipefs.8 b/misc-utils/wipefs.8
index 1f3d99650..c31cace45 100644
--- a/misc-utils/wipefs.8
+++ b/misc-utils/wipefs.8
@@ -4,25 +4,40 @@
.\"
.TH WIPEFS 8 "October 2009" "util-linux" "System Administration"
.SH NAME
-wipefs \- wipe a filesystem signature from a device
+wipefs \- wipe a signature from a device
.SH SYNOPSIS
.B wipefs
-.RB [ \-ahnpV ]
+.RB [ \-ahnptV ]
.RB [ \-o
.IR offset ]
.I device
.SH DESCRIPTION
.B wipefs
-can erase filesystem or raid signatures (magic strings) from the specified
+can erase filesystem, raid or partition table signatures (magic strings) from
+the specified
.I device
-to make the filesystem invisible for libblkid.
+to make the signature invisible for libblkid.
+
.B wipefs
does not erase the filesystem itself nor any other data from the device.
When used without options \fB-a\fR or \fB-o\fR, it lists all visible filesystems
-and the offsets of their signatures.
+and the offsets of their basic signatures.
+
+Note that some filesystems or some partition tables store more magic strings on
+the devices. The
+.B wipefs
+lists the first offset where a magic string has been detected. The device is
+not scanned for additional magic strings for the same filesystem. It's possible
+that after \fBwipefs -o <offset>\fR will be the same filesystem or partition
+table visible by another magic string on another offset.
+
+When used with option \fB-a\fR then all for libblkid visible magic strings are
+erased.
+
.SH OPTIONS
.IP "\fB\-a, \-\-all\fP"
-Erase all available signatures.
+Erase all available signatures. This set of erased signatures could be
+restricted by \fB\-t <list>\fP option.
.IP "\fB\-h, \-\-help\fP"
Print help and exit.
.IP "\fB\-n, \-\-no\-act\fP"
@@ -38,6 +53,11 @@ GiB, TiB, PiB and EiB (the "iB" is optional, e.g. "K" has the same meaning as
.IP "\fB\-p, \-\-parsable\fP"
Print out in parsable instead of printable format. Encode all potentially unsafe
characters of a string to the corresponding hex value prefixed by '\\x'.
+.IP "\fB\-t, \-\-types\fP \fIlist\fP
+Used to limit the set of printed or erased signatures. More than one type may
+be specified in a comma-separated list. The list of types or individual types
+can be prefixed with 'no' to specify the types on which no action should be
+taken. For more details see mount(8).
.IP "\fB\-V, \-\-version\fP"
Output version information and exit.
.SH AUTHOR