
(run from a directory on the filesystem you want to wipe) The quickest way, if you only need a single pass and just want to replace everything with zeros, is: cat /dev/zero > zero.file srm writes 32k blocks for the purpose of speed, filling buffers of disk caches to force them to flush and overwriting old data which belonged to the file.
27 passes with special values defined by Peter Gutmann.Īs an additional measure of security, the file is opened in O_SYNC mode and after each pass an fsync() call is done. dev/urandom is used for a secure RNG if available. The secure data deletion process of srm goes like this: The wipe algorithm is based on the paper "Secure Deletion of Data from Magnetic and Solid-State Memory" presented at the 6th Usenix Security Symposium by Peter Gutmann, one of the leading civilian cryptographers. Srm is designed to delete data on mediums in a secure manner which can not be recovered by thiefs, law enforcement or other threats. Sswap - wipe all the data from you swap space. Sfill - wipe all the space marked as empty on your hard drive Smem - securely delete traces of a file from ram You can use a suite of tools called secure-delete.
Also see How can I reliably erase all information on a hard drive? The only safe ways of wiping data are the ATA Secure Erase command (if implemented correctly), or physical destruction. Warning: Modern disk/SSD hardware and modern filesystems may squirrel away data in places where you cannot delete them, so this process may still leave data on the disk.