> > The next version will likely use /dev/cdrom, and intelligently make that a > > symlink to the first found CD-Rom. > > I wrote a shell script that returns all found IDE cdroms by scanning > through /proc/ide - interested?
Sure! > How do you go about finding a SCSI CDROM? All of our systems around > here use IDE CDROMs - including those that are primarily SCSI-based > systems (!). Seems the Compaq servers like to use SCSI hard drives with > bootable IDE CDROMs - pretty interesting if you're trying to use LILO :( > ...so now we use GRUB instead... > > I don't see anything in /proc/scsi that tells you if the widget at a > SCSI address is a CDROM, Hard Drive, WORM, or what.... at least in > /proc/ide there's a file called "media" ... I'm not sure if it works everywhere, but on all the systems I've got, there's a field in /proc/scsi/scsi that indicates what sort of device you're talking to (see samples, below...I've seen CD-ROM, Direct-Access (hdd), Sequential-Access (tape drive), and processor (my RAID controller)), so something like: [ -n "`sed -n /CD-ROM/p /proc/scsi/scsi`" ] && ln -s /dev/scd0 /dev/cdrom Ought to work... Charles Steinkuehler http://lrp.steinkuehler.net http://c0wz.steinkuehler.net (lrp.c0wz.com mirror) <sampe1> [root@falcon /root]# cat /proc/scsi/scsi Attached devices: Host: scsi0 Channel: 00 Id: 00 Lun: 00 Vendor: IBM Model: SERVERAID Rev: 1.0 Type: Direct-Access ANSI SCSI revision: 01 Host: scsi0 Channel: 00 Id: 15 Lun: 00 Vendor: IBM Model: SERVERAID Rev: 1.0 Type: Processor ANSI SCSI revision: 01 Host: scsi0 Channel: 03 Id: 06 Lun: 00 Vendor: PLEXTOR Model: CD-ROM PX-12TS Rev: 1.02 Type: CD-ROM ANSI SCSI revision: 02 <sample2> [root@mongoose /root]# cat /proc/scsi/scsi Attached devices: Host: scsi0 Channel: 00 Id: 00 Lun: 00 Vendor: IBM Model: SERVERAID Rev: 1.0 Type: Direct-Access ANSI SCSI revision: 01 Host: scsi0 Channel: 00 Id: 15 Lun: 00 Vendor: IBM Model: SERVERAID Rev: 1.0 Type: Processor ANSI SCSI revision: 01 Host: scsi0 Channel: 03 Id: 06 Lun: 00 Vendor: SANYO Model: CRD-254S Rev: 1.05 Type: CD-ROM ANSI SCSI revision: 02 <sample3 (tape-drive, but no CD-Rom)> [root@chaosIV /www]# cat /proc/scsi/scsi Attached devices: Host: scsi0 Channel: 00 Id: 06 Lun: 00 Vendor: CONNER Model: CTT8000-S Rev: 1.17 Type: Sequential-Access ANSI SCSI revision: 02 Host: scsi1 Channel: 00 Id: 00 Lun: 00 Vendor: QUANTUM Model: ATLAS IV 9 WLS Rev: 0909 Type: Direct-Access ANSI SCSI revision: 03 Host: scsi1 Channel: 00 Id: 01 Lun: 00 Vendor: QUANTUM Model: ATLAS IV 9 WLS Rev: 0909 Type: Direct-Access ANSI SCSI revision: 03 Host: scsi1 Channel: 00 Id: 02 Lun: 00 Vendor: QUANTUM Model: ATLAS IV 9 WLS Rev: 0909 Type: Direct-Access ANSI SCSI revision: 03 _______________________________________________ Leaf-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/leaf-devel