0

I have a requirement where i need to check if a virtual CD ROM is attached if yes then read the values and apply it on to the application.

But couldn't find a way to detect if a CD ROM is attached or detached ?

The environment is Cent OS 6 and its a virtual machine deployed (VCenter deployment) using VMWare.

Note: The problem for which i require a solution is how do i detect if the CDROM is attached or detached ?

1
  • mount | grep <something>
    – Hyppy
    Apr 22, 2015 at 14:25

1 Answer 1

0

To see what optical devices are available, you can run this as root:

% wodim --devices

As for "reading the values and apply it on to the application" you need to be more specific. What exactly are you trying to accomplish?

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .