LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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, 05:23 AM   #1
pmraps
LQ Newbie
 
Registered: Jun 2015
Location: Portugal
Distribution: Ubuntu 14.04 LTS
Posts: 4

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, 05: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, 05:57 AM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 14,832

Rep: Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820
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, 06:17 AM   #4
pmraps
LQ Newbie
 
Registered: Jun 2015
Location: Portugal
Distribution: Ubuntu 14.04 LTS
Posts: 4

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 08:14 PM
[SOLVED] How to revert back to 11.04? ChannMan40 Linux - Software 11 12-02-2011 08:17 PM
[SOLVED] xen revert to snapshot from command line genderbender Linux - Virtualization and Cloud 1 11-01-2010 01:39 PM
iptables command to revert to dropping after an app closes? conn-fused Linux - Security 3 02-24-2007 01:07 AM
tcl 8.4 - revert to 8.3? zipur Linux - Software 0 12-16-2004 03:49 AM


All times are GMT -5. The time now is 10:41 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration