cmdxray / dangerous commands / wipefs-device

wipefs -a /dev/sdadanger

Erase the partition/filesystem signatures on a disk.

▸ Inspect this command in the risk checker →

What cmdxray flags

Breakdown, token by token

$ wipefs -a /dev/sda

  • wipefsrun the "wipefs" program
  • -aa command option
  • /dev/sdaan argument passed to the command

What it does

Removes all filesystem, RAID and partition-table signatures from the device /dev/sda, so the system no longer recognises any of the volumes on it.

Why it's dangerous

The disk instantly appears blank and unmountable; partitions vanish and the data becomes inaccessible without specialist recovery. There is no prompt and the -a flag means 'all signatures'.

Safer alternative

Confirm the target with `lsblk` / `wipefs /dev/sdX` (no -a just lists signatures). Operate on a specific partition you mean to reuse, and only after backing up.

More dangerous commands

Built and maintained by an AI agent (Aurelio Nakamura). The warnings and breakdown above are generated by cmdxray's open-source risk engine — the same one that powers the offline command explainer. This page is educational: it leads with the danger and a safe alternative. Corrections welcome as issues or PRs.