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
7
votes
4 answers

Get notification when a new drive is connected via USB or other means (C#)

I need to detect when a new drive is plugged into a Windows system through a USB port, firewire port, etc. I am aware of the WM_DEVICECHANGE message, but this requires a window to be open in order to use it. Is there a way to create a background…
Phil
  • 6,561
  • 4
  • 44
  • 69
6
votes
8 answers

The ideal "always/anywhere available" web development environment?

Casus: How to edit and advance with the same code, from several distanced locations and computers as easily as possible? I have this thought for some time now. I am regularly having problems when I have to work on one project from different…
Petrunov
  • 754
  • 1
  • 8
  • 18
6
votes
3 answers

How to perform low-level IO with a USB flash drive under the BIOS (compared to a floppy)?

I have recently been studying some bootstrap code which was intended for use with a floppy drive. My goal is to modify the program so that it uses my USB flash drive. Now I see how the INT 13H function has been used with the floppy device, but I…
Mr. Shickadance
  • 5,283
  • 9
  • 45
  • 61
6
votes
7 answers

Differentiating between USB flash drive and USB hard drive on Windows

I'm trying to differentiate between a USB flash drive and a USB hard drive on Windows using the Win32 API. The GetDriveType() function will return DRIVE_REMOVABLE if the drive is removable, and USB flash drives are of course removable. But I'm…
user408962
  • 61
  • 1
  • 2
6
votes
5 answers

How can I access to USB stick from website?

I'm planning to make a login system by USB, so if you put in a USB-drive and open a specific webpage, the website asks the USB-drive for the code (e.g. by a JavaScript file, a redirect or something like that). The problem is, because of sandboxing,…
maxdaniel98
  • 6,623
  • 6
  • 19
  • 21
6
votes
2 answers

Any possible way to re-program a USB drive's microcontroller?

Ok, so i have opened usb drives before and i understand that they use generic MCU's to control the NAND flash storage. What I was thinking was if one could reprogram them to say, start an application upon insertion into a USB port, then it could be…
6
votes
0 answers

can we detect the unique serial no of USB Pen Drive in java?

I have googled a lot but there are few examples to find the serial no of usb drive using c++. I want to find out the the unique id of usb flash drive in java? Or any other id such that I can identify USB Flash Drive uniquely. Thanks in advance.
Banshidhari
  • 478
  • 2
  • 12
6
votes
1 answer

How to read a file from usb drive in android?

I read the Android documentation for USB support at http://developer.android.com/guide/topics/connectivity/usb/host.html and come to know that Android support the USB host mode, we can read any file from the usb device. In my case I have a pdf file…
user1618714
  • 143
  • 3
  • 6
5
votes
2 answers

How can I read data from a USB Flash Drive?

I am developing an application for google tv and I would like to read an image from a USB Flash Drive connected to the google tv and show it in my application. I already know how to show the image but I dont know how to read it from the usb. I tried…
user1286765
  • 51
  • 1
  • 3
5
votes
3 answers

Looking for C# code for detecting removable drive (usb flash)

I'm looking for a C# code snippet to give me a notification for when a USB drive is plugged into my PC in Windows Vista (or win7)
ajma
  • 12,106
  • 12
  • 71
  • 90
5
votes
1 answer

SEL4 User-space drivers Example

I am trying to write sample usb driver for sel4 in userspace. can anybody have an idea about sel4 user-space driver please share with me... If anyone have example code for sel4 user-space driver(sample drivers) please share with me...
Ashokkumar
  • 115
  • 1
  • 3
  • 8
5
votes
3 answers

Mount USB thumb drive to android things when starting the activity

I am trying to mount the USB mass storage device to my Raspberry Pi running the android things. I came across this answer which shows how to mount it using command line ADB shell. But the problem is I have to run those command every time my device…
Keval Patel
  • 592
  • 3
  • 13
5
votes
0 answers

How to differentiate between USB and SD mount?

I have an Android 6.0 phone with internal memory, removable SD card and USB OTG (pen-drive with micro USB jack) inserted in the phone. Removable SD card and USB OTG was ejected in Android equipment: "Settings" -> "Storage & USB". I can mount…
5
votes
0 answers

Detect media insertion on Windows in Python

I need a program that detects media insertion and also tells me the drive letter so that I can build on it and add other functions to be run when the device inserted event is fired. I think it can be done using WMI using the Win32_VolumeChangeEvent…
Fabio
  • 2,074
  • 2
  • 24
  • 38
5
votes
2 answers

Linux: How to map a blockdevice to a USB-device?

if I plugin a USB memory stick, I see a new folder in /sys/bus/usb/devices ... thus a new USB-device. Also I see a new folder in /sys/block ... thus a new block-device. My question is: How can I get a waterproof mapping between those two devices?…
Alex
  • 365
  • 1
  • 2
  • 9
1 2
3
38 39