Recovering JPGs

Dariusz J. Garbowski thuforuk at yahoo.co.uk
Tue Jun 27 01:07:34 UTC 2006


On 06/27/2006 01:29 AM, gabrielle harrison and Paul van den Bergen wrote:
> Hi all,
> 
> I'm looking for some JPG repair tools or HDD data recovery tools.
> 
> My system is not what you'd call pristine. The HDD is a little suspect.  
> This seems to be confirmed in that a bunch of my photos have started to 
> not read very well.
> 
> digital photos that are around 1.3MB each.
> first noticed using gThumb.
> 
> symptom is that the thumbnail first takes for ever to load, then only 
> part of the image is displayed and an unexpected EoF error (or similar) 
> occurs.
> 
> also seems to take for ever for e.g. tar to read the image files.
> 
> All the photos affected so far have been in the same directory. All the 
> photos were tranfered from another disk at some point (now not 
> available) all in one go so I suspect a contiguous block of HDD was 
> used.  I suspect that the disk surface has some problems, though running 
> a disk diagnostic tool found no obvious errors.
> 
> Presuming that I can back up the system OK I will want to recover the 
> photos if I can.  I suspect that since the files were all written in one 
> go and that the file size is as expected that only a small transcription 
> error or missing data is the problem and that it should be theoretically 
> possible to recover the rest of the file.
> 
> the question I have is - are there any tools that make this possible.
> 
> I guess I need two tools really.
> 
> 1) recover as much of the file from the HDD as possible.

Foremost is your friend here:
http://foremost.sourceforge.net/
http://pcburn.com/data_recovery-Foremost.php

I have used it myself to recover photos from an image of badly failing 
drive I made using dd command. I suggest you to make an image of the 
suspect drive first since the more you use failing drive the more likely 
it is it will fail completely and/or more data gets corrupted. Perhaps 
better than dd is ddrescue 
(http://www.gnu.org/software/ddrescue/ddrescue.html) since

a) it's designed for rescue purpose
b) with dd you have to make get all the switches right or you may end up 
with truncated file when dd encounters read errors

Once you have the image, you can mount it using loop, e.g.:

# mount -o loop disk1.iso /mnt/disk

and try read your images first. If you are lucky this should do the 
trick! If you are not proceed with using Foremost on the image file.

Good luck!
Dariusz




		
___________________________________________________________ 
To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com





More information about the kubuntu-users mailing list