Jump to content

Program to clean disk in Linux

I have an old Windows computer that I want to clean all the data, I'm thinking of making a Linux USB stick and using it to format the HDD on the computer, but, I also would want to do the "Clean free space" thing, but I have no idea of any programs that do that in Linux, can someone recommend me one?

Link to comment
Share on other sites

Link to post
Share on other sites

you can use dd if=/dev/zero to fill the disk with zeros; if thats what you meant by clean free space thing

             ☼

ψ ︿_____︿_ψ_   

Link to comment
Share on other sites

Link to post
Share on other sites

4 minutes ago, SCHISCHKA said:

you can use dd if=/dev/zero to fill the disk with zeros; if thats what you meant by clean free space thing

I mean the function in some programs that completely deletes the files, instead of just making them invisible and possible to recover. I might try that command.

Link to comment
Share on other sites

Link to post
Share on other sites

sudo dd bs=4096 if=/dev/zero of=/dev/sda (or whatever the drive name is)

Link to comment
Share on other sites

Link to post
Share on other sites

1 minute ago, Murilo_A said:

I mean the function in some programs that it completely deletes the files, instead of just making them invisible and possible to recover. I might try that command.

yes just fill the disk with zeros or use /dev/random

             ☼

ψ ︿_____︿_ψ_   

Link to comment
Share on other sites

Link to post
Share on other sites

3 minutes ago, Name Taken said:

/usr/bin/shred can be used on specific files as well as partition/disks.

This is what I usually use. OP, type "shred -v /dev/sda" and it should write zeros over everything on the disk 3 times by default. All you would need to do is burn an Arch Linux ISO to a USB drive, and type that command when you load the system.

A Guide For Getting Started With Linux

My first rig:   CPU: AMD Athlon X4 860k Cooler: Cooler Master Hyper T4 MoBo: Gigabyte GA-F2A88XM-DH3 Video Card: EVGA GTX 750 Ti Superclocked RAM: 8GB Kingston HyperX Fury White 1866MHz Storage: WD Blue 1TB PSU: EVGA 100-W1-0500-KR Case: Rosewill SRM-01

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×