delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/04/13/05:06:17

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,SPF_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <49E302EB.5050202@gmail.com>
Date: Mon, 13 Apr 2009 10:16:27 +0100
From: Dave Korn <dave DOT korn DOT cygwin AT googlemail DOT com>
User-Agent: Thunderbird 2.0.0.17 (Windows/20080914)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: debian-live-500-i386-rescue.iso: FAILED
References: <5029335BDC474F6FAF2AECE45CF4F72F AT p43400e> <49E1A62F DOT 90703 AT debian DOT org> <C55659187DB64F88B924E4E085D570F6 AT p43400e>
In-Reply-To: <C55659187DB64F88B924E4E085D570F6@p43400e>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

David Christensen wrote:

>> When I attempt to verify the checksums related to the "rescue" disk,
>> the ISO image appears corrupt:
>>    2009-04-11 21:00:35 dpchrist AT p43400e /cygdrive/h/data/iso/debian
>>    $ md5sum -c MD5SUMS 2>&1 | grep 'rescue.iso'
>>    debian-live-500-i386-rescue.iso: FAILED
>>    debian-live-500-i386-rescue.iso.list: OK
>>    debian-live-500-i386-rescue.iso.log: OK
>>    debian-live-500-i386-rescue.iso.packages: OK
>> I've downloaded MD5SUMS and debian-live-500-i386-rescue.iso twice,
>> with the same results.

> I ran more some more tests:
> 
> 2009-04-12 08:13:07 dpchrist AT p43400e /cygdrive/h/data/iso/debian
> $ md5sum debian-live-500-i386-rescue.iso
> b02c3606a3f35f160a591fe1154aa362 *debian-live-500-i386-rescue.iso
> 
> 2009-04-12 08:13:39 dpchrist AT p43400e /cygdrive/h/data/iso/debian
> $ grep 'rescue.iso$' MD5SUMS
> b02c3606a3f35f160a591fe1154aa362  debian-live-500-i386-rescue.iso
> 
> 2009-04-12 08:42:26 dpchrist AT p43400e /cygdrive/h/data/iso/debian
> $ md5sum -c MD5SUMS 2>&1 | grep 'rescue\.iso'
> debian-live-500-i386-rescue.iso: FAILED
> debian-live-500-i386-rescue.iso.list: OK
> debian-live-500-i386-rescue.iso.log: OK
> debian-live-500-i386-rescue.iso.packages: OK
> 
> md5sum computes the same checksum as what is contained in MD5SUMS, but
> prepends an asterisk to the filename on output.  So, the *.iso file is
> okay, but "md5sum -c MD5SUMS" is somehow broken (?).

  The asterisk means that md5sum has detected the file is binary and opened it
in binary mode.  The lack of an asterisk on the other files means that md5sum
has identified them as text and opened and summed them in text mode.  This is
deliberate, it means that the same text document checksums the same regardless
of line-end style, which is generally what you want when verifying download
integrity - e.g. in case ftp text mode translation has been in effect.

  The reason this situation is causing surprise on the Debian list is because
in Linux, there's no distinction between text and binary mode.  I don't know
if it even supports binary mode, because I would have expected it to use
binary mode everywhere rather than nowhere.

  As to whether md5sum is right to fail, well I think it has to draw your
attention to the fact that the modes don't match even though the checksums do,
because that means "something weird is going on and I don't understand why".
I'm pretty sure your download is good though!

    cheers,
      DaveK


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019