Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 12-17-2007, 02:57 PM   #1
LQ Newbie
Registered: Nov 2007
Location: Hawaii
Distribution: Fedora8
Posts: 6

Rep: Reputation: 0
Strategies for recovering JPEG files from a damaged filesystem

Hi all,

I've recently found myself with what appears to be a damaged ext3 filesystem residing on a logical volume with RAID5 underpinnings.

I have recently uploaded about 500 JPEG files to it from my camera (before the filesystem fell apart). When I examine the bytes residing on the volume, it appears the data is still there.

My question is: What strategies do I use to get these 2-3 megabyte files off of the volume?

I have tried 'foremost', 'photorec', 'magicrescue' and 'RecoverDataLinux' to try to get the files. I get the small files, thumbnails, etc, but cannot get any of the larger files.

What does one do to get any of the larger files?

Thanks for your insight!

Old 12-17-2007, 04:04 PM   #2
Registered: Jul 2003
Location: Miami, Florida, USA
Distribution: Debian
Posts: 848
Blog Entries: 1

Rep: Reputation: 47
I've used foremost. It recovers jpg, avi, mpg files from hard disks, since these files have very consistent headers.
Old 12-17-2007, 04:22 PM   #3
Registered: May 2001
Posts: 29,361
Blog Entries: 55

Rep: Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547
File carvers string together bits of files by looking for the start and end of file. The problem is that finding an end-of-file marker (or any adjacent start of file marker in case the sig doesn't have a footer) does not guarantee file integrity: it's kind of a brute force approach so the result may be missing pieces or stray data may have been trapped in it. IIRC Photorec can set a maximum recovered file size. If you oversize it it may yield more results but does not guarantee image consistency. To "cleanse" the images you may have to resort to stuff like this but that means lotsa work so it depends on the value of the images. And unless you executed all your carving with a readonly mounted system any writing can deteriorate what's there. Do make a copy and work on that if possible. You say you copied it off you cam. Would it be possible to carve images out of that as well?


files, jpeg, lost, 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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help recovering damaged partition matheusleite Linux - Newbie 1 10-10-2007 01:48 PM
Recovering tar files burnt to cd without a filesystem?? mazinoz DamnSmallLinux 2 11-22-2005 06:47 PM
Recovering Files From Another Filesystem eklitzke Linux - General 3 03-14-2005 12:39 PM
Frontend for recovering deleted files from ext3 filesystem jayakrishnan Linux - General 3 12-16-2004 03:21 PM
Recovering data from damaged CD corn Linux - Hardware 4 09-23-2004 01:32 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:46 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration