How to match a mounted filesystem to a USB device on Linux?

177 views Asked by At

What would be the proper way to programatically match from a mounted filesystem to a USB device and 'usbstorage' interface?

I suspect sysfs traversal is the way to go, but sysfs is pretty wild.

Specifically, I have an Android system and my USB stick gets mounted from /dev/block/vold/8:1. (What's that, a volume manager?)

0

There are 0 answers