wipefs

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

Install

All systems
curl cmd.cat/wipefs.sh
Debian Debian
apt-get install util-linux
Ubuntu
apt-get install util-linux
Alpine
apk add util-linux
Arch Arch Linux
pacman -S util-linux
image/svg+xml Kali Linux
apt-get install util-linux
CentOS
yum install util-linux
Fedora
dnf install util-linux
Windows (WSL2)
sudo apt-get update sudo apt-get install util-linux
OS X
brew install util-linux
Raspbian
apt-get install util-linux
Docker
docker run cmd.cat/wipefs wipefs powered by Commando

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 --all /dev/sdX
  • Wipe all available signature types for the device and partitions using a glob pattern:
    sudo wipefs --all /dev/sdX*
  • Perform dry run:
    sudo wipefs --all --no-act /dev/sdX
  • Force wipe, even if the filesystem is mounted:
    sudo wipefs --all --force /dev/sdX

© tl;dr; authors and contributors