0

I had a 2TB USB drive (LVM2/xfs), and accidentally dd'd an CentOS image (5GB) onto it. I have been trying to recover the data that was on that USB dDrive by creating a (testdisk) ddrecover image that I plan to run photorec on, in order to recover files, using the documentation from cgsecurity.org.

While I am waiting for that to complete, I thought it might be worth talking to the people here and checking to see if anyone has ever done anything similar. Did it work, and are there any other methods the forum would recommend?

I have googled and googled.

Thanks to you all.

Daniel

1 Answers1

0

I wanted to give an update on this, with my findings:

  1. creating a disk image does take a long time, but seems to be the safest method of performing this work (photorec can be pointed at the image, instead of the USB drive).

  2. It makes sense to be specific about the kinds of files one wants to recover, instead of selecting all file types: it speeds up the process.

  3. Run the photorec software at the maximum block size, if possible. This is the third run I have performed, and this seems to be a very important discovery. In previous runs, i did not consider block size, so the files that photorec spat out where around 500 blocks.

I am really impressed so far, as the software has found a pdf file from the disk image - it's not all there, but I can get it from source, after completion.

More updates to follow.