我如何安全地删除 truecrypt 卷?

我如何安全地删除 truecrypt 卷?

我创建了一个 truecrypt 分区,但我不再需要它了。如何移除/删除此分区?删除二进制文件是否足够安全?

答案1

使用以下命令删除文件:

sudo shred -u /dev/disk/by-id/<your_filename>

正如 Terrance 在评论中所说:

最好花时间消除,而不是将来后悔。


man shred

shred - overwrite a file to hide its contents, and optionally delete it

-n, --iterations=N
      overwrite N times instead of the default (3)

-u, --remove[=HOW]
      truncate and remove file after overwriting; See below

Delete  FILE(s)  if  --remove  (-u)  is  specified.  The default is
not to remove the files because it is common to operate on device
files like /dev/hda, and those files usually should not be removed.   
The optional HOW parameter indicates how to remove a directory entry:
'unlink' => use a standard unlink call.  'wipe' => also first 
obfuscate bytes in the name.  'wipesync' => also sync each obfuscated
byte to disk.  The default mode is 'wipesync', but note it can be
expensive.

答案2

AB已经编写了一种简单的方法来粉碎卷。但是,如果是加密卷,您可以跳过粉碎,直接删除卷(粉碎需要时间)。

rm -rf /path/to/volume

相关内容