OS Manuals

/usr/bin/wipefs

Utility to wipe filesystems from device from util-linux

From wipefs 2.42.4-r2 (os), captured 2026-11-05 by running wipefs --help (exit 0). permalink

Usage:
 wipefs [options] <device>

Wipe signatures from a device.

Options:
 -a, --all            wipe all magic strings (BE CAREFUL!)
 -b, --backup[=<dir>] create a signature backup in <dir> or $HOME
 -f, --force          force erasure
 -i, --noheadings     don't print headings
 -J, --json           use JSON output format
 -n, --no-act         do everything except the actual write() call
 -o, --offset <num>   offset to erase, in bytes
 -O, --output <list>  COLUMNS to display (see below)
 -p, --parsable       print out in parsable instead of printable format
 -q, --quiet          suppress output messages
 -t, --types <list>   limit the set of filesystem, RAIDs or partition tables
     --lock[=<mode>] use exclusive device lock (yes, no or nonblock)
 -h, --help           display this help
 -V, --version        display version

Arguments:
 Values for <num> may be followed by a suffix: KiB, MiB,
 GiB, TiB, PiB, EiB, ZiB, or YiB (where the "iB" is optional).

Available output columns:
     UUID  partition/filesystem UUID
    LABEL  filesystem LABEL
   LENGTH  magic string length
     TYPE  superblock type
   OFFSET  magic string offset
    USAGE  type description
   DEVICE  block device name

For more details see wipefs(8).
Options (14)
OptionDescriptionSource
-a, --allwipe all magic strings (BE CAREFUL!)help + man
-f, --forceForce erasure, even if the filesystem is mounted.help + man
-i, --noheadingsDo not print a header line.help + man
-J, --jsonUse JSON output format.help + man
-n, --no-actCauses everything to be done except for the write(2) call.help + man
-o, --offset numSpecify the location (in bytes) of the signature which should be erased from the device.help + man
-O, --output listSpecify which output columns to print.help + man
-p, --parsablePrint out in parsable instead of printable format.help + man
-q, --quietSuppress any messages after a successful signature wipe.help + man
-t, --types listlimit the set of filesystem, RAIDs or partition tableshelp + man
-h, --helpDisplay help text and exit.help + man
-V, --versionDisplay version and exit.help + man
-b, --backup dirCreate a signature backup to the file wipefs-<devname>-<offset>.bak in $HOME or the directory specified as the optional argument. (in the manual page but not in --help)man
--lock modeUse an exclusive BSD lock for the device or file that is operated upon. (in the manual page but not in --help)man

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.