LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 05-09-2014, 10:41 AM   #1
ostene
Member
 
Registered: Jul 2006
Location: Lidingo, Sweden
Distribution: Kubuntu
Posts: 54

Rep: Reputation: 1
Recover files after running ddrescue


Hello!
I run ddrescue on a bad disk and saved the two partitions
to another disk as file 'name1.img' and 'name2.img'.
How can I recover the files from that partition to a
readable form for e.g. Open Office Writer. Fedora 14, 32 bit.
Thanks in forward
ostene
 
Old 05-09-2014, 10:44 AM   #2
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
i've had good luck with photorec.
 
Old 05-09-2014, 10:56 AM   #3
spazticclown
Member
 
Registered: Sep 2010
Distribution: Fedora, Android, CentOS
Posts: 91
Blog Entries: 2

Rep: Reputation: 21
You can mount the partitions as loop devices.
Assuming the command to make the images was something like:
Code:
ddrescue /dev/sdb1 ./name1.img ./name1.log
ddrescue /dev/sdb2 ./name2.img ./name2.log
Then you should be able to do something like
Code:
mkdir name1 name2
mount -o loop,ro name1.img name1
mount -o loop,ro name2.img name2
Now you can just browse into these using 'cd' or a graphical file browser and copy out what you want.

If the images fail to mount then performing a fsck might get the data readable (probably best to back up the images before doing this).

Photorec is also a good suggestion from schneidz (see above). Foremost and scalpel can also be used although if the ddrescue went well it shouldn't be that hard.

Best of luck to you.
 
  


Reply

Tags
ddrescue, recover



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] (Ubuntu) How to recover files I deleted now by running rm *? ravisingh1 Linux - Software 5 11-16-2013 02:42 AM
ddrescue running slow after 1TB turkvu Linux - Software 7 09-16-2013 07:41 PM
How to recover data from a broken hard drive (ddrescue)? lshantz Linux - Newbie 15 02-11-2013 08:59 PM
ddrescue and moving files help PiZZLE Linux - Software 9 03-13-2007 08:19 PM
LXer: Recover Data From a dead hard drive using ddrescue LXer Syndicated Linux News 0 11-28-2006 02:03 PM

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

All times are GMT -5. The time now is 09:16 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