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
80
votes
12 answers

Nexus 4 not showing files via MTP

I'm trying to simply write a simple XML file to the SD card and I noticed that my Nexus 4 does write the file, but it is not viewable via the MTP protocol using Windows 7. code: public void onCreate(Bundle savedInstanceState) { …
moonlightcheese
  • 10,664
  • 9
  • 49
  • 75
65
votes
3 answers

How to detect a USB drive has been plugged in?

I want to build a program that detects if a usb (or two or more) are plugged in (and copy all contents to any folder on a hard disk) Any ideas? I have this, using System.Runtime.InteropServices; But it is not the easy way (that I believe). I…
angel
  • 4,474
  • 12
  • 57
  • 89
43
votes
14 answers

Version control on a 2GB USB drive

For my school work, I do a lot of switching computers (from labs to my laptop to the library). I'd kind of like to put this code under some kind of version control. Of course the problem is that I can't always install additional software on the…
Jason Baker
  • 192,085
  • 135
  • 376
  • 510
31
votes
1 answer

How to use USB drive as remote

I have local copies of a GitHub repo on Laptop and Desktop. The Desktop is ahead of the Laptop and the remote GitHub origin. I want to pull changes onto the Laptop, but don't want to push to the public origin. How do I set up a USB stick/external…
binaryfunt
  • 6,401
  • 5
  • 37
  • 59
24
votes
1 answer

How to identify UNIQUELY a USB Device?

Is it possible to identify a USB device by a unique identifier like an Operating system has Mac-ID, Harddisk ID, Ethernet card ID has unique identifiers? I know one can easily change the volume serial number of USB partition or it could be changed…
highlander141
  • 1,683
  • 3
  • 23
  • 48
21
votes
1 answer

Installing the Android USB Driver in Windows 7

I am attempting to install the Android USB Driver in my computer running on Windows 7. I followed the instructions in the developer section of the website, but I am stuck. Here is the website with the…
David Cosman
  • 433
  • 2
  • 4
  • 11
20
votes
5 answers

Portable PostgreSQL for development off a usb drive

In order to take some development work home I have to be able to run a PostgreSQL database. I don't want to install anything on the machine at home. Everything should run off the usb drive. What development tools do you carry on your USB…
Simurr
  • 672
  • 1
  • 4
  • 19
20
votes
1 answer

Watch for changes in external USB storage for Honeycomb or later Android versions

I've got a DSLR camera and Samsung Galaxy Tab running Android Honeycomb. DSLR connected to a tablet using USB-cable (via USB kit enabling host functionality on a tablet). I'd like to being notified when user takes a photo using this external camera,…
Sunseeker
  • 1,503
  • 9
  • 21
19
votes
3 answers

How to get serial number of USB-Stick in C#

How do I get the internal serial number of a USB-Stick or USB-HardDrive in C#?
Xn0vv3r
  • 17,766
  • 13
  • 58
  • 65
19
votes
1 answer

chown command returning Operation not permitted

I am working on a raspberry pi and am having a tough time giving permissions to an external hard drive that I have mounted using the following…
l00kitsjake
  • 955
  • 3
  • 11
  • 24
19
votes
3 answers

Find USB drive letter from VID/PID (Needed for XP and higher)

So I thought I would include the final answer here so you don't have to make sense of this post. Big thanks to Simon Mourier for taking the time to figure this one out. MY WORKING CODE try { //Get a list of available…
tmwoods
  • 2,353
  • 7
  • 28
  • 55
14
votes
2 answers

Custom bootloader booted via USB drive produces incorrect output on some computers

I am fairly new to assembly, but I'm trying to dive into the world of low level computing. I'm trying to learn how to write assembly code that would run as bootloader code; so independent of any other OS like Linux or Windows. After reading this…
Austin Fay
  • 500
  • 3
  • 16
12
votes
5 answers

How to run Git 1.6.x for Windows from a USB memory stick

I would like to run Git 1.6.x for Windows from a USB memory stick. There is a Windows version of Git available at: http://code.google.com/p/msysgit/ Installing and running it from the local harddisk c:\ was absolutely no problem. However, I was not…
Lernkurve
  • 20,203
  • 28
  • 86
  • 118
12
votes
2 answers

Detecting USB Connection -- C# .Net CF 3.5

I have an application (.Net Compact Framework 3.5) running on a Windows Mobile 6.1 device and I want to detect when the USB connection changes (either something connects or disconnects). I was originally using the SystemProperty.CradlePresent…
Chris B
  • 161
  • 2
  • 6
11
votes
4 answers

USB-drive serial number under linux C++

Is there any way to determine s/n of usb-drive in linux using C++ ? If not C++ is there any other way different from hwinfo -disk and hdparm -i ?
uni
  • 539
  • 1
  • 9
  • 21
1
2 3
38 39