>> /dev/[r]sr%d /dev/[r]dsk/* sd/atapi cdrom drives > > This one I do see quite frequently used in shell scripts, in order to > find which of the disk devices is the cdrom/DVD drive on the system. > > What's the replacement mechanism for doing this in shell scripts?
This is what I do: for i in `hal-find-by-capability --capability storage.cdrom`;do hal-get-property --udi $i --key block.device done -Artem