Ubuntu securely delete files

Howto: Delete Files Permanently and Securely in Ubuntu

We all know that when you simply delete a file, it's possible to recover it later. Sometimes this is useful, if you accidentally delete something important; but usually this is a problem, and you really want that file gone forever. This howto will explain how to delete a file in linux securely and permanently, so it can never be recovered. Hard drives store data magnetically; when you delete a file in Linux (on the ext3 filesystem), that area of the hard drive (the "inode") is overwritten with zeros (this isn't the case with the older ext2 filesystem, or with the Windows filesystems; see the section below on "passes and filesystems"), but the magnetic traces of that section's previous contents remain lingering until it is overwritten many times. These tools work by writing lots of random data and zeros over your old file[s], making sure that even the most advanced recovery methods aren't able to read what was once stored in that part of the hard disk.

Syndicate content