LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (http://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   finding a CDRom (http://www.linuxquestions.org/questions/linux-hardware-18/finding-a-cdrom-148466/)

e1000 02-20-2004 02:09 PM

finding a CDRom
 
many distros must figure out which drive is what, i have run into the same problem, i need to identify the /dev/ designation of a CDrom drive automatically on different machines using a script.

does anyone know how to go about doing this, in such a way that a script could accomplish it and make a symlink /dev/cdrom to it?

koen plessers 02-21-2004 01:39 PM

Hello

Have you tried: dmesg | grep CD-ROM ?
mine e.g. says:

hdc: ATAPI 52X CD-ROM drive, 128kB Cache, DMA
Uniform CD-ROM driver Revision: 3.12
Type: CD-ROM ANSI SCSI revision: 02
Attached scsi CD-ROM sr0 at scsi0, channel 0, id 0, lun 0

so I mount it with:

mount /dev/hdc /mnt/cdrom

Have a lot of fun

Koen Plessers


All times are GMT -5. The time now is 11:18 PM.