Re: Ejecting a mounted CD-ROM works :-(

Gerd Knorr (kraxel@goldbach.in-berlin.de)
Fri, 19 Feb 1999 08:30:14 +0100


In lists.linux.kernel you write:

>Hi *

>I did some experiments with cdrecord last few days, for example how to
>eject a CDROM ...

>ok, letīs do that
># cdrecord dev=0,2,0 -eject

>*click**screeek**click*
>CD is ejected from my cdrom now :-)

>Ok, try to eject a mounted(!!) cd-rom. This should make some headace
>to the kernel, this is the reason why cdroms (eject-button) are locked
>while mounted, right?

If you ask the kernel for ejecting the cdrom (CDROMEJECT ioctl), you'll
get a EBUSY.

cdrecord talks directly to the device (via generic scsi), therefore
the kernel can't block the eject attempt.

Gerd

-- 
We are ftpadm of FB13. Prepare to be mirrored. Resistance is futile.
	-- ftp.cs.tu-berlin.de greeting message

- 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/