All of lore.kernel.org
 help / color / mirror / Atom feed
* is there a disc in the drive?
@ 2002-12-23 21:02 Adam Hunt
  2002-12-24  1:55 ` James Stevenson
  0 siblings, 1 reply; 2+ messages in thread
From: Adam Hunt @ 2002-12-23 21:02 UTC (permalink / raw)
  To: linux-kernel

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!


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: is there a disc in the drive?
  2002-12-23 21:02 is there a disc in the drive? Adam Hunt
@ 2002-12-24  1:55 ` James Stevenson
  0 siblings, 0 replies; 2+ messages in thread
From: James Stevenson @ 2002-12-24  1:55 UTC (permalink / raw)
  To: Adam Hunt; +Cc: linux-kernel

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



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-12-24  1:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-12-23 21:02 is there a disc in the drive? Adam Hunt
2002-12-24  1:55 ` James Stevenson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.