3 ms·
It's not just journaling that is a problem. Some filesystems and/or operating systems will move files or parts of files to improve performance. For example OS X
by tzs 16y ago
It's not just journaling that is a problem. Some filesystems and/or operating systems will move files or parts of files to improve performance. For example OS X does some automatic defragmentation of files. Some systems move files that are frequently accessed together to be near each other on the disk.
When the system does such an automatic move of a file or part of a file, does it clear out the source block on the disk, or just mark it free? If the latter, then a secure erase that just overwrites the current blocks of the file will leave those other blocks untouched in the free space.
If you have a file that you must truly be able to get rid of without destroying your whole hard disk, that file should be kept encrypted on the disk, and the plaintext version should never be stored on disk. Getting rid of the file is then a simple matter of forgetting the encryption key.