Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Community Lounge > Wibble
FedoraForum Search

Forgot Password? Join Us!

Wibble A place to have a sensible chat, about anything non linux related. Please remember that political and religious topics are not permitted.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 16th June 2012, 05:47 PM
tashirosgt Offline
Registered User
 
Join Date: Aug 2004
Posts: 3,857
linuxfirefox
Recovering files from recovered files

Programs to recover files from hard drives often output thousands of files which are only identified by a rough classification (bin, exe, etc.) and given cryptic names like fb23404. Are there programs that sort though such a collection of files and find particular types of data files (like PDFs, MS-word documents etc.)?

I haven't faced this problem myself, but a friend has a collection files recovered from his broken MS-Windows laptop. He needs to find a few Quicken data files. If I think in terms of LInux, the solution would be to determine some strings that characterize this type of file, hopefully strings that appear in a header in the file. Then one could use standard commands (perhaps grep) to search through the files and find those that had the strings. However, given that this is such a common problem, I'd think that there is already software written to do such a task. In fact, I'd think that someone would have writen MS-Windows software to do it, but I haven't used MS-Windows in years.
__________________
"Never let the task you are trying to accomplish distract you from the study of computers."
Reply With Quote
  #2  
Old 16th June 2012, 06:49 PM
jpollard Offline
Registered User
 
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 6,149
linuxfirefox
Re: Recovering files from recovered files

There is always the "file" utility.

It isn't fast, but that is because it has to read the first block of every file and match it against a fairly long "magic" list (/usr/share/misc/magic*. It recognizes about 12,000 different types of files used.

I'm not sure if it will identify Quicken files though. It is possible for you to create your own definition. The file utility uses the first n bytes of a file - the "n" is determined from the pattern being matched. This may allow you to define a custom match, and let it identify the unknown files.

For information, see "man file" and "man magic" (for how to specify patterns).

It works fairly well, and is much faster that grep or awk (which try to read the entire file).

Last edited by jpollard; 16th June 2012 at 06:52 PM.
Reply With Quote
  #3  
Old 16th June 2012, 07:39 PM
Adunaic's Avatar
Adunaic Offline
Registered User
 
Join Date: Mar 2009
Location: Lancaster, UK
Posts: 886
linuxfirefox
Re: Recovering files from recovered files

jpollards suggestions are great but there maybe simpler ways. You mention that there is rough classification, you could search for with a certain extention if they are kept.

Using some pipes you could always filter all files ending in *.txt and grep them for ceratin strings.

I wrote a little on this with regards to data recovery and image files in the following thread: http://forums.fedoraforum.org/showthread.php?p=1585584
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Recovering lost files tech291083 Using Fedora 5 17th October 2007 03:19 PM
Recovering files after rm -rf Daniel114 Using Fedora 6 12th August 2007 09:51 AM
Recovering fc4 files with Knoppix 4.0.2 pamount Using Fedora 8 15th March 2006 02:47 AM
Recovering files after rm -rf Adesso Using Fedora 1 22nd August 2005 09:41 PM
HELP! REcovering deleted files. jeremie Using Fedora 2 25th January 2005 02:20 PM


Current GMT-time: 06:28 (Wednesday, 19-06-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat