> > Random question for y'all - does anybody know of a common and relatively > simple way to determine: > > A) If a given cdrom drive is open or closed? > > B) If there is a disc in the drive? mt -f /dev/cdrom status Door open & missing disc would have the same failure. scsiinfo is another one I've used.