Re: CDrom, nodisc, eject

From: Khimenko Victor (khim@sch57.msk.ru)
Date: Sat Apr 08 2000 - 21:31:07 EST


In <Pine.LNX.4.21.0004081457400.21448-100000@filesrv1.baby-dragons.com> Mr. James W. Laferriere (babydr@baby-dragons.com) wrote:

> Hello All,

> On 8 Apr 2000, Pierfrancesco Caci wrote:
>> :-> "Wakko" == Wakko Warner <wakko@animx.eu.org> writes:
>> > I'm using a Yamaha 8424S scsi on an adaptec aha-2940U with 2.2.13 kernel no
>> > patches. eject scd5 (the cdrw I listed above) with no cd in the drive
>> > doesn't work, here's a trace:
>> [...]
>> > Why does CDROMEJECT return some odd number and not actually
>> > eject the drive?
>> > The kernel complains that there's no disc in the drive. It
>> > seems to be drive
>> > dependant. I have a Nakamichi changer (MJ-5.16 scsi) which will eject
>> > (open) when the eject command is sent.
>> > Which is broken?
>> My Plextor 32x scsi doesn't open the tray either, and so does the
>> Yamaha 4416s and also an older atapi drive on a different machine. I
>> find this quite annoying, if there's nothing inside what prevents
>> opening the tray? Sometimes I'm so lazy that even leaning to reach the
>> eject button is bad, but I've survived so far :-)
>> Pf
> I myself have wondered this . It shouldn't be that hard to get
> 'eject' to ignore 'no cd...' message & continue . But my concern
> 'Being so lazy its a sin' is I Would like to see a 'closetray'
> command . Mainly because I may have a -clueless- one at the
> remote site & all I want them to do is put the cd in the tray &
> leave . Having heard of -all those- tech-support horror stories
> I would even not want someone other than a tech I am familiar
> with to do other than that request . But, Times being what they
> are co-facilities are hiring low cost help which means trainable
> but not always clued . Tnx for the ear . JimL

Hmm. At least all CD drives I've tried will happily mount CD if it's just put
on tray: after "mount" command tray will be closed and CD will be mounted.

P.S. And plese do not mit two issues: "eject" problem and kernel problem.
Yes, old versions of "eject" command will not eject tray when there are no
CD but new version from sunsite will. But from strace log looks like it's
new one (old version of "eject" opened CD without O_NONBLOCK flag and failed)
so problem is somewhere in kernel (driver or perhaps even hardware).
And this look REALLY strange to me.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Apr 15 2000 - 21:00:12 EST