Questions tagged [usb-mass-storage]

USB mass storage is a class of USB devices which allows access to their internal data storage by using a predefined protocol specified by USB-IF forum.

Typical examples for Mass storage class devices are:

  • External hard drives (HDD)
  • External optical drives (such as CD or DVD drives)
  • Portable Flash memory devices (USB sticks)
  • Solid-state drives (SSD)
  • Digital cameras
  • Card readers
  • Mobile phones

USB Mass Storage Class Bulk-Only (BBB) Transport protocol is mostly used for mass storage device communication.

Reference - USB-IF

85 questions
16
votes
2 answers

Programmatically Turn Off USB Storage on Android Devices

On many android devices, when the device is plugged into the USB port of a computer or even on some USB charging devices, the phone goes into USB Storage mode. When the device is in this mode, android apps cannot access the sdcard. Is there any way…
speedplane
  • 15,673
  • 16
  • 86
  • 138
13
votes
4 answers

USB Mass Storrage on File Level

The Challenge: I have an Linux hand-held device, which records data and stores it to the disc. It should exchange these data with a Windows application via USB. When this data is accessible by the user - e.g. via USB-mass-storage - it has to be…
Charly
  • 1,270
  • 19
  • 42
9
votes
2 answers

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…
Piskvor left the building
  • 91,498
  • 46
  • 177
  • 222
8
votes
2 answers

How to navigate to android USB Mass Storage Activity?

I would like to get USB Mass Storage activity to turn on or off the usb mode when device is connected to pc.I have implemented an application as follows. public class USB_ConnectActivity extends Activity { /** Called when the activity is first…
prasad.gai
  • 2,977
  • 10
  • 58
  • 93
6
votes
1 answer

Android Intent to open "Mass Storage Activity"

I need to open USB Mass Storage Activity from my application. Is there any Intent to do this? something like startActivity(new Intent(Settings.ACTION_APPLICATION_DEVELOPMENT_SETTINGS))
Fresher
  • 269
  • 5
  • 16
5
votes
0 answers

iOS application using USB MSC or MTP(Mass Storage or Media Transfer Protocol)

currently I'm considering the iOS application like below, Application: Using the lightning USB3 camera adapter, by MSC(Mass Storage Class) or MTP(Media Transfer Protocol), browse and copy files from devices which have USB connector to…
M.Masa
  • 532
  • 4
  • 20
5
votes
4 answers

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…
Piskvor left the building
  • 91,498
  • 46
  • 177
  • 222
5
votes
1 answer

How can BeagleBone Black be used as Mass Storage Device?

Is it possible to use the BB as Mass Storage Device? I want it to be connected to an audio player that can read files from USB connectivity (such as USB flash drive) and act as data storage device containing one specific folder (and its sub-folders)…
5
votes
1 answer

Is it possible to send SCSI commands to a USB device from within a kernel module?

Question How, given the information udev passes to my kernel module (the block device path maybe), can I send SCSI commands to the block device? (yet have it function normally otherwise, meaning partitions are mounted, no data loss, etc) What I'm…
4
votes
1 answer

How can I detect whether a Garmin GPS device is connected in mass storage mode?

I am trying to figure out how to detect if a drive is a mass storage device. I can get the drive letters but cannot figure out how to detect what sort of device it is. I am trying to detect if a Garmin GPS receiver is connected to a PC in mass…
colin
  • 2,983
  • 6
  • 41
  • 49
4
votes
2 answers

How to get external usb mass storage path in Android?

I need to import / export some data from / to a usb stick. Is there a way to get the path of the mounted usb devices? My code looks something like this: UsbManager manager = (UsbManager) getSystemService(Context.USB_SERVICE); HashMap
eugstman
  • 978
  • 2
  • 15
  • 18
4
votes
1 answer

Named-pipe/ FIFO on USB Mass Storage Gadget to Stream Audio for Car, Docks etc.

Many devices (cars, TVs, iPod Docks, AVR receivers etc) have the facility to access class compliant USB Mass Storage Devices and play wav files etc. stored upon them. I understand I can use a small linux system with appropriate bi-mode USB host/…
3
votes
1 answer

USB (SCSI) firmware development - how to handle removable media

I'm developing a USB mass storage device. I got the device basically working (it's too slow, but that's another conversation). What isn't working as well as I'd like is handling device removal - not from the USB end, but the USB device presenting…
nsayer
  • 16,925
  • 3
  • 33
  • 51
3
votes
1 answer

Abusing the USB mass storage class for driverless I/O

I am developing a USB-based peripheral device for use on Windows desktop systems and would prefer to avoid a driver installation step. In part, due to the resources required to develop and sign custom drivers, and in part as third party drivers have…
doynax
  • 4,285
  • 3
  • 23
  • 19
3
votes
1 answer

usb-skeleton.c does not work

I am trying to write a basic device driver in Linux to perform IO on USB mass storage devices. I am using 2.6.34 kernel for the same. I used usb-skeleton.c that comes with the kernel to understand the correct working of USB core's APIs. I compiled…
nachiketkulk
  • 1,141
  • 11
  • 22
1
2 3 4 5 6