2002-12-23 20:53:58

by Adam Hunt

[permalink] [raw]
Subject: is there a disc in the drive?

Is there a simple way of determining if there is a disc in a CD/DVD drive?
Something in /proc would be nice. Is there any other sort of information
availble such as what type of disc is in the drive?

--adam

--
+++ GMX - Mail, Messaging & more http://www.gmx.net +++
NEU: Mit GMX ins Internet. Rund um die Uhr f?r 1 ct/ Min. surfen!


2002-12-24 01:47:08

by James Stevenson

[permalink] [raw]
Subject: Re: is there a disc in the drive?

Hi

open the cd drive in non blocking mode then
do some ioctls to get the info you require.

or cdrecord i think has an option to dump the info.

On Mon, 2002-12-23 at 21:02, Adam Hunt wrote:
> Is there a simple way of determining if there is a disc in a CD/DVD drive?
> Something in /proc would be nice. Is there any other sort of information
> availble such as what type of disc is in the drive?
>