Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

USB Drive Mount Point



Hello,

I'm trying to get the mount point of a USB flash drive. I'm dealing with an io_service_t that represents my device, which I retrieved using IOServiceGetMatchingService.

I've seen suggestions of using code like this:

deviceName = IORegistryEntryCreateCFProperty(service, CFSTR (kIOBSDNameKey), kCFAllocatorDefault, 0);

to retrieve the device's BSD name, but it doesn't appear that the device has a BSD name (as this function always returns NULL).

The System Profiler correlates between the USB device and its mounted volume just fine; it gives the device's information (vendor ID, product ID, etc.) and also the device's BSD name (disk1s2) and its mount point (/Volumes/flash_drive).

So my question is: how does one retrieve a USB device's mount point/ BSD name, as the System Profiler does?

Thanks!

Dave
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Usb mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/usb/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.