为什么 ntfswipe 会写入随机值来取消删除的数据?

为什么 ntfswipe 会写入随机值来取消删除的数据?

在将我自己的操作系统添加到硬盘上之前,我正要对从商店买来的硬盘进行存档,考虑到这是一台以折扣价购买的二手演示机,硬盘可能在后台没有清理干净,所以我选择先在其上运行 ntfswipe(因为 0x00000000000000000 压缩效果非常好,呵呵),

root@xubuntu:/home/xubuntu# ntfswipe -a /dev/nvme0n1p3 
ntfswipe is about to wipe:
    unused disk space
    file tails
    unused mft areas
    unused directory index space
    the logfile (journal)
    the pagefile (swap space)
    undelete data

ntfswipe will overwrite these areas with: 0x00 
(however undelete data will be overwritten by random values)


ntfswipe will begin in 5 seconds, press CTRL-C to abort.

wipe_directory 0x00, 65016584 bytes
wipe_tails 0x00, 221482103 bytes
wipe_logfile 0xff, 67108864 bytes
wipe_mft 0x00, 187170816 bytes
wipe_pagefile 0x00, 5368709120 bytes
wipe_unused 0x00, 460829704192 bytes
wipe_undelete
466739191679 bytes were wiped (excluding undelete data)

这里的问题是,正如标题所述,为什么它会说:

(however undelete data will be overwritten by random values)

? 当其他所有内容都被 0x00 或 0xFF 覆盖时,为什么取消删除的数据看似是随机的?

相关内容