LinuxCommandLibrary

wipefs

Erase filesystem signatures from devices

TLDR

Display signatures

$ sudo wipefs /dev/sda
copy
Wipe all signatures
$ sudo wipefs -a /dev/sda
copy
Wipe device and partitions
$ sudo wipefs -a /dev/sda*
copy
Dry run
$ sudo wipefs -a -n /dev/sda
copy
Force wipe mounted device
$ sudo wipefs -a -f /dev/sda
copy

SYNOPSIS

wipefs [OPTIONS] device...

DESCRIPTION

wipefs erases filesystem, RAID, or partition-table signatures from a device. It removes the magic strings that identify the device type without destroying the actual data, allowing the device to be repurposed.

PARAMETERS

-a, --all

Wipe all available signatures
-n, --no-act
Dry run - show what would be done
-f, --force
Force wiping even if device is in use
-o, --offset offset
Wipe signature at specific offset
-b, --backup
Create backup files of erased signatures
-t, --types list
Wipe only specified signature types
-q, --quiet
Suppress output

CAVEATS

This command removes filesystem identification signatures but does not securely erase data. For complete data destruction, use blkdiscard or overwrite with dd. Wiping a mounted filesystem can cause data loss.

HISTORY

wipefs is part of the util-linux package, providing signature management for block devices.

SEE ALSO

blkid(8), lsblk(8), blkdiscard(8)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community