Media Detection

John-Mark Gurney gurney_j at efn.org
Tue Apr 13 13:05:58 PDT 2004


Tim Aslat wrote this message on Tue, Apr 13, 2004 at 12:51 +0930:
> Currently I'm running FreeBSD 5.2.1-RELEASE-p1 with atapicam and the
> burner device is a CDRW <LITE-ON DVDRW LDW-451S> as reported by the
> kernel boot messages.
> 
> The dmesg gives me this info
> 
> cd0 at ata1 bus 0 target 0 lun 0
> cd0: <LITE-ON DVDRW LDW-451S GSB6> Removable CD-ROM SCSI-0 device 
> cd0: 16.000MB/s transfers
> cd0: Attempt to query device size failed: NOT READY, Medium not present
> 
> How would I go about checking the media if it's a blank, non-blank or RW
> disk?

Take a look at cdrecord -atip...  This will probably do what you want..

-- 
  John-Mark Gurney				Voice: +1 415 225 5579

     "All that I will do, has been done, All that I have, has not."


More information about the freebsd-multimedia mailing list