LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-09-2015, 04:23 AM   #1
pmraps
LQ Newbie
 
Registered: Jun 2015
Location: Portugal
Distribution: BunsenLabs, ElementaryOS, Manjaro
Posts: 8

Rep: Reputation: Disabled
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.
 
Old 06-09-2015, 04:51 AM   #2
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
Welcome to Linux Questions!

Photorec, testdisk is the best one. You my also use a hexeditor to find data (hard).
 
Old 06-09-2015, 04:57 AM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
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 ...
 
Old 06-09-2015, 05:17 AM   #4
pmraps
LQ Newbie
 
Registered: Jun 2015
Location: Portugal
Distribution: BunsenLabs, ElementaryOS, Manjaro
Posts: 8

Original Poster
Rep: Reputation: Disabled
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] I want to revert a command magankr Red Hat 3 08-21-2012 07:14 PM
[SOLVED] How to revert back to 11.04? ChannMan40 Linux - Software 11 12-02-2011 07:17 PM
[SOLVED] xen revert to snapshot from command line genderbender Linux - Virtualization and Cloud 1 11-01-2010 12:39 PM
iptables command to revert to dropping after an app closes? conn-fused Linux - Security 3 02-24-2007 12:07 AM
tcl 8.4 - revert to 8.3? zipur Linux - Software 0 12-16-2004 02:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration