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
Filter by
Sorted by
Tagged with
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(...
moonlightcheese's user avatar
66 votes
3 answers
115k 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; ...
angel's user avatar
  • 4,532
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 ...
Jason Baker's user avatar
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 ...
binaryfunt's user avatar
  • 6,720
24 votes
1 answer
37k 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 ...
highlander141's user avatar
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 ...
David Cosman's user avatar
20 votes
6 answers
30k 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 ...
Simurr's user avatar
  • 682
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 ...
Sunseeker's user avatar
  • 1,503
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#?
Xn0vv3r's user avatar
  • 17.9k
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-...
l00kitsjake's user avatar
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 ...
tmwoods's user avatar
  • 2,373
14 votes
2 answers
2k 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 ...
Austin Fay's user avatar
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 ...
Lernkurve's user avatar
  • 20.8k
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 ...
Chris B's user avatar
  • 161
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 ?
uni's user avatar
  • 591
11 votes
2 answers
30k 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?
lolesque's user avatar
  • 11.2k
10 votes
4 answers
13k 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 ...
leopoodle's user avatar
  • 2,360
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 ...
tovare's user avatar
  • 4,077
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?
venkatesh0's user avatar
9 votes
3 answers
47k 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(...
committedandroider's user avatar
8 votes
2 answers
17k 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(...
no9's user avatar
  • 6,494
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 ...
Thomas's user avatar
  • 1,095
8 votes
2 answers
7k 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 ...
hdev's user avatar
  • 6,327
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 ...
Mahela Munasinghe's user avatar
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 ...
user avatar
8 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 ...
Abdullah Jibaly's user avatar
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 ...
user avatar
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 ...
dierre's user avatar
  • 7,150
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 ...
akavel's user avatar
  • 4,845
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 ?
user3379947's user avatar
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 ...
user408962's user avatar
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 ...
Phil's user avatar
  • 6,609
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 ...
Petrunov's user avatar
  • 774
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 ...
Mr. Shickadance's user avatar
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 ...
Antonio Escalera's user avatar
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 ...
maxdaniel98's user avatar
  • 6,843
6 votes
1 answer
447 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-...
Woton Sampaio's user avatar
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 ...
Banshidhari's user avatar
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 ...
user1618714's user avatar
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)
ajma's user avatar
  • 12.1k
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 ...
user avatar
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 ...
BobC's user avatar
  • 412
5 votes
3 answers
30k 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?
rahul's user avatar
  • 186k
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 ...
doc's user avatar
  • 289
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 ...
Tom's user avatar
  • 673
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 ...
Alex's user avatar
  • 365
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 ...
Keval Patel's user avatar
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 ...
user1286765's user avatar
5 votes
1 answer
476 views

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(...
Ashokkumar's user avatar
5 votes
0 answers
646 views

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: "...
isabsent's user avatar
  • 3,741

1
2 3 4 5
12