How can I wipe free space on hard disk?

March 09, 2013 16:02:01
I am using Debian 5.0 with ext3 filesystem and I want to wipe free disk space securely. How can I do that?

1 Answer

You can use a suite of tools called secure-delete.

This has four tools:

srm - securely delete an existing file
smem - securely delete traces of a file from ram
sfill - wipe all the space marked as empty on your hard drive
sswap - wipe all the data from you swap space.

Using sfill will take a long time so you may want to do it more quickly so use " sfill -llz / " command to reduce the whole procedure to one pass which only writes '0's.
January 25, 2011 02:01:57

ANSWERED BY

Profile picture for caria
Please Sign up or Login to answer questions