Bruce Dubbs wrote: > How robust is this? It would seem to work if there are two cdroms, but > does it generalize to the admittedly unusual case where there are more > than two? I'm not sure how the drives are recognized. I only have one > and it is at "/sys/bus/ide/drivers/ide-cdrom/0.0" What do the digits > before and after the dot stand for? bus.device as in hda => 0.0 ... hdd > => 1.1 ? > > Since my hard disk drive is sata and recognized as sda, would this work > if I have a cdrom on hda and hdb? Hard coding the 1 doesn't seem to be > right to me. > > It seems to actualy be very robust, I just created a virtual machine with a LOT of cdroms.
lrwxrwxrwx 1 root root 3 2006-05-14 14:24 /dev/cdrom -> hdb lrwxrwxrwx 1 root root 3 2006-05-14 14:24 /dev/cdrom0 -> hdc lrwxrwxrwx 1 root root 3 2006-05-14 14:24 /dev/cdrom1 -> hdd lrwxrwxrwx 1 root root 3 2006-05-14 14:24 /dev/cdrom2 -> sr2 lrwxrwxrwx 1 root root 3 2006-05-14 14:24 /dev/cdrom3 -> sr3 lrwxrwxrwx 1 root root 3 2006-05-14 14:24 /dev/cdrom4 -> sr4 lrwxrwxrwx 1 root root 3 2006-05-14 14:24 /dev/cdrom5 -> sr5 lrwxrwxrwx 1 root root 3 2006-05-14 14:24 /dev/cdrom6 -> sr6 lrwxrwxrwx 1 root root 3 2006-05-14 14:24 /dev/cdrom7 -> sr7 lrwxrwxrwx 1 root root 3 2006-05-14 14:24 /dev/cdrom8 -> sr8 -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page