Discussion Locked

sum bin files

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I have to bin files and both sumed up the same but on is corrupted while the other is not. Is there another way to check a bin file for corruption other than using sum or cksum?

5 replies

by djudice

How about using 'sum -l filename'. This will give you the longer 32 bit checksum and maybe a little more details.

Good Luck!!! I'll keep looking though. Interesting.

David

by jay allen

What shell/os version are you using? In the ksh on BSD 4.4, the chksum gives you the 32 bit CRC. However, you want to compare attributes of bin files. So the best way is to create a script to record CRC, access time, and modify time of each bin in atext file. Next run the script with the suspecious file as an argument. The script should compare the preceeded values with the recorded values in your text file. Just remember to set up your text file to compare values to, without it your sunk. This may sound complicated but will save work in the future. Good Luck!!

This discussion is closed to new replies.