drutil - command line access to CD's and DVD's

Mac OS X has a wonderful little "drutil" tool (10.3 and up only). It can tell you all sorts of things about cd's and dvd's, from the simplest inventory:



 $ drutil list
    Vendor   Product           Rev   Bus       SupportLevel
 1  SONY     CD-RW  CRX820E    1.3a  ATAPI     Apple Shipping
 
 

to "more than I wanted to know":


 $ drutil getconfig supported | more
  Vendor   Product           Rev 
  SONY     CD-RW  CRX820E    1.3a
 
  Media: None
 
 GetConfiguration returned 152 bytes.
 
   00>  00 00 00 98 00 00 00 00 00 00 03 10 00 08 00 00
   10>  00 09 00 00 00 0A 00 00 00 10 00 00 00 01 03 04
   20>  00 00 00 02 00 02 03 04 00 00 00 00 00 03 03 04
   30>  2D 00 00 00 00 10 00 08 00 00 08 00 00 10 01 00
   40>  00 1D 03 00 00 1E 04 04 03 00 00 00 00 1F 00 00
   50>  00 21 08 08 35 00 01 01 07 00 00 00 00 23 04 00
   60>  00 26 00 00 00 27 00 04 00 00 00 00 00 2D 08 04
   70>  46 00 37 01 00 2E 04 04 66 01 00 00 01 00 03 00
   80>  01 03 00 04 03 00 00 FF 01 05 03 00 01 06 00 04
   90>  00 00 00 01 01 07 00 04
 
 Current Profile: 0
 
 Feature 0000h: Profile List
     Raw Feature Descriptor:
         00>  00 00 03 10 00 08 00 00 00 09 00 00 00 0A 00 00
 
 (output continues for a total of 316 lines on my iBook)
 
 

It has commands useful in shell scripts:

 $ drutil -drive 1 tray open
 
 

and many other abilities, including inspection of media and of course burning of images.



Got something to add? Send me email.





(OLDER) <- More Stuff -> (NEWER)    (NEWEST)   

Printer Friendly Version

-> -> drutil - command line access to CD's and DVD's



Increase ad revenue 50-250% with Ezoic


More Articles by

Find me on Google+

© Tony Lawrence



Kerio Samepage


Have you tried Searching this site?

Support Rates

This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more.

Contact us

Share
Additional Info




The difference between theory and practice is that in theory, there is no difference between theory and practice. (Richard Moore)





This post tagged: