dimanche 28 décembre 2014

Did I unintentionally delete my entire hard drive?


A while ago I backed up a Linux folder onto a Windows disk drive I had lying around. Recently I was scanning through those files when I realized that I had unintentionally copied over many unwanted hidden files and folders. I wanted to securely remove the files, but I realize that was not certain on a journaled file system (NTFS). So I figured the next best thing would be overwrite the files while keeping them intact, then overwrite the free space afterwards.


I cd into the folder that contained the Linux backup and tested: find . -regex '.+/\..*' which found all the files that I wanted removed. I then ran find . -regex '.+/\..*' -execdir shred -x -n 1 '{}' ';' and left my computer. When I came back a couple hours I tried changing directories but got I/O errors. I tried remounting but was confronted with even more errors.


Have I unintentionally wiped my entire drive? If so, what did I do wrong?



Aucun commentaire:

Enregistrer un commentaire