在实际生活中常有对磁盘进行低格的操作,目的是彻底摧毁原始数据,防止被数据恢复.
这里介绍两个windows内置的工具,可以很好的完成这个工作
擦除磁盘
windows 内置的format 命令是支持 擦除0以及随机读写的
以下命令执行的目标功能
format d: /v:clean_ok /p:2 /y
- 首先利用随机数 覆盖磁盘 2 次
- 接着将磁盘
D
擦除为0
- 一共三次
擦除完成后 重命名分区名称为
clean_ok
重命名分区是作为 完成的标致,可以不用
擦除可用空间
windows 的cipher
命令可以对当前磁盘中的未被使用的磁层空间进行加密
cipher /w:D:\
- 将磁盘
D
中所有未被占用的空间全部清空
该命令的操作逻辑如下:
- 首先写入
00
- 接着写入
ff
- 最后再写入
00
In real life, it is common to underframe a disk in order to completely destroy the original data and prevent it from being recovered.
Here are two built-in windows tools that can do this job very well
<! --more-->
Erase disk
The windows built-in format command supports erase 0 and random read/write.
The following command performs the target function
format d: /v:clean_ok /p:2 /y
- first overwrite the disk 2 times using random numbers
- then erase disk
D
to0
- three times in total
rename the partition to
clean_ok
after the wipe is completeRename the partition as the completion mark, you can leave it out
Erase free space
The windows cipher
command encrypts the unused tier space on the current disk
cipher
cipher /w:D:\
- Empty all unused space on disk `D
The logic of this command is as follows:
- first write to
00
- then write
ff
3. - finally write
00
again