I’m writing some software to assess the state of optical drives for a hardware recycling program. It’s written in Python and will be running on Ubuntu 9.10.
I’ve found cdrkit to be useful, specifically ‘wodim dev=/dev/sr0 -prcap’ to list the drive’s capabilities, but it doesn’t tell whether or not a drive is DVD+R capable, only DVD-R.
Does anybody know a good way to determine whether a drive can write DVD+R, either with a command line tool, or by examining something in /proc, or similar? This is one of the first things that the program needs to do as we want to recycle drives that are not capable instead of reusing them.