Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Applications > Checksumming? reliable?

Checksumming? reliable?
Thread Tools
headbirth
Mac Elite
Join Date: May 2002
Status: Offline
Reply With Quote
Aug 7, 2003, 05:15 PM
 
Hi, I was wondering if there was a tool that could check the files I have burned to a CD or put in a DMG, against the originals on the drive to make sure they are O.K. before I delete the originals?
     
MaxPower2k3
Mac Elite
Join Date: Jan 2003
Location: NYC
Status: Offline
Reply With Quote
Aug 7, 2003, 05:28 PM
 
if such an app doesn't exist, i'd program a little app to do this. it wouldn't be terribly difficult and i'm starved for ideas
     
C.J. Moof
Mac Elite
Join Date: Aug 2001
Location: Madison, WI
Status: Offline
Reply With Quote
Aug 7, 2003, 05:52 PM
 
You could do diff from the command line. Diff path/to/file/1 path/to/cd/copy >output_file

The output file will tell you if they're the same. I haven't tried this, but it seems legit to me.
OS X: Where software installation doesn't require wizards with shields.
     
CharlesS
Posting Junkie
Join Date: Dec 2000
Status: Offline
Reply With Quote
Aug 8, 2003, 03:12 AM
 
Isn't that what the "verify" phase of burning is for?

Ticking sound coming from a .pkg package? Don't let the .bom go off! Inspect it first with Pacifist. Macworld - five mice!
     
headbirth  (op)
Mac Elite
Join Date: May 2002
Status: Offline
Reply With Quote
Aug 13, 2003, 09:49 AM
 
Yeah ... I assumed that's what Verify and Checksumming were for. But I have had some discs verify correctly only to find the files would not open later.

makes me a little uneasy burning something and then deleting it from my drive after the disc verifies.
     
Arkham_c
Mac Elite
Join Date: Dec 2001
Location: Atlanta, GA, USA
Status: Offline
Reply With Quote
Aug 13, 2003, 09:52 AM
 
You could do a simple MD5 hash on the binary. Or for that matter, gpg encrypt it. Both of these produce a reliable, verifiable checksum.
Mac Pro 2x 2.66 GHz Dual core, Apple TV 160GB, two Windows XP PCs
     
headbirth  (op)
Mac Elite
Join Date: May 2002
Status: Offline
Reply With Quote
Aug 13, 2003, 12:03 PM
 
UNIX? hmmm ... any info on how to use the MD5 or gpg tools?
     
Arkham_c
Mac Elite
Join Date: Dec 2001
Location: Atlanta, GA, USA
Status: Offline
Reply With Quote
Aug 13, 2003, 12:21 PM
 
Originally posted by headbirth:
UNIX? hmmm ... any info on how to use the MD5 or gpg tools?
I took a file on my system, HelloThere.tgz. I made a copy (HiThere.tgz), and then changed one byte using HexEdit. I then calculated checksums on the two files:

Code:
[dshaw@flybook ~] gpg --print-md MD5 HelloThere.tgz HelloThere.tgz: B8 47 90 A8 E1 04 FA 63 9A CC 18 25 FA 18 03 50 [dshaw@flybook ~] cp HelloThere.tgz HiThere.tgz [dshaw@flybook ~] gpg --print-md MD5 HiThere.tgz HiThere.tgz: B8 47 90 A8 E1 04 FA 63 9A CC 18 25 FA 18 03 50 [dshaw@flybook ~] open -a HexEdit !$ open -a HexEdit HiThere.tgz [dshaw@flybook ~] gpg --print-md MD5 HiThere.tgz HiThere.tgz: CA F2 A8 34 CF 20 E3 23 B4 D5 BC 32 27 4A 9D 82 [dshaw@flybook ~] gpg --print-md SHA1 HiThere.tgz HiThere.tgz: BA75 AA7B 579A 04CD 73BF 22C9 AC1C EBF5 BF07 99C1 [dshaw@flybook ~] gpg --print-md SHA1 HelloThere.tgz HelloThere.tgz: D1FE BC45 C783 8BD8 8FE2 6B8F DAC3 8755 4FD3 A0E4
Mac Pro 2x 2.66 GHz Dual core, Apple TV 160GB, two Windows XP PCs
     
fitter
Senior User
Join Date: Jan 2000
Status: Offline
Reply With Quote
Aug 13, 2003, 12:43 PM
 
You don't even need to install gpg to calculate checksums:

% openssl md5 archive.dmg
MD5(archive.dmg)= 98c700d4d2aa74c5a7b9d6c999fd9ece
     
   
 
Forum Links
Forum 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
Top
Privacy Policy
All times are GMT -4. The time now is 07:10 AM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,