Gentoo Archives: gentoo-user

From: Zac Medico <zmedico@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] sha1sum of cd
Date: Tue, 09 Aug 2005 00:02:06
Message-Id: 42F7F178.8050301@gmail.com
In Reply to: [gentoo-user] sha1sum of cd by Jorge Almeida
1 Jorge Almeida wrote:
2 > I've downloaded a KNOPPIX cd and burned it onto a cd via cdrecord (k3b
3 > having recently evolved to
4 > brain death). The command was
5 > cdrecord dev=/dev/hdc KNOPPIX_V3.9-2005-05-27-EN.iso
6 > The sha1sum of the downloaded image is
7 > 51294cb7439a127efd36f819f636208163988972, which is what it's supposed to
8 > be.
9 > The cd boots, but something seems wrong ('ls /etc' hangs forever, and
10 > segfaulted once). So, maybe the burning was not right. I tried
11 > $ cat /dev/hdc|sha1sum
12 > cat: /dev/hdc: Input/output error
13 > 8d792624cfe365a1b8ee1e9f06fe3520c28d91cc -
14 > Then,
15 > $ dd if=/dev/hdc of=knoppix.iso
16 > dd: reading `/dev/hdc': Input/output error
17 > 1425088+0 records in
18 > 1425088+0 records out
19 >
20 > $ sha1sum knoppix.iso
21 > 8d792624cfe365a1b8ee1e9f06fe3520c28d91cc knoppix.iso
22 > Last, I followed Zac Medico's suggestion in the "md5sum error" thread:
23 > $ readcd dev=/dev/hdc sectors=0-$(isoinfo -d -i /dev/cdrom | grep
24 > "Volume size is:" | grep -o "[0-9]*$") f=- | sha1sum
25 > Read speed: 7042 kB/s (CD 40x, DVD 5x).
26 > Write speed: 2818 kB/s (CD 16x, DVD 2x).
27 > Capacity: 356298 Blocks = 712596 kBytes = 695 MBytes = 729 prMB
28 > Sectorsize: 2048 Bytes
29 > Copy from SCSI (1,0,0) disk to file '-'
30 > end: 356296
31 > addr: 356296 cnt: 84
32 > Time total: 160.792sec
33 > Read 712592.00 kB at 4431.8 kB/sec.
34 > 51294cb7439a127efd36f819f636208163988972 -
35 >
36 > So, "there is order in this madness".
37 >
38 > Can someone explain the meaning of this?
39 >
40 >
41 > Jorge Almeida
42
43 Well, readcd works well for a cd while dd and cat do not. ;-)
44
45 The ls /etc hang and segaufault sounds like a unionfs problem (known bugs). If you do dmesg|tail you will probabably see evidence of a unionfs error/oops.
46
47 I've been using a unionfs snapshot from 4/19 for the longest time because I have found later versions to be too unstable for my liking.
48
49 Zac
50 --
51 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] sha1sum of cd Jorge Almeida <jalmeida@××××××××××××.pt>