permanently delete data
Saturday, November 22nd, 2008Some of you are wondering if files and directory structure as well as contents of them can be restored if deleted from the computer. Sure, but… not if you delete them knowing what you do
GNU and other free and powerful programs are the best choice for permanently deleting data ( for those which burning the disk is a bit extreme option ).
On NTFS or FAT file systems recovering is quite easy and with that security can be compromised. On other file systems recovering with a bit of laboratory treatment can also be achieved.
Use programs such as shred for example to destroy data. Shred not just unlinks inode from the file system table, it also overwrite file you want to delete with some other data firstly. So bits of data doesn’t get just lost, they firstly get overwritten and then lost. Consider printing some text on your highly classified A4 paper before “grizly” shreds it into pieces.
For more workload and more professional approach, I used Dban boot and nuke to wipe whole drives.
Example in bash, first create 10MB file, then shred it
ludo:~$ dd if=/dev/zero of=10MB.txt bs=10M count=1 1+0 records in 1+0 records out 10485760 bytes (10 MB) copied, 0.184 s, 57.0 MB/s ludo:~$ /usr/bin/find -name "10MB.txt" -exec shred -fuvxz -n1 {} \; shred: ./10MB.txt: pass 1/2 (random)... shred: ./10MB.txt: pass 2/2 (000000)... shred: ./10MB.txt: removing shred: ./10MB.txt: renamed to ./00000000 shred: ./00000000: renamed to ./0000000 shred: ./0000000: renamed to ./000000 shred: ./000000: renamed to ./00000 shred: ./00000: renamed to ./0000 shred: ./0000: renamed to ./000 shred: ./000: renamed to ./00 shred: ./00: renamed to ./0 shred: ./10MB.txt: removed
