Linux基础——wipefs磁盘数据擦除工具
一、概述
[root@harbor yum.repos.d]# wipefs --helpUsage: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 versionAvailable output columns:UUID partition/filesystem UUIDLABEL filesystem LABELLENGTH magic string lengthTYPE superblok typeOFFSET magic string offsetUSAGE type descriptionDEVICE block device nameFor 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
稳步前行,只争朝夕。
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/944566.shtml
如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!