Questions tagged [usb-drive]

Storage drives connected by USB devices known otherwise as flash drive, memory stick, pen drive, USB stick, USB key and thumb drive. Also includes larger storage devices such as portable hard drives.

USB drives are storage drives connected by USB (Universal Serial Bus) to the computer. A USB drive -- also known as a flash drive or keychain drive -- is a plug-and-play portable storage device that uses flash memory and is lightweight enough to attach to a key chain.

Above the OS level, work with these drives does not differ much from the work with the fixed drives: they can be partitioned and partitions can be formatted OS-supported filesystems.

Such drives can also be bootable. Developers may use this capability to test new operating system without installing it, or to gain access to non-encrypted fixed hard drive if the main operating system does not boot any longer.

571 questions
5
votes
1 answer

How to find USB storage path programmatically?

I connected USB storage to my phone and I used getExternalFilesDirs(""); to find all directories including sdcard and USB. The path of sdcard comes out correctly, but USB path does not come out by the function. Is there anyway to find relative…
Jun
  • 73
  • 1
  • 5
5
votes
6 answers

Portable Ruby on Rails environment

I got myself a new 8 gig USB key and I'm looking for a decent solution to have a portable RoR environment to learn on. I did the google on it and found a few possibilities, but I'm curious to hear some real life experiences and opinions. Thanks!
BobC
  • 412
  • 1
  • 7
  • 20
5
votes
1 answer

Android in Usb host mode list files in pendrive

I have sony tablet S and I am connecting a pendrive to it. I have found code that lets me: -Find the connected device -Find its interfaces -Find its endpoints (read, write) -I am able to open the device too My question is: How do I list all files…
5
votes
1 answer

Auto run appilication while plug in USB drive

I am trying to auto run an application after I've plugged in my USB pen drive. Is there any way to automatically open myappilication.exe from my USB root file, instead of showing the option an list of which applications I'd like to run.
BhrKamal
5
votes
2 answers

How to remove USB drive using C#

I'm trying to write an application to remove USB Drives, but i can't find a way to do it. There's a .NET class to do this or it's possible using the Win32 API? All advises are welcome, thanks for the help.
doc
  • 269
  • 1
  • 4
  • 15
5
votes
3 answers

Read USB Device Serial number in C#

Is there a way to read USB device serial number and data in a text file in USB using visual studio 2005?
rahul
  • 184,426
  • 49
  • 232
  • 263
5
votes
4 answers

How to map /proc/bus/usb/devices entry to a /dev/sdX device?

I need to know how I can figure out to which entry in /proc/bus/usb/devices a /dev/sdX device maps to. Basically, I need to know the vendor id and product id of a given USB stick (which may not have a serial number). In my case, I have this entry…
Tom
  • 653
  • 1
  • 8
  • 15
4
votes
2 answers

Windows: script/program for USB key that opens a console, and sets the path and the working directory

The goal behind this question is to create a portable Windows script/program that would help users run (console) programs directly from a USB key (not necessarily through autorun, though). The script/program would thus do the following when double…
Eric O. Lebigot
  • 91,433
  • 48
  • 218
  • 260
4
votes
1 answer

How to retrieve the name of an usb device

I am trying to get the names of connected usb devices, like mobile phones or usb sticks. As I browsed stackoverflow before I got these approach, but I cant find the right property. static List GetUSBDevices() { …
cKai
  • 57
  • 10
4
votes
0 answers

Creating a Virtual Hard Drive

I am developing an application in which it would be of great advantage to monitor all of the activity on a hard drive. I am using Diskmon to trace the activity and IOMeter to make particular requests to the drive. All is well, except that Diskmon…
user622511
  • 125
  • 1
  • 8
4
votes
0 answers

Android: Determine what is SD card and what is USB disk

In an Android app, I am storing files on a SD card in the device. Occasionally the user also need to export data to a USB disk that will be attached for the occasion. I am using Context.getExternalFilesDirs() to locate the SD card and I am using…
4
votes
3 answers

Auto mount usb drive from udev rules and shell script

I'm currently trying to mount any usb drive connected to my computer automaticaly. My goal is to mount usb devices either with the label if they have one or with the uuid if they don't. To do it I write a udev rule in…
Arkaik
  • 852
  • 2
  • 19
  • 39
4
votes
1 answer

How can I get timestamps on previously connected USB devices?

I'm trying to get an old PowerShell script to show the times of previously connected USB devices. After having read a few forensics blogs like this, I found this script from this blog. (Script by Jason Walker.) Unfortunately it doesn't show any…
not2qubit
  • 14,531
  • 8
  • 95
  • 135
4
votes
1 answer

how can the computer distinguishes between keyboard USB and mouse USB?

Wondering how can the PC distinguish among multiple USBs. For example, when i plug my flash drive USB into my computer how can it know that it is a flash drive USB not a keyboard USB ? Thanks in advance.
Mahmoud Anwer
  • 164
  • 1
  • 2
  • 12
4
votes
1 answer

How to Use 10-Sector Track Format On A USB Floppy Drive

I'm programming a floppy disk-extractor/manager for an old synthesizer/keyboard instrument (made in 1980's). My Problem: This software should support USB-Floppy drives. It needs to read and write images to a 10-sector track formats. But USB…
Narek
  • 41
  • 3