Find out if an audio CD is inserted in the tray of the CD/DVD drive

Raseel Bhagat raseelbhagat at gmail.com
Mon Jan 4 05:03:09 UTC 2010


On Mon, Jan 4, 2010 at 10:00 AM, Detlef Lechner <Detlef.Lechner at gmx.net>wrote:

> Hello,
>
> what is the most elementary command line command to find out if an audio
> CD is inserted in the tray of the CD/DVD drive?
>
>
Are you looking specifically for "audio" CDs only or any CD in general.

For the latter, you can execute the "mount" command to see if there is any
"/dev/cdrom" entry in the output.

--
Raseel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20100104/d62bbf94/attachment.html>


More information about the ubuntu-users mailing list