Switch to full style
Data recovery and disk repair questions and discussions related to old-fashioned SATA, SAS, SCSI, IDE, MFM hard drives - any type of storage device that has moving parts
Post a reply

File Testing

September 4th, 2008, 17:35

Does any one know of any decent file testing software that can be used to determine the quality of recovered files?

Re: File Testing

September 4th, 2008, 17:37

probably a bad answer but we put them on a ftp or http site and let the client browse them, they then have a 7 day guarantee to report bad files that we help them with. works fine.

Re: File Testing

September 4th, 2008, 18:38

How would you write a program that would be able to determine the quality of a file?

Re: File Testing

September 4th, 2008, 18:54

As I didn't find a complete solution for this problem either, I use different tools.
For image files, I just let Windows to create thumbnails for the files. As soon as it finished, the images not having a thumbnail are usually bad. (I've actually tried one app that was for testing JPG files, but didn't find the corrupted images :) )
For Word, Excel, etc files, I've just written a macro to load all the files and test if they're ok.

kp

Re: File Testing

September 4th, 2008, 19:11

In my quite limited experience good thumbnails don't mean good files.

In never understood how jpg's could thumbnail ok (showing entire image) but that same image could be corrupted, like half appearing. Does the structure of a JPG have a it's own thumbnail embedded in there?

Re: File Testing

September 4th, 2008, 21:33

mediaman wrote:Does the structure of a JPG have a it's own thumbnail embedded in there?


Yes, many JPG's have embedded TN's.

Re: File Testing

September 4th, 2008, 23:42

At some times if u did a soft wich verified an file for example "Office document" u algortihm could check the header, but what happend if on the middle of hex code , was damaged on the extraction process i.e bad sectors, bad media, etc your soft or any soft could, said its ok, where´s not, its hard , and what about the owner programs, for example here on mexico , many enterprise use an accountan program wich its only used on this country, the file wich its generated, for accounts, its very complex and doesnt has a header or a structure , so u cannot got a way to determine if file its correctly or no until, open it or mount it with the owner program, or maybe with an algorithm CRC, wich could be added while was saving and after that check the CRC?? well its an idea :roll:


Regards

Re: File Testing

September 5th, 2008, 1:57

For JPGs and media files I have written some software that can also fix the mess keeping the other data, like shoot date, camera model etc. , for other kind of files sometimes manual check is the only solution. It is a service the customers pay for. I have made my custom tools during the years.

Re: File Testing

September 5th, 2008, 4:15

There is some software that can test the headers of files, but like you say it can only give an indication of how whether the file is good or bad.

http://www.datarecoveryengineer.com

It looks like it is still in beta, so could be worth testing.

Re: File Testing

September 5th, 2008, 10:17

i had check this program, but its the same, only check headers, im think its impossible to check the integrity fully without open it , by that reason, the header could be good, but on the middle or end of code, bad code

Regards

Re: File Testing

September 5th, 2008, 13:47

You're right, thumbnail-based testing is not accurate, but it gives a rough estimation of the overall quality of the recovered files. That's usually enough to see if I have to try harder or not :)
In case accurate results are needed, I'd try scripting around some good command-line image processing tool (like imagemagick), or better, code a small utility based on libjpeg / libpng / whatever, that does detect and warn about decompression errors returned by the library functions.
As for unknown file formats, there's no magic, at least I don't know any. I think you cannot detect if a file is correct in case you don't know the criteria of correctness for that file format.

Re: File Testing

September 5th, 2008, 13:48

Agreed. I went to that website, read the description, and was completely baffled. I'd love to find a tool that can test, and even repair batches of .JPG files.

Re: File Testing

September 6th, 2008, 8:05

I think your right beto, :D any program is not going to be 100% accurate but if you can get something that is going to be in the high nineties most of the times then perhaps the header testing is the way to go.

I can take mediaman’s comments on board but when you are having to take time out for a lot of customers, to test files that they are not sure they know the names of or locations of the files that they want tested then it takes a lot of time which could be better spent working on other recoveries. Random testing is a long way from accurate testing so that doesn’t help.

Yes you can say to the customer here’s your files please test them, but then you are relying on the customers honesty and if they are paying for it after they have the data then there’s not a lot you can do if they claim a good file is bad. :evil:

Re: File Testing

September 6th, 2008, 8:07

Thanks Scratchy, I'll check it out.

Re: File Testing

September 8th, 2008, 17:09

File verification tools.

A zip verify tool can be small K files, can verify zips quickly. The same is for near (99.9%) of every other file, find the decompression/verify tool, the job is made easy. We could use the site files area to store and share such files, that are found to work. With many such small K size tools needed, a gui upgradable. For any new tools added via simple script command line or better.

Re: File Testing

September 8th, 2008, 17:36

IMHO WINRAR has the best built in zip tester

Re: File Testing

September 8th, 2008, 19:29

Refering to small cli tools the could be used via batch (.bat), cli or gui. For gui click and check all files, that it is capable of checking the recovered files for fitness.

Winrar cannot check jpg, xml and other files, this idea needs many small cli executables. Although the cli rar tool can verify archives that it supports. It is also smaller in size (as needed) than winrar and can be used with a cli, batch, gui.
Post a reply