Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I want to find out if there is a CD drive on a remote server running Red Hat Linux release 7.3 (Valhalla).

Based on what I can see in fstab, /proc/devices, /proc/ide/ide0/ it seems like there is a CD drive, but is there any way I can verify it?

share|improve this question
add comment

3 Answers

# lshw -C disk

Should give you what you want.

Edit: Already here : How can I find out what hard disks are attached to a linux box

share|improve this answer
    
Neither hwinfo nor lshw are available and I don't want to install anything on it. Give you an upvote anyway as it may be useful another time. –  Erik I Nov 23 '10 at 22:17
add comment

The best way would probably be to run dmesg and see what devices were enumerated by the kernel.

share|improve this answer
    
Have tried. The server has an uptime of over 200 days so anything from the boot is gone long time ago. –  Erik I Nov 23 '10 at 22:19
add comment

Check what can tell you /var/log/dmesg for IDE devices.
Try to use "eject" command and see what will tell you.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.