[Nottingham] Secure deletion of files

Jon Masters jonathan at jonmasters.org
Thu May 26 00:22:15 BST 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Paul Sladen wrote:

| I wrote a Python utility the other day to zero the unused blocks of a
| unmounted ext2 partition:
|
|   http://www.paul.sladen.org/ubuntu/e2fszero/e2fs-zero.py
|
| Could equally well overwrite it with something that's not zero...

Just so long as you don't have that mounted at the time, since there's
no attempt to check the filesystem aint in use :-) To be fair, one would
hope that anyone who chose to use a script like this actually realised
enough of what they were doing that it wasn't an issue.

My favourite line in your script has got to be ``print 'All done!
Hopefully your filesystem is not toast.'''

Quite :-)

Jon.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFClQhieTyyexZHHxERAtPSAKCTKCSmpVCMy8bdDWCZenRNNxtOLQCgokZq
9AFT+v+E5j+D55LFpu3BFcs=
=x9nC
-----END PGP SIGNATURE-----



More information about the Nottingham mailing list