How can I wipe free space on hard disk?

March 26, 2011 - 03:16:01
I am using Debian 5.0 with ext3 filesystem and I want to wipe free disk space securely. How can I do that?
Martin Riggs

1 Answer

January 24, 2011 - 19:01:57
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.
Please Sign up or Login to answer questions