|
|
Checksumming? reliable?
|
|
|
|
Mac Elite
Join Date: May 2002
Status:
Offline
|
|
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?
|
|
|
|
|
|
|
|
|
Mac Elite
Join Date: Jan 2003
Location: NYC
Status:
Offline
|
|
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
|
|
|
|
|
|
|
|
|
Mac Elite
Join Date: Aug 2001
Location: Madison, WI
Status:
Offline
|
|
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.
|
|
|
|
|
|
|
|
Posting Junkie
Join Date: Dec 2000
Status:
Offline
|
|
Isn't that what the "verify" phase of burning is for?
|
|
|
|
|
|
|
|
|
Mac Elite
Join Date: May 2002
Status:
Offline
|
|
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.
|
|
|
|
|
|
|
|
|
Mac Elite
Join Date: Dec 2001
Location: Atlanta, GA, USA
Status:
Offline
|
|
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
|
|
|
|
|
|
|
|
Mac Elite
Join Date: May 2002
Status:
Offline
|
|
UNIX? hmmm ... any info on how to use the MD5 or gpg tools?
|
|
|
|
|
|
|
|
|
Mac Elite
Join Date: Dec 2001
Location: Atlanta, GA, USA
Status:
Offline
|
|
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
|
|
|
|
|
|
|
|
Senior User
Join Date: Jan 2000
Status:
Offline
|
|
You don't even need to install gpg to calculate checksums:
% openssl md5 archive.dmg
MD5(archive.dmg)= 98c700d4d2aa74c5a7b9d6c999fd9ece
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Forum Rules
|
|
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
|
|
|
|
|
|