Learn how to list and remove leftover filesystem signatures safely with wipefs. 09.07.2026 | reading time: 2 min Old filesystem labels, RAID metadata or leftover partition signatures can confuse tools and block reuse; the command `wipefs` lets the admin discover and remove those signatures so the device can be reused cleanly. When metadata misleads A disk that "looks" empty may still carry magic bytes; `wipefs` helps answer the question "what does the kernel still recognize on this device" by exposing on-disk signatures before any destructive action is taken. A hands-on example Check what the kernel sees, do a dry-run, then remove signatures and verify: ``` $ sudo lsblk -f /dev/sdb1 NAME FSTYPE LABEL UUID MOUNTPOINT sdb1 ext4 1234-ABCD /mnt/data $ sudo wipefs -n /dev/sdb1 offset type ---------------------------------------------------------------- 0x00000400 ext4 [filesystem] 0x00000400 has_superblock $ sudo wipefs -a /dev/sdb1 /dev/sdb1: 2 bytes were erased from 0x00000400 $ sudo wipefs -n /dev/sdb1 # no output -- no signatures found ``` Depths and options Use `-n` for dry-run, `-a` to remove all found signatures, `-o` to target a specific offset and `-t` to remove a specific signature type; `-f` forces actions in some situations, and always run as root and avoid mounted devices because removing signatures may make mounted filesystems unusable. Practical caveats Wiping signatures removes the identifying metadata but not the bulk data; that usually renders the filesystem unreachable while the underlying data remains, so if recovery is needed stop and create an image before using `wipefs`. Tools to pair with Combine `wipefs` with `lsblk -f`, `blkid`, and `file -s` to inspect devices, and use `fdisk -l` or `parted` when you need to recreate partition tables after cleaning signatures. Where to go next Mastering small tools like `wipefs` improves daily administration and troubleshooting; if this whetted the appetite, dig deeper into filesystems and consider formal certification such as CompTIA Linux+ or LPIC-1 and an intensive exam preparation at bitsandbytes.academy. Join Bits & Bytes Academy First class LINUX exam preparation. filesystem utilities storage troubleshooting This page was created with the help of AI.