summaryrefslogtreecommitdiffstats
path: root/misc-utils/wipefs.8
diff options
context:
space:
mode:
authorKarel Zak2009-10-05 13:14:07 +0200
committerKarel Zak2009-10-06 23:56:23 +0200
commitc49057d261a63235192fadc3d3b782c5c3a2acbf (patch)
tree1b08db9629d91ae260b7a6819ebcd223b92ebb40 /misc-utils/wipefs.8
parenttests: add BFS libblkid regression test (diff)
downloadkernel-qcow2-util-linux-c49057d261a63235192fadc3d3b782c5c3a2acbf.tar.gz
kernel-qcow2-util-linux-c49057d261a63235192fadc3d3b782c5c3a2acbf.tar.xz
kernel-qcow2-util-linux-c49057d261a63235192fadc3d3b782c5c3a2acbf.zip
wipefs: new command
# ./wipefs /dev/sda4 offset type ---------------------------------------------------------------- 0xff6 swap [other] UUID: da6c54ea-77d9-470a-82f1-e793fd5d9131 0x36 vfat [filesystem] UUID: 497F-3013 # ./wipefs --offset 0x36 /dev/sda4 8 bytes [46 41 54 31 32 20 20 20] erased at offset 0x36 (vfat) Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'misc-utils/wipefs.8')
-rw-r--r--misc-utils/wipefs.845
1 files changed, 45 insertions, 0 deletions
diff --git a/misc-utils/wipefs.8 b/misc-utils/wipefs.8
new file mode 100644
index 000000000..3217c101a
--- /dev/null
+++ b/misc-utils/wipefs.8
@@ -0,0 +1,45 @@
+.\" -*- nroff -*-
+.\" Copyright 2009 by Karel Zak. All Rights Reserved.
+.\" This file may be copied under the terms of the GNU Public License.
+.\"
+.TH WIPEFS 8 "October 2009" "Linux" "MAINTENANCE COMMANDS"
+.SH NAME
+wipefs \- wipe a filesystem signature from a device
+.SH SYNOPSIS
+.B wipefs
+.RB [ \-ahnp ]
+.RB [ \-o
+.IR offset ]
+.I device
+.SH DESCRIPTION
+.B wipefs
+allows to erase filesystem or raid signatures (magic strings) from the
+.I device
+to make the device invisible for libblkid.
+.B wipefs
+does not erase the whole filesystem or any other data from the device.
+When used without options -a or -o, it lists all visible filesystems and offsets
+of their signatures.
+.SH OPTIONS
+.IP "\fB\-a, \-\-all\fP"
+Erase all available signatures.
+.IP "\fB\-h, \-\-help\fP"
+Print help and exit.
+.IP "\fB\-n, \-\-no\-act\fP"
+Causes everything to be done except for the write() call.
+.IP "\fB\-o, \-\-offset\fP \fIoffset\fP
+Specifies location (in bytes) of the signature which should be erased from the
+device. The offset number may include a "0x" prefix, and then the number will be
+read as a hex value. It is possible to specify multiple -o options.
+.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'.
+.SH AUTHOR
+Karel Zak <kzak@redhat.com>.
+.SH AVAILABILITY
+The wipefs command is part of the util-linux-ng package and is available from
+ftp://ftp.kernel.org/pub/linux/utils/util-linux-ng/.
+.SH SEE ALSO
+.BR blkid (8)
+.BR findfs (8)
+