md5sum command calculate different code for the same file

Bug #955624 reported by Birol Bora
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
coreutils (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

I'm using Ubuntu 11.10
When I execute md5sum command its calculate different code for the same file

birol@trax:~/Downloads$ uname -a
Linux trax 3.0.0-16-generic #28-Ubuntu SMP Fri Jan 27 17:44:39 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

birol@trax:~/Downloads$ ls -l v1.img
-rw-rw-r-- 1 birol birol 1796509184 2012-03-15 01:36 v1.img

birol@trax:~/Downloads$ md5sum v1.img
e8a2c652770a2da0fd93c981a79a8ba1 v1.img
birol@trax:~/Downloads$ md5sum -b v1.img
d692965aa21d43b40e7c6e821f721159 *v1.img
birol@trax:~/Downloads$ md5sum v1.img
baa9389d2ecfecf8d405a22565d1565b v1.img
birol@trax:~/Downloads$ md5sum v1.img
e683b1e5bba99dee3ecd35765f0fc368 v1.img
birol@trax:~/Downloads$ md5sum v1.img
ee0d31564b0a0508e83766c31fc18236 v1.img
birol@trax:~/Downloads$ md5sum v1.img
0c821ea3600f13c5b9d14fc12f329773 v1.img

birol@trax:~/Downloads$ ls -l v1.img
-rw-rw-r-- 1 birol birol 1796509184 2012-03-15 01:36 v1.img

Birol Bora (bora-birol)
tags: added: md5sum
tags: added: coreutils
Revision history for this message
Jim Meyering (meyering) wrote : Re: [Bug 955624] [NEW] md5sum command calculate different code for the same file

Birol Bora wrote:
> Public bug reported:
>
> I'm using Ubuntu 11.10
> When I execute md5sum command its calculate different code for the same file
>
> birol@trax:~/Downloads$ uname -a
> Linux trax 3.0.0-16-generic #28-Ubuntu SMP Fri Jan 27 17:44:39 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
>
> birol@trax:~/Downloads$ ls -l v1.img
> -rw-rw-r-- 1 birol birol 1796509184 2012-03-15 01:36 v1.img
>
> birol@trax:~/Downloads$ md5sum v1.img
> e8a2c652770a2da0fd93c981a79a8ba1 v1.img
> birol@trax:~/Downloads$ md5sum -b v1.img
> d692965aa21d43b40e7c6e821f721159 *v1.img
> birol@trax:~/Downloads$ md5sum v1.img
> baa9389d2ecfecf8d405a22565d1565b v1.img
> birol@trax:~/Downloads$ md5sum v1.img
> e683b1e5bba99dee3ecd35765f0fc368 v1.img
> birol@trax:~/Downloads$ md5sum v1.img
> ee0d31564b0a0508e83766c31fc18236 v1.img
> birol@trax:~/Downloads$ md5sum v1.img
> 0c821ea3600f13c5b9d14fc12f329773 v1.img
>
> birol@trax:~/Downloads$ ls -l v1.img
> -rw-rw-r-- 1 birol birol 1796509184 2012-03-15 01:36 v1.img

Thanks for the report.
I've seen this sort of problem a couple of times.
So far, every time it has been due to faulty hardware.

To cross-check try running the openssl command:

    openssl md5 v1.img

Revision history for this message
Birol Bora (bora-birol) wrote :

Thank you Jim,

I check openssl md5 v1.img command , everytime i see different checksums.
I remove Ubuntu OS, install another stable Linux Distribution with partition again default install options but problem still continues.

md5sum works well, if file size less then 256 MB.

I think the Corsair Force 3 SSD 60 GB(Firmware 1.3) is causing the problem or SSD partition alignment problem.
How to make SSD compatible stable partition aligment ?
How to solve problem ?

Revision history for this message
Birol Bora (bora-birol) wrote :

The problem is being caused by faulty memory. I scanned the memory with a memory test tools. I've found a memory card is defective and replaced with a new one. Problem solved.

Changed in coreutils (Ubuntu):
status: New → Invalid
Revision history for this message
Jim Meyering (meyering) wrote : Re: [Bug 955624] Re: md5sum command calculate different code for the same file

Birol Bora wrote:
> The problem is being caused by faulty memory. I scanned the memory with
> a memory test tools. I've found a memory card is defective and replaced
> with a new one. Problem solved.
>
> ** Changed in: coreutils (Ubuntu)
> Status: New => Invalid

Thanks for letting us know.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.