[lkml]   [1999]   [Feb]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Ejecting a mounted CD-ROM works :-(
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

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


We are ftpadm of FB13. Prepare to be mirrored. Resistance is futile.
-- greeting message

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:50    [from the cache]
©2003-2011 Jasper Spaans