]>
Commit | Line | Data |
---|---|---|
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 | 7 | wipefs \- 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 |
16 | can erase filesystem, raid or partition table signatures (magic strings) from |
17 | the specified | |
c49057d2 | 18 | .I device |
f126cd46 KZ |
19 | to make the signature invisible for libblkid. |
20 | ||
c49057d2 | 21 | .B wipefs |
0791a058 BS |
22 | does not erase the filesystem itself nor any other data from the device. |
23 | When used without options \fB-a\fR or \fB-o\fR, it lists all visible filesystems | |
f126cd46 KZ |
24 | and the offsets of their basic signatures. |
25 | ||
26 | Note that some filesystems or some partition tables store more magic strings on | |
27 | the devices. The | |
28 | .B wipefs | |
29 | lists the first offset where a magic string has been detected. The device is | |
30 | not scanned for additional magic strings for the same filesystem. It's possible | |
31 | that after \fBwipefs -o <offset>\fR will be the same filesystem or partition | |
32 | table visible by another magic string on another offset. | |
33 | ||
34 | When used with option \fB-a\fR then all for libblkid visible magic strings are | |
35 | erased. | |
36 | ||
c49057d2 KZ |
37 | .SH OPTIONS |
38 | .IP "\fB\-a, \-\-all\fP" | |
f126cd46 KZ |
39 | Erase all available signatures. This set of erased signatures could be |
40 | restricted by \fB\-t <list>\fP option. | |
c49057d2 KZ |
41 | .IP "\fB\-h, \-\-help\fP" |
42 | Print help and exit. | |
43 | .IP "\fB\-n, \-\-no\-act\fP" | |
44 | Causes everything to be done except for the write() call. | |
45 | .IP "\fB\-o, \-\-offset\fP \fIoffset\fP | |
0791a058 BS |
46 | Specify the location (in bytes) of the signature which should be erased from the |
47 | device. The \fIoffset\fR number may include a "0x" prefix; then the number will be | |
48 | interpreted as a hex value. It is possible to specify multiple \fB-o\fR options. | |
69cc2ec0 KZ |
49 | |
50 | The \fIoffset\fR argument may be followed by binary (2^N) suffixes KiB, MiB, | |
51 | GiB, 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 | 54 | Print out in parsable instead of printable format. Encode all potentially unsafe |
c49057d2 | 55 | characters of a string to the corresponding hex value prefixed by '\\x'. |
0fd93af6 MB |
56 | .IP "\fB\-q, \-\-quiet\fP" |
57 | Suppress output messages after successful signature wipe. | |
f126cd46 KZ |
58 | .IP "\fB\-t, \-\-types\fP \fIlist\fP |
59 | Used to limit the set of printed or erased signatures. More than one type may | |
60 | be specified in a comma-separated list. The list of types or individual types | |
61 | can be prefixed with 'no' to specify the types on which no action should be | |
62 | taken. For more details see mount(8). | |
11295cd1 BS |
63 | .IP "\fB\-V, \-\-version\fP" |
64 | Output version information and exit. | |
c49057d2 KZ |
65 | .SH AUTHOR |
66 | Karel Zak <kzak@redhat.com>. | |
67 | .SH AVAILABILITY | |
601d12fb KZ |
68 | The wipefs command is part of the util-linux package and is available from |
69 | ftp://ftp.kernel.org/pub/linux/utils/util-linux/. | |
c49057d2 KZ |
70 | .SH SEE ALSO |
71 | .BR blkid (8) | |
72 | .BR findfs (8) | |
73 |