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

Detlef Lechner Detlef.Lechner at gmx.net
Mon Jan 4 13:12:53 UTC 2010


On Mon, 2010-01-04 at 10:33 +0530, Raseel Bhagat wrote:
> 
> 
> 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.

Your answer is wrong.
I have inserted an audio CD in the CD/DVD tray of my T43 laptop
computer.
'~$ mount' does not show "/dev/cdrom/ in its output.

Detlef 






More information about the ubuntu-users mailing list