I'm trying to identify if a usb storage device (usb stick) is mounted or not on a linux distro (modified Ubuntu 10.04). At the moment I use the lsusb -v command and parse it to obtain the Bus, Device and ID of the USB device I'm interesed in.
Bus:001 DEVICE:008 ID 0781:5560 SanDisk Corp. . . .
What I ideally want is to be able to use the data I get from lsusb -v to determine if that usb has been mounted or not.
I've never really fiddled in this area before (its kind of just ended up in my lap) any pointers would be appreciated. I've looked on here and other sites and learnt some interesting things but nothing that really gets me any closer. I can see in /proc/mount that the usb is mounted but can't match the info I get for the device with lsusb with what I get in cat /proc/mount, as this will form part of an application I need to be able to match one with another.
FYI:The application is written in python and I'm under the constraint of not being able to use external libraries such as pyUSB. As I say any pointers/help would be greatly appreciated.
Cheers