LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-14-2004, 10:41 AM   #1
cougar694u
LQ Newbie
 
Registered: Jun 2004
Posts: 7

Rep: Reputation: 0
Question cksum & md5sum fingerprints change after tar...HELP


I've been testing our backups here at my office. After I write the tar file to the tape drive and remove it, the cksum & md5sum are different. I tried small files at first, with cksum it was different everytime.

If I turned hardware compression off on the st, the md5sum came up the same on a small file. When I tried our 5.5GB tar file, the md5sum came out different. I untar'd the file and pulled everything out of it, as far as I could tell, everything's the same. Should I be alarmed by this?

The only differences are this, the original is named nightly-backup.tar and located in /backups. After it's writen to the tape, it's renamed to lastweek-backup.tar. I pulled the original off the tape and stored in /backups/restore as nightly-backup.tar. Will this cause the differences?

This is what I get from an md5sum of the two:

f9a64b1c9c54e0316141c0f4a85e4ea7 lastweek-backup.tar
3036927f219a752359bf5b005a2e7e99 nightly-backup.tar

This is what I get from a cksum of the two:

251230307 5562952704 lastweek-backup.tar
1523033174 5562952704 nightly-backup.tar

Any help is appreciated.

TIA.

PS
I did a search before posting and couldn't find anything helpful, but I may not know what it is I'm looking for...

Last edited by cougar694u; 06-21-2004 at 02:34 PM.
 
Old 06-15-2004, 10:33 AM   #2
cougar694u
LQ Newbie
 
Registered: Jun 2004
Posts: 7

Original Poster
Rep: Reputation: 0
**BUMP**
 
Old 06-21-2004, 02:34 PM   #3
cougar694u
LQ Newbie
 
Registered: Jun 2004
Posts: 7

Original Poster
Rep: Reputation: 0
Anyone???
 
Old 06-22-2004, 09:38 AM   #4
cougar694u
LQ Newbie
 
Registered: Jun 2004
Posts: 7

Original Poster
Rep: Reputation: 0
Some one on another forum posted:

"I don't have that much tape drive experience, but I think I know what it is. If I recall correctly, the tape doesn't keep an EOF record, and thus it reads until the last of the stored block. Thus, if the tar file's size isn't a multiple of the tape's block size, the read file will have some trailing garbage. Tar will ignore the trailing garbage, but md5sum naturally won't."

Could this be the cause of my differences?
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Backup & Restore Groups and Users jorasmi Slackware 2 03-28-2005 02:24 AM
How to backup & restore the MBR in linux? sgzlit Linux - Newbie 7 03-02-2005 09:07 PM
Backup & Restore chaitu_iiit Linux - Software 2 10-30-2004 12:10 AM
Backup & Restore plan using tar markcasazza Linux - Newbie 1 04-14-2004 01:11 PM
Use of Dump & Restore Pkg For Backup byfaithalone Linux - Newbie 4 10-04-2003 09:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:30 PM.

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