I can obtain the status of a connected display with:cat /sys/class/drm/card0-HDMI-A-1/statusIs there something analogous for optical drives? I looked around in /sys/ but couldn't find anything that looked like device information for the cdrom (sr0) drive. I want to write a script that determines if the drive is finished copying, to eject the disc, and then copy the contents once a new disc is inserted into the drive. 
How can I access optical drive status information?
linux;devices;block device;data cd