Linux基础——wipefs磁盘数据擦除工具
一、概述
[root@harbor yum.repos.d]# wipefs --help Usage: wipefs [options] <device> Wipe signatures from a device. Options: -a, --all wipe all magic strings (BE CAREFUL!) -b, --backup create a signature backup in $HOME -f, --force force erasure -i, --noheadings don't print headings -J, --json use JSON output format -n, --no-act do everything except the actual write() call -o, --offset <num> offset to erase, in bytes -O, --output <list> COLUMNS to display (see below) -p, --parsable print out in parsable instead of printable format -q, --quiet suppress output messages -t, --types <list> limit the set of filesystem, RAIDs or partition tables -h, --help display this help -V, --version display version Available output columns: UUID partition/filesystem UUID LABEL filesystem LABEL LENGTH magic string length TYPE superblok type OFFSET magic string offset USAGE type description DEVICE block device name For more details see wipefs(8).
二、范例
wipefs Wipe filesystem, raid, or partition-table signatures from a device. Display signatures for specified device: sudo wipefs {{/dev/sdX}} Wipe all available signatures for specified device: sudo wipefs --all {{/dev/sdX}} Perform dry run: sudo wipefs --all --no-act {{/dev/sdX}} Force wipe, even if the filesystem is mounted: sudo wipefs --all --force {{/dev/sdX}}
参考
https://www.cnblogs.com/cainiaoyige1/p/14675392.html
https://www.man7.org/linux/man-pages/man8/wipefs.8.html
指令查看网站
https://www.linux-man.cn/command/?command=ps
稳步前行,只争朝夕。