Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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

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

Your Answer


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.