When a 'corrupt' disk image file really isn't corrupt

I recently ran into a problem trying to open a downloaded .dmg (disk image) file: I kept getting a corrupt dmg file message when trying to open it. I downloaded it from several other locations, but the file still refused to open. I checked with a friend of mine on another Mac OS X system, and he downloaded and opened the dmg file with no problem. We compared md5sums of the file, and they were identical.When I tried dragging the file into Disk Utility's left section, and then doing a verify on the dmg file, I'd get a Verify volume failed with error Invalid request (-9998) message. If I did a hdutil attach filename.dmg, it would give the following error:Initializing...Verifying​......[trimmed]...Veri​fication completed...calculated CRC32 $ABCDEF12, expected CRC32 $00000000Finishing...hdiut​il: attach failed - corrupt imageNote the expected CRC32 checksum was zero (the calculated value was an eight-digit hex, rep...

published on Tuesday, the 12. December 2006, macosxhints