Determining type of disc

View: New views
2 Messages — Rating Filter:   Alert me  

Determining type of disc

by Phil Rhodes :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
Hi,
 
I'm trying to use cdrecord to determine the type of disc that is currently in a drive. I need to know whether or not there's a blank recordable disc available.
 
I can do something like
 
cdrecord -dev=0,1,0 -checkdrive -v
 
The only difference between a commercial DVD and a blank DVD-R is that the "Profile" entry marked "(current): is x0011 for the DVD-R and x0010 for the DVD, and no profile is marked "(current)" on an empty drive.
 
Alternatively, I can do:
 
cdrecord -dev=0,1,0 -toc
 
...but that would require a lot more creative grepping and strikes me as less reliable.
 
Is the -checkdrive approach the best way of doing it? Any suggestions gratefully received.
 
- Phil

_______________________________________________
Cdrecord-support mailing list
Cdrecord-support@...
https://lists.berlios.de/mailman/listinfo/cdrecord-support

Re: Determining type of disc

by Joerg Schilling-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

"Phil Rhodes" <phil_rhodes@...> wrote:

> Hi,
>
> I'm trying to use cdrecord to determine the type of disc that is currently in a drive. I need to know whether or not there's a blank recordable disc available.
>
> I can do something like
>
> cdrecord -dev=0,1,0 -checkdrive -v


This is not for requesting the media information but for requesting _driver_
information

> The only difference between a commercial DVD and a blank DVD-R is that the "Profile" entry marked "(current): is x0011 for the DVD-R and x0010 for the DVD, and no profile is marked "(current)" on an empty drive.
>
> Alternatively, I can do:
>
> cdrecord -dev=0,1,0 -toc
>
> ....but that would require a lot more creative grepping and strikes me as less reliable.
>
> Is the -checkdrive approach the best way of doing it? Any suggestions gratefully received.

Did you read the man page? Did you try to use the -minfo option?

To check the current media status, there is


cdrecord -minfo

to add verbose information on the medium, call

cdrecord -v -minfo

Jörg

--
 EMail:joerg@... (home) Jörg Schilling D-13353 Berlin
       js@...                (uni)  
       joerg.schilling@... (work) Blog: http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily
_______________________________________________
Cdrecord-support mailing list
Cdrecord-support@...
https://lists.berlios.de/mailman/listinfo/cdrecord-support