Subject: ATAPI CD-ROM questions
To: None <port-i386@netbsd.org>
From: Brian C. Grayson <bgrayson@marvin.ece.utexas.edu>
List: port-i386
Date: 03/15/1999 21:48:56
I just picked up an IDE CD-ROM drive today, and I can
actually use it! Many thanks to those involved (primarily
Manuel, I assume).
I have a few questions.
1. At the first major access, I get "lost interrupt" messages,
the machine basically freezes for 30 seconds to a minute,
and DMA is turned off ("downgrading to PIO mode 3"). Is
there a known fix for this? The drive is a Memorex CRW-1622
CD-RW drive, 2x writes, 6x reads. This is on i386, of fairly
recent -current vintage. The autoconf says the drive
supports DMA mode 1. The drive is master on the secondary
string, and my IDE disk is master on the first string.
2. I managed to create a multisession CD. But how do I access
the second session's stuff? A mount only mounts the first
session, and disklabel isn't faking up an entry for the second
session.
3. I was thinking about accessing the second session directly
by editing the faked disklabel, but it appears the parameters
in the disklabel don't make sense. It says:
sector size of 2048
100 sectors/track
1 track/cyl
(and thus 100 sectors/cyl)
5 cyls
total 429 sectors.
That makes an 878KB CD-ROM, not 650MB. And it says the first
session took 1716 2K sectors, or ~3.4 KB, while the session
was really just over 10 times as big. So my idea of size
doesn't match with the computer's.
I tried adding a bogus /dev/cd0e, and creating that device,
but my attempts were fruitless -- it would refuse to mount,
presumably because the superblock didn't appear valid because
I had my offsets wrong due to the ~10x factor mentioned
above.
TIA
Brian