How to enumerate USB Flash Drives?

Hello All!

Anybody knows an example that explains how to enumerate USB Flash Drives connected in a PC

I need to enumerate the mountage points (example: "/dev/media/KINGSTON"... etc...)

This strings will be used for write some archives in ROOT of all USB Flash Drives connected in the current PC (As /dev/media/KINGSTON/config.acc)

Another person recommended that I use the libusb library, but... I'dont know anythig about this library...

Thanks! (Excuseme for my english level)
Libusb can be found on Sourceforge.net site. Linux version here:
http://sourceforge.net/projects/libusb/

I have used it (about 18 months ago), but that was to get a list of all usb devices not specifically to find USB mass storgae devices.

Yes... but... i don't need all the USB devices! I need only USB mass storage devices and use it for write come files...
You know how to do this?
Topic archived. No new replies allowed.