Extract and repair corrupt .jpg files due to bad sectors

Using PhotoRec to recover lost data
Forum rules
When asking for technical support:
- Search for posts on the same topic before posting a new question.
- Give clear, specific information in the title of your post.
- Include as many details as you can, MOST POSTS WILL GET ONLY ONE OR TWO ANSWERS.
- Post a follow up with a "Thank you" or "This worked!"
- When you learn something, use that knowledge to HELP ANOTHER USER LATER.
Before posting, please read https://www.cgsecurity.org/testdisk.pdf
Locked
Message
Author
gekonvoo
Posts: 1
Joined: 04 Oct 2019, 17:31

Extract and repair corrupt .jpg files due to bad sectors

#1 Post by gekonvoo »

Hi all!

I've managed to clone my failing NTFS hard drive to another hard drive using ddrescue.
Then, I've analysed what files are corrupt due to bad sectors using ddrutility's ddru_ntfsfindbad on the cloned copy.
Next, I need to extract and repair these files from the cloned copy.

Content of ntfsfindbad.log:

Code: Select all

inode=21247  errors=0028  errorsize=126464  FILE   name=./path/to/corrupt_file1.jpg
inode=24402  errors=0031  errorsize=257536  FILE   name=./path/to/corrupt_file2.jpg
Are TestDisk & PhotoRec the right tools for my task?
If yes, how can I extract and repair these exact files?
Also, would it be helpful or damaging to run chkdsk on the cloned copy first / afterwards?

Thank you!

User avatar
cgrenier
Site Admin
Posts: 5432
Joined: 18 Feb 2012, 15:08
Location: Le Perreux Sur Marne, France
Contact:

Re: Extract and repair corrupt .jpg files due to bad sectors

#2 Post by cgrenier »

There is no way to find my missing data from the corrupted files but PhotoRec may be useful to find a copy of the lost files or at least a thumbnail of this file...

Locked