LinuxQuestions.org
Help answer threads with 0 replies.
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 10-06-2015, 12:25 PM   #1
doramzy
LQ Newbie
 
Registered: Oct 2015
Posts: 17

Rep: Reputation: Disabled
Recovered Files With DDRESCUE But Can't Read Them


Hi all,

My name is Dean and I've recently recovered data from a 1tb external hdd by using a disk image I created with ddrescue. The hard drive had no physical damage but for some reason (I think because it got over loaded) it started failing, got corrupted and became unreadable. Actually the harddrive format could only be read as raw format. Test disk didn't work for some reason, photorec also gave similar problems (it was only able to recover some files) so I resorted to using DDrescue. I created an image using the command on Ubuntu 15.04 in terminal

~sudo ddrescue /dev/sdc1 /media/drivereader/BackupInfo/rescue.dd /media/drivereader/BackupInfo/Logfile/Log.txt~


So I was just about able to create a disk image on another 3TB free hard drive. I only received one error at the very end for some reason even after haven recovered the whole 1TB. The error said

~Input file Not Found: No such file or directory]~

but I mounted my disk image anyway and I dragged one of my files to the desktop and I am unable to read it or any of them. Some of the files note: are VOB movie files. When I open them they simply don't play or display the image at all in fact I did receive some error on windows about it being corrupted or something I think but on Linux when I tried to play a VOB file I received the error
~Could not determine type of stream~

if they're corrupted how can I fix them PLEASE, oh please! I really need these files thank you if anyone could help me, I'd really appreciate it.

Thanks!
 
Old 10-07-2015, 07:54 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,927

Rep: Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320
the usual answer is: the important files are always backed up, so you only need to use that to restore. To be serious: a corrupted file cannot be recovered easily, probably the drive could not be red. You may try to run:
od -xc <filename> | less
to check if those files had any content (at all).

Last edited by pan64; 10-08-2015 at 07:28 AM. Reason: mistyped
 
Old 10-08-2015, 06:44 AM   #3
doramzy
LQ Newbie
 
Registered: Oct 2015
Posts: 17

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
the usual answer is: the important files are always backed up, so you only need to use that to restore. To be serious: a corrupted file cannot be recovered easily, probably the drive could not be red. You may try to run:
od -xc <filename> | less
to check if those files had any contain (at all).
Thank you so much for getting back to me. I put in the code you asked for one of the files and this is the result I got:


0000000 0000 0000 0000 0000 0000 0000 0000 0000
\0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0
*
74074000000
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
(END)


Note this was also a .iso file with videos in it.
 
Old 10-08-2015, 06:47 AM   #4
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
The first thing in case of corruption is to run fsck.
 
Old 10-08-2015, 07:13 AM   #5
doramzy
LQ Newbie
 
Registered: Oct 2015
Posts: 17

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Emerson View Post
The first thing in case of corruption is to run fsck.
How do I run it? I need to know how I can read the files on a disk image I called rescue.img please?
 
Old 10-08-2015, 07:17 AM   #6
maples
Member
 
Registered: Oct 2013
Location: IN, USA
Distribution: Arch, Debian Jessie
Posts: 814

Rep: Reputation: 265Reputation: 265Reputation: 265
What filesystem are you using?

Then Google for "fsck <filesystem>"

Note that since you're using a disk image, you likely won't need to run it as root.
 
Old 10-08-2015, 07:27 AM   #7
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,927

Rep: Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320
Quote:
Originally Posted by doramzy View Post
0000000 0000 0000 0000 0000 0000 0000 0000 0000
\0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0
*
74074000000
That is an empty file, contains nothing but zeroes.
Usually that means ddrescue could not read the device and filled up the image with 0.

But probably I misunderstood something. You also may try to use dd to create a disk image.
 
Old 10-08-2015, 09:50 AM   #8
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Using dd would be correct, it will create an image without trying to repair it, so you can run fsck on it.
 
  


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
opening ecryptfs files recovered by photorec dgermann Linux - General 6 06-27-2015 10:24 AM
Can't delete files forecast recovered to my system marinecomm Linux - Software 1 06-21-2015 04:45 PM
Recover files after running ddrescue ostene Linux - Newbie 2 05-09-2014 10:56 AM
ecryptfs has hidden some of my files - can they be recovered? sonichedgehog Ubuntu 3 12-25-2012 05:22 PM
ddrescue and moving files help PiZZLE Linux - Software 9 03-13-2007 08:19 PM

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

All times are GMT -5. The time now is 07:36 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
Open Source Consulting | Domain Registration