How to find out the type of CD in burner from script ?

aleksandr.derevianko at ru.transport.bombardier.com aleksandr.derevianko at ru.transport.bombardier.com
Thu Oct 9 02:37:22 PDT 2003


Hello !

I have the following problem: I'm writing backup scripts, to store SCM tree on
CD via ATAPI CD-burner.
I need to have ability from inside the script find out the type of CD in burner:
Is it CD-R or CD-RW, and is it blank or not,
and also obtain at least CD label without mounting CD.

Search in mail archive does nothing, so if anybody know how to do this, please
respond.

P.S. I'm using FreeBSD 4.8 and PLEXTOR CD-R PX-W4824A.

Best regards,
Alexander.




More information about the freebsd-questions mailing list