commands.sh

wipefs

linux

Wipe filesystem, raid, or partition-table signatures from a device.

More info →

Options (3)

-a, --allboolean

Wipe all available signature types for a specific device with no recursion into partitions

Example: sudo wipefs {{[-a|--all]}} {{/dev/sdX}}
-n, --no-actboolean

Perform dry run

Example: sudo wipefs {{[-a|--all]}} {{[-n|--no-act]}} {{/dev/sdX}}
-f, --forceboolean

Force wipe, even if the filesystem is mounted

Example: sudo wipefs {{[-a|--all]}} {{[-f|--force]}} {{/dev/sdX}}

Examples (5)

Display signatures for specified device

sudo wipefs /dev/sdX

Wipe all available signature types for a specific device with no recursion into partitions

sudo wipefs [-a|--all] /dev/sdX

Wipe all available signature types for the device and partitions using a glob pattern

sudo wipefs [-a|--all] /dev/sdX*

Perform dry run

sudo wipefs [-a|--all] [-n|--no-act] /dev/sdX

Force wipe, even if the filesystem is mounted

sudo wipefs [-a|--all] [-f|--force] /dev/sdX
made by @shridhargupta | data from tldr-pages