Detect CD Insert

Lubomir Kundrak lkundrak at
Mon Mar 10 07:40:17 PDT 2008

On Mon, 2008-03-10 at 07:09 -0700, Thanh Tran wrote:
> Is it possible to use HAL to detect when a CD is
> inserted into an optical drive?  I tried to use "lshal
> --monitor" and found no messages.  I would've guessed
> the volume namespace would appear when a CD is
> inserted.  Thanks in advance for any help.

If I recall correctly this always worked for me. How long have you
waited after insterting the media?

Lubomir Kundrak (Red Hat Security Response Team)

More information about the hal mailing list