0

A while ago I sought out the answer to the opposite question to the one I am posing here and found this answer:

https://unix.stackexchange.com/a/98700

The grep() piped to tee() in the comments was the solution I needed. However, is the opposite process possible? Can I somehow overwrite that part of the disk so that the grep solution above will not work?

  • 3
    Can you edit your question to clarify what the question here is? Without leaning on knowledge of another question, if possible? – ilkkachu Mar 25 '17 at 12:58

1 Answers1

1

There are many Linux command line programs, that do this job. A couple the more famous one are generally known as: shred secure-delete (which contains several programs for securely deleting) And some distributions (especially Security-oriented ones) even have some functions built-in natively, for example in the explorer shell.

So this is not really the important or hard to solve part. The more crucial question is, what type of storage medium do you use and how is it formatted?

Do you use Linux that formatted your entire HDD as ext4, according to standards? Then go ahead, you have nothing to fear.

But maybe you use a HDD with a BTRFS, ZFS, or similar file system? Then you got a bigger problem, because files are specifically backed up and very hard to unrecoverably to delete on these file systems.

Do you use a RAID system? Due to the systematic distribution of stored data, it will cause you similar problems as above file systems.

Or do you even use an SSD? That is wholely another topic, too.

So it really depends on these question which operation of what program you really need. Once you find out that your setup is part of one of above mentioned answers, except the first one, then you have to choose the right method for your specific system. If you have the standardized systen mentioned in the first answer, you can use the standard tools. There are also a lot more issueing the same job. You could theoretically even manually use a program like dd or something similar to overwrite a part of a disk block by block repeatedly.

Akito
  • 558
  • Also maybe a little addendum: How securely do you want it to be overwritten? If you fear that maybe someone comes with some freeware Windows App to recover your files, it is really easy go make ghe files unrecoverable with simple tools. But if you don't want experts to be able to recover anything, then you have to put in more effort, obviously... – Akito Mar 25 '17 at 12:59