Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

How can I perform Testdisk or fsck on HDD image file created by ddrescue? Can I mount it and then will it be writable drive? First thing I would like to try is to recover superblock on image.

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

For testdisk, you should be able to use "testdisk image.img" and it'll come up in your drive selection.

Google suggests that you should be able to run "fsck image.img" and have it work as well. Derived from http://ubuntuforums.org/archive/index.php/t-1285560.html

share|improve this answer
    
The changes will modify .img file or they will be only in memory(temporary)? –  Michael Feb 10 '12 at 8:40
    
They would modify the .img file. What I did in my case was take the img and copy it to a second img, then ran rescue and tests against the second one, in case rescue attempts further mucked up the damaged filesystem. You can use md5 checksums to verify the copy and again to verify changes were made to the second image. –  Bart Silverstrim Feb 10 '12 at 13:24
    
Yea I did the same. Thanks! –  Michael Feb 10 '12 at 14:09
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.