Some days ago, I've stupidly performed a dd command with the wrong drive (and yes, I know it's just plain ridiculous). In practical terms, what I accidentally did was convert my WD Elements 1TB 2.5" external drive into a CentOS live DVD, when the objective was to do it on a 2GB pen drive. More precisely, the command used was this:
Code: Select all
sudo dd if=CentOS-6.5-i386-LiveDVD.iso of=/dev/sdc
After googling a little, I found out about TestDisk and PhotoRec. I've already followed this useful tutorial ( http://www.cgsecurity.org/wiki/TestDisk_Step_By_Step ), but after performing either a Quick Search and a Deeper Search, it found out nothing. After that, I've tried PhotoRec, and it did indeed found / recovered several files. The problem is, as you already know, that PhotoRec does recover files but doesn't keep their original names nor their folder structure. For me, this is impossible to deal with, because while a great part of the data in the drive is negligible, there are two folders that are extremely important for me - and if for one of them I have a fresh backup, for the other one I only have a backup dated several months. In each of both directories, there are hundreds of thousands of files to be recovered, so I urgently need to recover the files with their initial directory hierarchy, or at least with their original names. So, is it possible to achieve this in TestDisk or PhotoRec (or even with other linux tool that you can kindly recommend me)? I've attached some screenshot steps (1 to 5), to illustrate what I just have written above. You can see that in 2.png, I've chosen the partition table type as "None", because of the hint that TestDisk gave me. Say what you think about this, please. And many thanks for reading, of course. If you can help, I'll be deeply grateful.