Version: 1.1

Posted: 2006-10-16

Build Requirements: Xcode 2.2.1 or later.

Runtime Requirements: Mac OS X 10.2 or later

View Source Code:

Download Sample (“VolumeToBSDNode.zip”, 13.7K)
Download Sample (“VolumeToBSDNode.dmg”, 72.6K)



Description

Shows how to iterate across all mounted volumes and retrieve the BSD node name (/dev/disk*) for each volume. That information is used to determine if the volume is on a CD, DVD, or some other storage media.

This sample code has been updated to include a project that produces a universal binary.

Document Revision History

Date Notes
2006-10-16Updated to produce a universal binary. Modernized and incorporated bug fixes.
2003-01-14Shows how to iterate across all mounted volumes and retrieve their BSD node names.

Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.