I have 2 partitions, my system file, swap.. every thing is on the partition which named now (free space) because I clicked the [-] button. The second partition is the partition where I usually store some important data in and I don't want to erase it.
What I want to do is to Erase the partition which called (free space) safely, mean if someone installed photoRec for example he will not be able to recover my old files. I found here on this website many answers, but all of what I found guides the user to erase all of his disk; but I don't want to do that, I just want to erase one partition, because the secret data is stored there (in free space). I don't know what is the name of this method, maybe it's replacing the free data on the partition with zeros, (I don't know but want the safest). Another question: the hacker can't recover the files on my partition (free space) after erasing it safely even if the another partition (/dev/sda4 ntfs) is still on my device without erasing, true?
dd
data to it. (/dev/random) but I'll mark it duplicate which will provide links – guiverc Jul 14 '19 at 04:28