]> git.ipfire.org Git - thirdparty/util-linux.git/blame - misc-utils/wipefs.8
tools: improve ko-release-* scripts
[thirdparty/util-linux.git] / misc-utils / wipefs.8
CommitLineData
c49057d2
KZ
1.\" -*- nroff -*-
2.\" Copyright 2009 by Karel Zak. All Rights Reserved.
3.\" This file may be copied under the terms of the GNU Public License.
4.\"
232dc924 5.TH WIPEFS 8 "October 2009" "util-linux" "System Administration"
c49057d2 6.SH NAME
f126cd46 7wipefs \- wipe a signature from a device
c49057d2
KZ
8.SH SYNOPSIS
9.B wipefs
f126cd46 10.RB [ \-ahnptV ]
c49057d2
KZ
11.RB [ \-o
12.IR offset ]
c10695f8 13.I device...
c49057d2
KZ
14.SH DESCRIPTION
15.B wipefs
f126cd46
KZ
16can erase filesystem, raid or partition table signatures (magic strings) from
17the specified
c49057d2 18.I device
f126cd46
KZ
19to make the signature invisible for libblkid.
20
c49057d2 21.B wipefs
0791a058
BS
22does not erase the filesystem itself nor any other data from the device.
23When used without options \fB-a\fR or \fB-o\fR, it lists all visible filesystems
f126cd46
KZ
24and the offsets of their basic signatures.
25
26Note that some filesystems or some partition tables store more magic strings on
27the devices. The
28.B wipefs
29lists the first offset where a magic string has been detected. The device is
30not scanned for additional magic strings for the same filesystem. It's possible
31that after \fBwipefs -o <offset>\fR will be the same filesystem or partition
32table visible by another magic string on another offset.
33
34When used with option \fB-a\fR then all for libblkid visible magic strings are
35erased.
36
c49057d2
KZ
37.SH OPTIONS
38.IP "\fB\-a, \-\-all\fP"
f126cd46
KZ
39Erase all available signatures. This set of erased signatures could be
40restricted by \fB\-t <list>\fP option.
c49057d2
KZ
41.IP "\fB\-h, \-\-help\fP"
42Print help and exit.
43.IP "\fB\-n, \-\-no\-act\fP"
44Causes everything to be done except for the write() call.
45.IP "\fB\-o, \-\-offset\fP \fIoffset\fP
0791a058
BS
46Specify the location (in bytes) of the signature which should be erased from the
47device. The \fIoffset\fR number may include a "0x" prefix; then the number will be
48interpreted as a hex value. It is possible to specify multiple \fB-o\fR options.
69cc2ec0
KZ
49
50The \fIoffset\fR argument may be followed by binary (2^N) suffixes KiB, MiB,
51GiB, TiB, PiB and EiB (the "iB" is optional, e.g. "K" has the same meaning as
52"KiB") or decimal (10^N) suffixes KB, MB, GB, PB and EB.
c49057d2 53.IP "\fB\-p, \-\-parsable\fP"
11295cd1 54Print out in parsable instead of printable format. Encode all potentially unsafe
c49057d2 55characters of a string to the corresponding hex value prefixed by '\\x'.
0fd93af6
MB
56.IP "\fB\-q, \-\-quiet\fP"
57Suppress output messages after successful signature wipe.
f126cd46
KZ
58.IP "\fB\-t, \-\-types\fP \fIlist\fP
59Used to limit the set of printed or erased signatures. More than one type may
60be specified in a comma-separated list. The list of types or individual types
61can be prefixed with 'no' to specify the types on which no action should be
62taken. For more details see mount(8).
11295cd1
BS
63.IP "\fB\-V, \-\-version\fP"
64Output version information and exit.
c49057d2
KZ
65.SH AUTHOR
66Karel Zak <kzak@redhat.com>.
67.SH AVAILABILITY
601d12fb
KZ
68The wipefs command is part of the util-linux package and is available from
69ftp://ftp.kernel.org/pub/linux/utils/util-linux/.
c49057d2
KZ
70.SH SEE ALSO
71.BR blkid (8)
72.BR findfs (8)
73