Abdullah Jibaly
Abdullah Jibaly

Reputation: 54810

Enumerating USB drives and usb hierarchy on Mac OS

What is the best way to discover what USB drives are connected, where they are mounted, and their unique details like Serial number, PID and which USB Hub port they are connected to? Something similar to what USBlyzer does for Windows but programmatically.

Upvotes: 9

Views: 14166

Answers (4)

Niko
Niko

Reputation: 2543

You can use Terminal and execute:

system_profiler SPUSBDataType

It will show all connected USB devices, with detailed information.

Upvotes: 25

Adam
Adam

Reputation: 164

USB Prober is the most useful tool. It can be found at /Developer/Applications/Utilities/USB Prober.

Upvotes: 2

guzzibill
guzzibill

Reputation: 81

The Finder has an "about this mac" option under the Apple at the upper left. Ask for more info and follow the devices===> USB tree to find your answers. In a shell or another executing module, I have no idea how to retrieve this info.

Upvotes: 5

mouviciel
mouviciel

Reputation: 67879

I'm not an expert of I/O on Mac OS X, but I've heard of I/O Kit, which may be a good starting point.

Upvotes: 0

Related Questions