Erik I Asked: 2010-11-24 13:27:48 +0800 CST2010-11-24 13:27:48 +0800 CST 2010-11-24 13:27:48 +0800 CST Determining if a remote linux server has CD drive 772 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? hardware linux 3 Answers Voted petrus 2010-11-24T13:45:22+08:002010-11-24T13:45:22+08:00 # 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 EEAA 2010-11-24T13:36:32+08:002010-11-24T13:36:32+08:00 The best way would probably be to run dmesg and see what devices were enumerated by the kernel. ntk 2010-11-24T13:38:09+08:002010-11-24T13:38:09+08:00 Check what can tell you /var/log/dmesg for IDE devices. Try to use "eject" command and see what will tell you.
Should give you what you want.
Edit: Already here : How can I find out what hard disks are attached to a linux box
The best way would probably be to run
dmesg
and see what devices were enumerated by the kernel.Check what can tell you /var/log/dmesg for IDE devices.
Try to use "eject" command and see what will tell you.