Directory is Same but Checksum is different


 
Thread Tools Search this Thread
Special Forums Hardware Filesystems, Disks and Memory Directory is Same but Checksum is different
# 1  
Old 01-30-2007
Directory is Same but Checksum is different

Hello,

I am performing a checksum on our software we have installed on a unix solaris 2.0 os.

If the checksum generated report is not the same as a 'Gold' report we have on disk. Then our software is deleted, and reinstalled.

The problem I am having is if you run the program again, the checksum report is still different from the gold_report.

And on different machines we get different checksum's for identical directories.!!!

Does anyone know why this is?

any help would be appreciated,
Justin
# 2  
Old 01-30-2007
Please clarify what you mean by "getting a checksum" for a directory and what an "identical directory" is supposed to be. If you are literally running checksum on a directory, and then comparing that value to another checksum on another directory, I would not expect them to match. Two directories in the same filesystem, each having hard links to the same exact files have a shot at matching checksums. But even these may not be identically structured.
# 3  
Old 01-30-2007
Cheers

Cheers for the reply. What I am doing is running 'sum' on software on a unix machine and placing the checksums into a file.

Running a 'diff' command on the generated file and a 'gold' file

If these are different, then delete all the software and reinstall.

If I then run check sums again, it finds differences again (even though the install generated the 'gold' file).

One thing i have discovered is:
These are on empty directories. Is it because of the metadata that directories hold?

thanks,
# 4  
Old 01-30-2007
I don't know what running "sum on software" means. I don't know what item is being compared to what other item. Are there even two items involved? Are you running sum on an item and later running sum again on the same item?

Because you are running sum on an empty directory, it is clear that you are actually using the directory as input. (As opposed to running sum on the contents of the directory.)

You say "Then our software is deleted, and reinstalled.". You do this because you're not happy with the sum on an empty directory?

A directory entry is a name and an inode number. A directory has many of these. A directory entry is deleted by clobbered the beginning of the name. Directories grow but do not shrink. Two empty directories may be of different sizes. And they may have differents shards of deleted entries laying around. Now put two identical entries in each directory. You may overlay the only differing shard. Or you may still have seemingly identical directories with differing sums.

Because of the tree structure of a file system, there is no legal way to create two identical directories although it can be done through trickery. So I still have no clue as to what you are doing. Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

Gunzip tar A directory checksum error on media

Hi, what is the directory checksum error ? # sed 's/^M$//' test4_bkp_19Jan13.tgz | tar -tvf - tar: 0511-169 A directory checksum error on media; -265745505 not equal to 76225. # mv test4_bkp_19Jan13.tgz test4.gz # gunzip < /ebs2/test4.gz | tar -xvf - tar: 0511-169 A directory checksum... (4 Replies)
Discussion started by: filosophizer
4 Replies

2. IP Networking

Wireshark UDP checksum bad checksum

Hello I am communicating with two devices using my computer over UDP protocol. The application is running fine. When I monitored the UDP traffic using Wireshark software, I found that there were too many Checksum errors. Please find attached the png file showing this error. I am about to... (0 Replies)
Discussion started by: AustinCann
0 Replies

3. Solaris

md5 checksum what does it do

Hello good people, I came across md5 checksum. Can anyone please explain to me what it does and if possible an example of how to use it? Thank you very much (1 Reply)
Discussion started by: cjashu
1 Replies

4. Shell Programming and Scripting

Checksum+SFTP

Hi ALL, I use solaris OS and SFTP to get/put files from remote server.I use the below command , sftp user@host<<EOF cd "dir" get --checksum "filename" EOF I am getting a strange error as " get --checksum INVALID paramter". It has been working succesfully since last 3 years but all of a... (1 Reply)
Discussion started by: mohanpadamata
1 Replies

5. Shell Programming and Scripting

Extracting the checksum

I wanted a script that can give the checksum of a particular zipped file. Can somebody help me in writing a shell script in getting the checksum of a particular tar file. (1 Reply)
Discussion started by: vkca
1 Replies

6. Solaris

checksum

Anyone can tell me the different between "cksum" and "sum" command on Solaris? I read the man pages but still not get it. And how to display the md5 checksum for a file. Thanks, (1 Reply)
Discussion started by: redstone
1 Replies

7. Shell Programming and Scripting

"directory checksum error" when attempting to install tcl

OS: HP-UX Programs I want to install: expect and tcl I'm lost. I bought the book. I began reading the book. I want to install expect. I've been able to download the .z, and extract it successfully. But, of course, it apparently needs tcl and possibly tk also, and ... I... (0 Replies)
Discussion started by: instant000
0 Replies

8. UNIX for Dummies Questions & Answers

directory checksum error

Hi, I have a tar file with naed ass bcs.tar.gz downlaoded to my work station and It contains all the .c files and .o which i needed. when i am trying to unzip this one i am facing directory checksum error. What does it mean.How to resolve this. I tried with tar -xf and tar -tvf... (2 Replies)
Discussion started by: jagan_kalluri
2 Replies

9. SCO

checksum

Does anyone know the answer to this? When I run "sum -r" on a file that I've down loaded from the sco website, the 1st set of numbers differs from the checksum on the download page but the 2nd set matches. If I try to install the patch, I get errors. Anyone has an answer? (3 Replies)
Discussion started by: jn5519
3 Replies

10. UNIX for Dummies Questions & Answers

directory checksum error

Display warnning:directory checksum error in the end of Decompress the bag (0 Replies)
Discussion started by: renrongwen
0 Replies
Login or Register to Ask a Question