HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

wipefs — Wipe filesystem, raid, or partition-table signatures from a device. More information: <https://manne

Submitted by: @import:tldr-pages··
0
Viewed 0 times
tablecommandpartitionclifilesystemwiperaidwipefs
linux

Problem

How to use the wipefs command: Wipe filesystem, raid, or partition-table signatures from a device. More information: <https://manned.org/wipefs>.

Solution

wipefs — Wipe filesystem, raid, or partition-table signatures from a device. More information: <https://manned.org/wipefs>.

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}}

Code Snippets

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}}

Context

tldr-pages: linux/wipefs

Revisions (0)

No revisions yet.