LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   CD/DVD RW identification cdrecrord (https://www.linuxquestions.org/questions/linux-newbie-8/cd-dvd-rw-identification-cdrecrord-731585/)

PMP 06-09-2009 01:46 AM

CD/DVD RW identification cdrecrord
 
Hello,
I am writing a script from burning to CD/DVD using cdrecrod, Is there any way i can figure out wether the CD/DVD is writable or not.

rikxik 06-09-2009 05:06 AM

I think cdrecord has a "scanbus" option which would provide details of the drive. You can capture the output, do some string processing and determine if the drive is writable or not. Run "man cdrecord" and search for "scanbus" for more details.

ozminh 06-09-2009 08:10 AM

'-dummy'?

eg: 'cdrecord -v -dao -dummy *av'

H_TeXMeX_H 06-09-2009 12:55 PM

cdrecord -minfo dev=/dev/cdrom

PMP 06-11-2009 04:46 AM

Thanks to all for you comments


All times are GMT -5. The time now is 04:46 PM.