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-drive
570
questions
80
votes
12
answers
68k
views
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(...
66
votes
3
answers
116k
views
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;
...
43
votes
14
answers
14k
views
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 ...
31
votes
1
answer
21k
views
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 ...
24
votes
1
answer
38k
views
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 ...
21
votes
1
answer
188k
views
Installing the Android USB Driver in Windows 7 [closed]
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 ...
20
votes
6
answers
31k
views
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 ...
20
votes
1
answer
1k
views
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 ...
19
votes
3
answers
38k
views
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#?
19
votes
1
answer
66k
views
chown command returning Operation not permitted [closed]
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 tutorial:
http://www.howtogeek.com/139433/how-to-turn-a-...
19
votes
3
answers
13k
views
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
...
14
votes
2
answers
3k
views
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 ...
12
votes
5
answers
5k
views
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 ...
12
votes
2
answers
6k
views
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 ...
11
votes
4
answers
17k
views
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 ?
11
votes
2
answers
31k
views
How do I check if an USB drive is bootable?
I just created an USB drive and would like to check if it's correctly bootable without rebooting my actual computer. How should I do?
10
votes
4
answers
14k
views
MBRFormat does not appear to be a valid volume name for its file system
I am using macOS Mojave 10.14.6. I am trying to re-format my USB to FAT.
I am getting this error MBRFormat does not appear to be a valid volume name for its file system. What does it mean and how to ...
10
votes
4
answers
48k
views
Where to find or download USB Driver folder?
I am following the guide on http://developer.android.com/tools/extras/oem-usb.html for installing driver software so I can run applications on my actual Nexus 7. I got to this step in the directions(...
10
votes
11
answers
3k
views
OK Programming language from USB stick with no installation
I'm looking for a compiler or interpreter for a language with basic math support and File IO which can be executed directly from a memorystick in either Linux or Windows. Built in functionality for ...
10
votes
6
answers
5k
views
How to run C# Windows application from USB without installing .NET framework on client system
Is it possible to run a C# .NET Windows application (.exe) from pendrive or USB without installing the .NET framework on the client system?
If so, how can I make it work?
9
votes
1
answer
11k
views
Finding usb drive paths in Mac OS 10.4
The system_profiler command in Mac OS 10.5 shows the mounted volume paths for the associated USB drives. In 10.4, however, they are not shown. Any ideas on how I can get the mount location for USB ...
8
votes
2
answers
18k
views
How can i get all USB drives (plugged in) [duplicate]
Possible Duplicate:
Get List Of USB Devices
Im making a WPF app.
Im looking for a way to list all plugged in USB devices (disks!) in my comboBox.
I can list all drives using DriveInfo.GetDrives(...
8
votes
2
answers
8k
views
Get the serial number of USB storage devices in .Net Core 2.1
How can I get the serial number of USB storage devices in .Net Core 2.1?
I found different solutions, but sadly they don't work due the lack of Windows registry and WMI support in .Net Core.
In ...
8
votes
2
answers
10k
views
Standalone c++ compiler
I would like a standalone C++ compiler that doesn't need installing. Something that can run from a directory or from a USB key.
I have googled it, but I can't really find exactly what I am looking ...
8
votes
4
answers
13k
views
How to detect flash drive plug-in in Windows using Python?
I want to make my Windows computer run a Python script when it detects that a flash drive which has a particular name (for example "My drive") has been plugged in.
How can I achieve this?
Should I ...
8
votes
2
answers
14k
views
Upstart calling script (for inserted USB-drive)
I know that Ubuntu (and Fedora) uses Upstart istead of the classical System V init daemon (SysVinit).
I would like to know how to detect when a USB-drive has been inserted, mount it and copy some ...
8
votes
2
answers
14k
views
Python portable, linux & windows
I am using linux at home but at school we use windows 7. I want to have python installed on my usb to that I can use it for both windows and linux (ubuntu 13.04). Is there a way that I can install ...
8
votes
3
answers
8k
views
Discovering USB Mass Storage Devices with Java
The story behind...
I really like TV shows but I go back home only twice a month. The rest of the time I live in a house without internet (close to my university though, so free wifi rocks! - when it ...
8
votes
3
answers
5k
views
WinAPI calls to access USB storage which has no drive letter?
I've noticed, that some USB storage devices don't register in Windows as regular drives, in that they don't even get assigned a drive letter. Therefore, I can't apparently access them using the ...
7
votes
2
answers
36k
views
How can I run nodejs from usb drive?
I would like to know how can I run nodeJS express from usb drive on a Linux/gentoo configuration ?
7
votes
7
answers
7k
views
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 ...
7
votes
4
answers
3k
views
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 ...
6
votes
8
answers
1k
views
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 ...
6
votes
2
answers
18k
views
USB device detection on /dev directory on Linux
Using the lsusb command in Linux I have come to know about bus and device numbers, along with its name of newly attached USB devices.
But how can I know on which device directory (/dev/*) USB device ...
6
votes
3
answers
9k
views
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 ...
6
votes
2
answers
8k
views
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 ...
6
votes
5
answers
11k
views
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 ...
6
votes
1
answer
545
views
Write file in flash drive (android only)
Is it possible to save files to a flash drive using flutter?
I'm using a pendrive with a USB c port like this:
https://www.bestbuy.com/site/sandisk-ultra-dual-drive-go-1tb-usb-type-a-usb-type-c-flash-...
6
votes
0
answers
314
views
can we detect the unique serial no of USB Pen Drive in java? [duplicate]
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 ...
6
votes
1
answer
5k
views
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 ...
5
votes
3
answers
5k
views
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)
5
votes
1
answer
60k
views
Auto run appilication while plug in USB drive [closed]
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 ...
5
votes
6
answers
11k
views
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 ...
5
votes
3
answers
31k
views
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?
5
votes
2
answers
9k
views
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 ...
5
votes
1
answer
4k
views
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<...
5
votes
4
answers
6k
views
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 ...
5
votes
2
answers
10k
views
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 ...
5
votes
3
answers
2k
views
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 ...
5
votes
2
answers
4k
views
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 ...