Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
it should be listed in /etc/fstab. I'm not aware of any concrete way to find out which devices there are available, but assuming it's an IDE device it will be /dev/hdX x={a/b/c/d}. probably c in a standard MoBo configuration. Most device names such as /dev/cdrom are usually ( i think ) just soft links to the hdX device anyway. I'm not sure why my IDE cdrw is listed as a sd (scsi) device tho...
Another guy told me that use dmesg|grep cdrom, because my computer out of works now, I can not view the help system,I am not sure if it works.
if it does work, pls let me know
Acid_kewpie is right; the cdrom entry in /dev is just a symlink to the actual device. Just do
Code:
ls -l /dev/cdrom
The output will tell you, among other things, what device the link points to (hdc on my box). That information is only true if you haven't physically moved devices around on your IDE channels, of course. CD-ROM drives follow the same device-labelling convention as IDE hard drives: primary master= hda, primary slave= hdb, etc. I think IDE CD burners are different because they work under SCSI emulation in Linux (hence the "ide-scsi" entry in /etc/lilo.conf).
I tend to have a line in /etc/fstab that contains the the noauto option so its doesn't attempt to mount at boot time, however associates /dev/hdd with /cdrom (or /mnt/cdrom or wherever takes your fancy), this way I can just issue mount /cdrom to mount the correct device to the correct directory... saves a bit of typing.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.