Search code examples
c++linuxusblibusb

C++ look-up USB devices mount point


I need to look-up the USB devices connected to the computer board running Linux. To do so I have used 'libusb' library, which works great and I can retrieve the manufacturer, serial nnumber, product id, etc...

The problem is that I need to know the mount point in the file system so I can pass this information to another function.

Any idea?

thanks in advance.

Carles.


Solution

  • This question - https://superuser.com/questions/361885/how-do-i-figure-out-which-dev-is-a-usb-flash-drive goes over a lot about disks and information concerning them.

    However I want to point you to the answer further down the page: https://superuser.com/a/361893 as it explains how to find where the disks are located.