RESULT EDIT: It would appear that md5sum hashes are calculated in the CPU (obviously). But curroption in the CPU, or any other hardware that feeds the CPU (ex: RAM, or MoBo) can yield sporadic hashes. Basically, if someone else is experiencing this problem, you more than likely need new hardware.
Hi All.
I recently tried testing an iso for integrity and was using a nautilus script that came with Ubuntu Tweak to check the md5sum. Of course it failed and I thought "meh, another bad download". So, just for fun, I decided to use the terminal to check it as well. When I ran that, it gave me a completely different reading fro mthe first (still wrong though). SO this got me to wondering: Is my md5sum hasher broken?
I check a bunch of other .ISOs repeatedly, and after every hash ceck I get different results (for the same FILE)
Here's an example of an old Jaunty .ISO I used.
Code:
$ md5sum ubuntu-9.04-desktop-amd64.iso
e2c3eaa53dc054f7c4dc5fa5d5f54904 ubuntu-9.04-desktop-amd64.iso
$ md5sum ubuntu-9.04-desktop-amd64.iso
5884dc5bd9facfb70b59da5133d4eb0d ubuntu-9.04-desktop-amd64.iso
$ md5sum ubuntu-9.04-desktop-amd64.iso
92e4257032b2898b420a821011f3dd36 ubuntu-9.04-desktop-amd64.iso
$ md5sum ubuntu-9.04-desktop-amd64.iso
a740cb1888a7a70d298a9efc5f1e6bbd ubuntu-9.04-desktop-amd64.iso
These were all run on the same file, a couple of seconds apart.
Now either I'm doing something wrong, the ISO is mutating or I'm expecting the wrong result (which I thought to believe was: it should yield the same hash repeatedly, regardless how many times it is run). The same thing happens with SHA1SUMs.
I read in another thread [here] that hardware issues may affect hash calculations. Could that be the problem?
Can someone shed some light on this for me?
Thanks
EDIT: Tested with sha256sum and sha512sum as well. Same abnormalities
Code:
$ sha256sum ubuntu-9.04-desktop-amd64.iso
f6bc12c506fec6c8df24794034b4533387ae4ff40a932c327ce316b2877b02d9 ubuntu-9.04-desktop-amd64.iso
$ sha256sum ubuntu-9.04-desktop-amd64.iso
8e1b11aca0a5c0efcef655a20945dbd16e3fab81e0248b376be65850f370aa59 ubuntu-9.04-desktop-amd64.iso
$ sha256sum ubuntu-9.04-desktop-amd64.iso
599e859b7d43b3ab552b98a013aff73c7efb2a29883f389a2dfe3cf6ec556d6d ubuntu-9.04-desktop-amd64.iso
Bookmarks