Forrest logo
back to the wipefs tool

wipefs:tldr:9e2c7

wipefs: Wipe all available signature types for a specific device with no recursion into partitions.
$ sudo wipefs --all ${-dev-sdX}
try on your machine

This command is used to wipe all file system signatures and metadata on a specified storage device.

Here is a breakdown of the command:

  1. "sudo": It is a command used in Unix-like systems that allows a user with administrative privileges to execute a command as a superuser or root.

  2. "wipefs": It is a command-line utility that is used to erase file system signatures and metadata from a storage device.

  3. "--all": It is an option for the "wipefs" command, which specifies that all file system signatures and metadata should be wiped from the device.

  4. "${-dev-sdX}": It is a placeholder representing the storage device to be wiped. The actual device name should be provided instead of "${-dev-sdX}". For example, if you want to wipe the device "/dev/sdb", you would replace "${-dev-sdX}" with "/dev/sdb".

Putting it all together, the command "sudo wipefs --all ${-dev-sdX}" with the correct device name will wipe all file system signatures and metadata on the specified storage device.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the wipefs tool