usb-mass-storage

Find which drive corresponds to which USB mass storage device in WinXP

I have several USB drives connected to a WinXP SP3 computer, and I need to tell them apart programatically - I need to find which drive letter corresponds to which device (in this case, one device ~ one volume). I can get their Volume IDs and drive letters using mountvol, looking something like this: C:\WINDOWS\> mountvol \\?\Volume{bdb...

Why only one WM_DEVICECHANGE message when a multi-volume USB Device is removed?

I'm writing an application that detects when a certain USB Mass Storage Device is plugged-in, and when it is unplugged - by listening for WM_DEVICECHANGE messages. I've also registered my application to listen for WM_DEVICECHANGE messages for DBT_DEVTYP_DEVICEINTERFACE (using the RegisterDeviceNotification API call) and I get both the ...

Accessing backing storage file from both Host machine and emulating machine when using USB Gadget

I have an embedded machine that is running g_file_storage. I would like to be able to access the backing store in read only mode from the machine while g_file_storage is running and a host machine is dropping files into this backing store. Any idea how one can achieve that ? I know that it is not advisable, but would like to try it any...

Android Force Mount USB Storage when SD card is formatted to HFS+

I'm not exactly sure if this is the best place for this topic but here goes.. I've reformatted my Android SD card (16GB) to HFS+ format, and pushed a Mac OS X 10.6 boot image (from a .dmg file) onto the card. I did this because I don't want to go out and buy a DL DVD-R to reinstall my operating system, and because it's a nice little exp...

Find which drive corresponds to which USB mass storage device in Linux

I have several USB mass storage flash drives connected to a Ubuntu Linux computer (Ubuntu 10.04.1, kernel 2.6.32-25-386), and I need to tell them apart programatically (from bash if possible, but I'm not afraid of compiling either) - I need to find which block device corresponds to which physical device (e.g. /dev/sdb1 -> device in USB p...