Subject: Re: reading directly from an ATAPI cd-rom device
To: None <netbsd-users@netbsd.org>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: netbsd-users
Date: 10/20/2001 19:46:31
On Sat, Oct 20, 2001 at 10:48:04AM +0000, Jim Breton wrote:
> On Sat, Oct 20, 2001 at 11:54:40AM +0200, Wojciech Puchar wrote:
> > dd if=/dev/rcd0d bs=2k|md5sum -
>
> Thanks, but did you see the rest of my message?
>
> "On NetBSD however, the disc spins and it appears to be working, but it
> takes forever (about 33 minutes with a 48X drive); and when it finally
> stops, it gives me the following error:
>
> md5: /dev/cd0a: Invalid argument
>
> I have tried cd0a, cd0d, rcd0a, and rcd0c [sic]; the only difference is
> that if I use the "raw" device, it returns the error almost immediately,
> as opposed to first reading for a long while."
>
> Sending the output to md5 doesn't work if there is no output....
With dd it'll work.
md5sum on the raw device doesn't work because it doesn't read in 2k
chuncks.
md5sum from the block device doesn't work because of a problem with the
2k block size the CD uses (ws 512).
--
Manuel Bouyer <bouyer@antioche.eu.org>
--