wipefs
wipe a signature from a device
- Provided by: util-linux (Version: 2.27.1-6ubuntu3.10)
- Report a bug
wipe a signature from a device
wipefs [-ahnpqtV] [-o offset] device...
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. When used without any options, wipefs lists all visible filesystems and the offsets of their basic signatures.
wipefs calls the BLKRRPART ioctl when it has erased a partition-table signature to inform the kernel about the change.
Note that some filesystems and some partition tables store more magic strings on the device. The wipefs command lists only the first offset where a magic string has been detected. The device is not scanned for additional magic strings for the same filesystem. It is possible that after a wipefs -o offset the same filesystem or partition table will still be visible because of another magic string on another offset.
When option -a is used, all magic strings that are visible for libblkid are erased.
Note that by default wipefs does not erase nested partition tables on non-whole disk devices. For this the option --force is required.
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.
Karel Zak <kzak@redhat.com>
The wipefs command is part of the util-linux package and is available from ftp://ftp.kernel.org/pub/linux/utils/util-linux/.