I have a laptop with 1 TB hdd which I am selling. My laptop has contained many sensitive data over the years and I wanted to remove any chances of ever recovering that data. I have planned on using the command sfill
of package secure-delete
.
Note: I want to keep the OS intact and only clean out the free space
The problem is that it could take too much time doing the erase, so I wanted to know the best option to use with sfill
or any other program which I can use to do the same.
head -c 32 /dev/urandom | openssl enc -rc4 -nosalt -in /dev/zero -pass stdin | dd of=/dev/sda bs=1M
will not remove any of my current files but clear all the free space right.