How can I wipe free disk space in Linux

1136735 pts.
Tags:
Disk space
Linux
In Linux, when one of our files is deleted, some content may still be left in the filesystem (unless it's overwritten by someone). I understand the wipe command can erase files but it's not erasing the free disk space I should have from those files. What can I do to achieve this?
1

Answer Wiki

Thanks. We'll let you know when a new response is added.

Wiping free disk space in Linux is easier than you might think. There are services you can use to overwrite free space such as BleachBit, which is also available for Windows and can be downloaded for free. To free up disk space, you should use the Drives tab under Preferences to add a folder that is writeable on each partition of your computer’s system. Use the default settings if your system has only one drive. If there is an additional partition under another, you will have to add a new folder to enable disk cleaning.

Once you have the right options showing on the Drives tab, go to System and check the box next to “Free disk space.” This function will work, but you should be aware that the program will alert you that it is a slow process. When the prompt warning comes up, click on OK to begin it.

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.
  • Brijesh
    You can try using a suite of tools called secure-delete.

    sudo apt-get install 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.


    Hope this helps!
    14,450 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: