2020-06-18 12:58:03 +01:00
|
|
|
# wipefs
|
|
|
|
|
|
|
|
> Wipe filesystem, raid, or partition-table signatures from a device.
|
2021-10-05 04:35:50 +01:00
|
|
|
> More information: <https://manned.org/wipefs>.
|
2020-06-18 12:58:03 +01:00
|
|
|
|
|
|
|
- Display signatures for specified device:
|
|
|
|
|
2020-10-29 11:21:45 +00:00
|
|
|
`sudo wipefs {{/dev/sdX}}`
|
2020-06-18 12:58:03 +01:00
|
|
|
|
2022-10-26 00:56:30 +01:00
|
|
|
- Wipe all available signature types for a specific device with no recursion into partitions:
|
2020-06-18 12:58:03 +01:00
|
|
|
|
2020-10-29 11:21:45 +00:00
|
|
|
`sudo wipefs --all {{/dev/sdX}}`
|
2020-06-18 12:58:03 +01:00
|
|
|
|
2022-10-26 00:56:30 +01:00
|
|
|
- Wipe all available signature types for the device and partitions using a glob pattern:
|
|
|
|
|
|
|
|
`sudo wipefs --all {{/dev/sdX}}*`
|
|
|
|
|
2020-06-18 12:58:03 +01:00
|
|
|
- Perform dry run:
|
|
|
|
|
2020-10-29 11:21:45 +00:00
|
|
|
`sudo wipefs --all --no-act {{/dev/sdX}}`
|
2020-06-18 12:58:03 +01:00
|
|
|
|
|
|
|
- Force wipe, even if the filesystem is mounted:
|
|
|
|
|
2020-10-29 11:21:45 +00:00
|
|
|
`sudo wipefs --all --force {{/dev/sdX}}`
|