1

Determine if a usb is mounted using lsusb data

view story
linux-howto

http://stackoverflow.com – 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 in (HowTos)