CDROMSample

Last Revision:
Version 1.5, 2011-05-05
Now builds with Xcode 4.
(Full Revision History)
Build Requirements:
Xcode 4.0 or later, Mac OS X v10.6 or later
Runtime Requirements:
Mac OS X v10.6 or later

This command-line tool demonstrates how to find and read sectors from CD-ROM media on Mac OS X. Techniques shown are: finding ejectable CD-ROM media, locating the BSD /dev/rdisk* node name corresponding to that media, opening the /dev/rdisk* node, retrieving the media's preferred block size, reading a sector from the media, and closing the device.