LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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, 11:41 AM   #1
ostene
Member
 
Registered: Jul 2006
Location: Lidingo, Sweden
Distribution: Scientific Linux 7.2, KDE
Posts: 36

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, 11:44 AM   #2
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,027

Rep: Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845
i've had good luck with photorec.
 
Old 05-09-2014, 11: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


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


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