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?
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
|All times are GMT -5. The time now is 05:24 PM.|