NAME
wipefs - wipe a signature from a deviceSYNOPSIS
wipefs [options] device...DESCRIPTION
wipefs can erase filesystem, raid or partition-table signatures (magic strings) from the specified device to make the signatures invisible for libblkid. wipefs does not erase the filesystem itself nor any other data from the device.OPTIONS
-a, --allErase all available signatures. The set of
erased signatures can be restricted with the -t option.
Create a signature backup to the file
$HOME/wipefs-<devname>-<offset>.bak. For more details see
the EXAMPLE section.
Force erasure, even if the filesystem is
mounted. This is required in order to erase a partition-table signature on a
block device.
Use JSON output format.
Use exclusive BSD lock for device or file it
operates. The optional argument mode can be yes, no (or 1
and 0) or nonblock. If the mode argument is omitted, it defaults
to "yes". This option overwrites environment variable
$LOCK_BLOCK_DEVICE. The default is not to use any lock at all, but
it’s recommended to avoid collisions with udevd or other tools.
Do not print a header line.
Specify which output columns to print. Use
--help to get a list of all supported columns.
Causes everything to be done except for the
write(2) call.
Specify the location (in bytes) of the
signature which should be erased from the device. The offset number may
include a "0x" prefix; then the number will be interpreted as a hex
value. It is possible to specify multiple -o options.
The offset argument may be followed by the multiplicative suffixes KiB
(=1024), MiB (=1024*1024), and so on for GiB, TiB, PiB, EiB, ZiB and YiB (the
"iB" is optional, e.g., "K" has the same meaning as
"KiB"), or the suffixes KB (=1000), MB (=1000*1000), and so on for
GB, TB, PB, EB, ZB and YB.
Print out in parsable instead of printable
format. Encode all potentially unsafe characters of a string to the
corresponding hex value prefixed by '\x'.
Suppress any messages after a successful
signature wipe.
Limit the set of printed or erased signatures.
More than one type may be specified in a comma-separated list. The list 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).
Display help text and exit.
Print version and exit.
ENVIRONMENT
LIBBLKID_DEBUG=allenables libblkid(3) debug output.
use exclusive BSD lock. The mode is
"1" or "0". See --lock for more details.
EXAMPLES
wipefs /dev/sda*Prints information about sda and all
partitions on sda.
Erases all signatures from the device
/dev/sdb and creates a signature backup file
~/wipefs-sdb-<offset>.bak for each signature.
Restores an ext2 signature from the backup
file ~/wipefs-sdb-0x00000438.bak.
AUTHORS
Karel <[email protected]>ZakSEE ALSO
blkid(8), findfs(8)REPORTING BUGS
For bug reports, use the issue tracker at <https://github.com/util-linux/util-linux/issues>.AVAILABILITY
The wipefs command is part of the util-linux package which can be downloaded from Linux Kernel Archive <https://www.kernel.org/pub/linux/utils/util-linux/>.2022-05-11 | util-linux 2.38.1 |