Ask

How can I wipe free space on hard disk?

March 26, 2011 - 09: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?
ASKED BY
Sezgin Riggs

1 Answer

Caria
January 25, 2011 - 02: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