LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to revert dd command? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-revert-dd-command-4175544886/)

pmraps 06-09-2015 04:23 AM

How to revert dd command?
 
Hi,

this is my first post here, I clicked the above button but no similar threads showed up.

I issued a dd command with the wrong external drive connected.
It only worked for 3 or 4 seconds. After that I disconnected the cable.
But now I can't access the data. Is there a way to reverse this?

I can recover most of it with foremost and photorec, but I loose all the folder tree. And some files created with OpenOffice don't show as well.

Thank you in advance for any help.

Regards,
Pedro.

veerain 06-09-2015 04:51 AM

Welcome to Linux Questions!

Photorec, testdisk is the best one. You my also use a hexeditor to find data (hard).

syg00 06-09-2015 04:57 AM

The filesystem metadata (like directory entries) is at the start of the filesystem. Anything those tools can't recover is likely gone forever.

No backup I'm guessing ...

pmraps 06-09-2015 05:17 AM

OK, I was afraid of this. No, the wrong cable leads to the backup.

Thank you for your answers. I'll mark the thread as solved.


All times are GMT -5. The time now is 06:16 PM.