secure deletion of data

最後更新: 2019-03-06

 

目錄

  • shred
  • wipe
  • vche-raw

 


shred

 

Overwrite  the specified FILE(s) repeatedly

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

-v, --verbose                 # show progress

-z, --zero                       # add a final overwrite with zeros to hide shredding

-u                                 # truncate and remove file after overwriting

                                    # The default is not to remove the files because it is common to operate on device files like "/dev/sdb"

i.e.

shred -v  /dev/sdb

CAUTION

Note  that  shred relies on a very important assumption: that the file system overwrites data in place

This is the traditional  way to  do  things, but many modern file system designs do not satisfy this assumption. (btrfs)

 * ext? 只不是 overwrites data in place !! (data=journal mode)

 


wipe

 

wipe -D  /mnt/windows/win386.swp

 


vche-raw

 

vche-raw /dev/fd0