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.
574
questions
-1
votes
0
answers
14
views
Asus webcam USB.2 problem in VMware workstation [closed]
I have problem with using webcam in guest VM windows 10 pro, when I go to VM>>removable devices and have such a menu (enter image description here), I have choose connect, but this message have ...
-1
votes
0
answers
50
views
QFileSystemModel doesn't update USB drive contents
I have a legacy Qt application with the ability to copy files to a USB drive.
The application shows 2 treeviews, one for local files, one for files on the USB drive.
Problem:
I copy a file from the ...
0
votes
0
answers
49
views
udev rule to auto-backup USB drive not running full script
I have a project in Linux to trigger scripts to run actions on a newly inserted USB drive. (Udev hook)
One script I want to run is a backup that copies the USB drive contents using a C program. The ...
-2
votes
0
answers
34
views
How to download the HID.dll (USB) for Raspberry Pi 4 (64) for C# Dot Net Core application
I am new to Raspberry Pi. I am migrating an existing C# .NET Framework 5.4 based console application to C# .Net Core /7.0 (cross platform for Raspberry Pi 4, Raspbian OS). This application ...
0
votes
0
answers
45
views
USB Device driver failed to send descriptor / USB enumeraion
I am writing a usb driver from scratch on STM32F4 to work as a msc deivce. However it always failed at enumeration process. Here is a sequence of events happened when I tested it:
On start, it ...
0
votes
1
answer
26
views
Merging a custom application installer with CP210x driver installation (Windows 8,10,11)
I am relatively new in this field, so apologies for any obvious misunderstanding in advance. Using WixToolset I am trying to merge the CP210x USB driver into my application installer with not a lot of ...
-5
votes
1
answer
43
views
Can i save files to a usb drive in python
I am trying to make a recipe database for my grandma and I would like to learn how to save the recipes to an sd card.
0
votes
1
answer
81
views
How to specify USB mass storage among USB devices?
I am making a function for users to transfer data to USB and I am using 'usb' package for it.
If I do const devices = getDeviceList();, then I get all devices info connected through USB such as mouse, ...
0
votes
0
answers
12
views
Windows group policy not getting applied
Unable to access USB pen drives on my Windows 11 laptop.
Enabled in group policy but the settings keep getting reverted back to disabled mode.
Once enabled its working but settings goes back to ...
0
votes
0
answers
29
views
ACTION_OPEN_DOCUMENT_TREE: set initial URI to an external USB hard drive
I found this Question which is similar to what I am trying to do. I have been using this code as my guide. I would like to have the initial URI be set to an external USB hard drive. Is this ...
0
votes
0
answers
42
views
A problem about usb keyboard driver in linux-2.6.34
The usb keyboard driver of Linux is drivers\hid\usbhid\Usbkbd.c, but when I use printk to output a message in this program, when I press the keyboard, I don’t get the prompt message?
I want to know ...
0
votes
0
answers
19
views
Use docker host usb drive to hold image, container and persistent data
My current development machine has limited storage space. I have several historical docker projects that I need to keep intact.
I would like to use a usb drives to hold all of the parts (images, ...
0
votes
0
answers
48
views
Getting the information for a USB drive connected to Android tablet
I have the following code in C#.
var drives = DriveInfo.GetDrives();
var removableDrive = drives.Where(d => d.DriveFormat != null && d.DriveFormat.Contains("msdos"))....
1
vote
0
answers
226
views
Using TUD_CONFIG_DESCRIPTOR and TUD_HID_DESCRIPTOR in tinyusb library for USB device creation
I need help for creating an USB HID device using tinyusb library.
When I looked offical usb documentation. I saw something like belown picture
tiny usb library has a typedef for device descriptor but ...
0
votes
0
answers
21
views
How do I debug the AllowAutoPlay procedure not being called in a WPF app
Reference: How to prevent autoplay and run my own app when inserting an USB-Flash drive
From a WPF app I need to suppress Autoplay for digital cameras I attach with a USB cable.
Thomas provided a good ...
0
votes
0
answers
232
views
STM32F105 USB Virtual Port Com
I'm having trouble making stm32 work as a communication port over USB.
I can't believe it's so difficult to send a string over USB.
I created a new project using STM32CubeIDE.
I performed the ...
0
votes
0
answers
220
views
WINAPI - Request not supported for getting the storage information of a USB drive
I already know the VID and PID of the USB, but I can't seem to access the storage information of the USB drive.
The program outputs a GetLastError() code of 50, which corresponds to "The request ...
0
votes
0
answers
20
views
How to add an entry in the window that pops when mounting a USB drive to Windows
I would like to know the means off adding one custom entry to the window that pops out when after clicking in the notification that appears after you connect an external USB drive on Windows. I have ...
0
votes
1
answer
48
views
Custom icon to a link in USB Drive with relative path
I have to distribute a project in several USB Drives. Inside them there's a folder containing the entire project (which will be made hidden) and a link to it with a custom icon applied.
The problem is ...
0
votes
0
answers
71
views
Is it possible to send IRP packet from Android Phone to PC via USB to Remote wake up a sleeping PC (IRP_MN_WAIT_WAKE)
I have an old Android Phone that I want to be able to use to remotely wake-up a PC in my dorm (don't have ethernet to do WOL). My plan is to remote into my Android Phone, then send the ...
0
votes
2
answers
126
views
`WriteFile` error 1006 when writing to VirtualBox-redirected USB flash drive
I need to decompress an archive (.zip) file onto a USB stick, but after a successful number of CreateFile()/WriteFile() calls, I get various errors from WriteFile(), most of the time the first ones ...
0
votes
0
answers
18
views
Is it possible to open a file that only works on a specific flash memory without flash?
i had a presentation file named as "abc.exe" in the usb key and can only run with that usb key in it. I copied files just in case. Now usb key died and the presentation doesn't work. What ...
0
votes
0
answers
16
views
create an tempDir and save it into an IFile with the external_drive_lib
Currently i am Getting from the IDrive an folder which has a file and i am copying this file into a tempfile which i am reading with the Streamreader, but is there a way to create this IFIle or i ...
0
votes
0
answers
59
views
Is it possible to get information about an external drive in Lua?
I was wondering if it was possible to get the information of a drive such as the capacity, drive letter, serial number and if the drive is an external one and other such info in Lua? I couldn't find ...
0
votes
2
answers
1k
views
How to access files on an attached USB flash drive [Android 12]
I am trying to read files from an attached USB flash drive, I have scoured through countless Stackoverflow questions and nothing is working.
I am able to detect when a USB is attached and I know that ...
0
votes
0
answers
15
views
Read a USB flash drive from Android studio Electric Eel on windows-10..?
Installed the Windows driver and detected on Windows-10.
From Android Studio Emulator not able to access the USB drive.
Please help..?
I tried in Windows it is able to access the contents.
But not ...
0
votes
0
answers
84
views
How to read PC USB ports in Android emulator?
I have a usb device for transmitting data. the device works perfect in windows OS. I am to use the device in Android 13 the Device acts as Human Interface Device.
I am using Android Emulator for ...
0
votes
0
answers
58
views
C# Check if Usb Drive is removable
I write Files on a USB Drive and sometimes i have a bug where the popup of end of files transfert is displayed before the export is successful, therefore the user unplug the key too soon.
So have you ...
1
vote
0
answers
526
views
Can I use ESP32-S3 as USB HUB or USB HOST for USB data communication?
I have a system consisting of a computer and various sensors. The sensors have a USB communication interface. I want to design GPIO and communication card between computer and sensors. I want to read ...
0
votes
1
answer
441
views
GitHub SSH key on a USB drive
I'm curious if I can put a GitHub SSH key on a USB flash drive as a singular key and remove the other SSH keys from my GitHub. I've found one source, but it doesn't necessarily specify that it's for ...
-1
votes
1
answer
324
views
Troubleshooting Windows Event Viewer USB error 0x26 status 0xc000038e
I need some guidance in how to troubleshoot a low level issue I am facing with some USB devices.
Background: I have a .NET Windows Service that, scans connected USB devices via WMI queries + reads low ...
1
vote
0
answers
134
views
Read data from USB threw STM32
I want to read .txt file from Pendrive threw STM32. and send on RS232 port.
I found many circuit and code but I find read data from SD card but I cant find how to read pendrive.
0
votes
0
answers
30
views
Redirected cu output doesn't produce output in longer pipe [duplicate]
I have some usb device (connected to my mac) that produces text output. I use cu with tee to redirect the output to some file:
sudo cu --speed 57600 --line /dev/cu.usbmodem54240287031 | tee cu.log
cu....
0
votes
0
answers
45
views
How to detect USB mixer(audio) device but not mouse, Keyboard, or other USB devices in C++ code?
Currently, I am using a recording application which gets input from USB mixer device. I wrote a code that whenever the device is disconnected, the recording should be stopped and when it reconnects, ...
0
votes
0
answers
489
views
Run shell script when usb is connected
I would like to understand how does a script on a usb stick can lunch itself. I would like to make a script that is on my usb stick and when the usb is connected it lunch a code like this:
#!/usr/bin/...
0
votes
0
answers
104
views
Unmount/Eject Mobile Device using c#
Im trying to restrict user from connecting any type of mass storage device to the machine. Whereas I wanted to allow only "yubikey" to access on machine. I have tried many solutions avilable ...
0
votes
1
answer
127
views
How to connect a data USB port on a device (designed for connecting flash drive to extract data) to a computer?
I have a Hi-pot tester (used for testing electrical equipment) that has a USB port to extract data after testing. Is there a way to connect this port directly to a computer? Can the data transfer ...
-1
votes
1
answer
74
views
How do you launch a C# Console App from a USB device?
I would like to run a console app from a USB drive. I have the project, the installation files, the deployable folder, and the starting .bat files all on the USB drive. The machine has the proper ...
0
votes
1
answer
526
views
How do you create a usb drive that can boot on both UEFI and Legacy computers? (Without 3rd party programs)
I want to create a USB image that can boot on both UEFI and Legacy computers. I have accomplished this task with a MDT image by putting the boot files in a fat32 partition and the Deployment Share in ...
0
votes
0
answers
363
views
How to Integrate external Camera device to Android
Requirement:-
I have to make a android accessibility service application which take camera frames through any USB Camera Device.
Camera should be always turn on.
Try to use camera2 Api to connect ...
0
votes
0
answers
171
views
How to read sdcard/pendrive from windows desktop application using flutter?
Windows desktop application : Have to read sdcard/pendrive/usb drive using flutter code for windows application
1
vote
1
answer
154
views
Assembly boot sector working on VirtualBox but not on real hardware [duplicate]
I am trying to write a simple bootloader in assembly. What I am trying to do is print a few strings, then wait for a keypress. This is my code:
[org 0x7c00]
mov al, 0
mov ah, 0
mov ax, 0
mov bx, 0
mov ...
0
votes
1
answer
3k
views
Docker Error response from daemon: failed to mount local volume
I am trying to use a USB drive or an external storage as volume for a mysql docker container. I'm using Linux Ubuntu 22.04.1 LTS as host and docker 20.10.14.
If I mount the USB drive to a directory ~/...
1
vote
3
answers
673
views
How to list external drives with Python? (external USB HDD, external USB flash drive)
I have read Is there a way to list all the available Windows' drives? and Cross platform way to list disk drives on Linux, Windows and Mac using Python? and methods like:
import win32api
print(...
1
vote
0
answers
76
views
Asking user to choose folder on my USB connected Android
I am using the following code to enable the user to chose a folder:
from tkinter import Tk
from tkinter.filedialog import askdirectory
path = askdirectory(title='Select Folder') # shows dialog box and ...
-1
votes
1
answer
725
views
Windows Defender ATP - Disable .LNK files from running on USB devices
Dear Stackoverflow Community!
I've got a question concerning Windows Defender, Attack Surface Reduction and Endpoint Device Manager.
To prevent LNK Worm Expoitation I want to block .LNK files on ...
0
votes
0
answers
128
views
Why usbkbd driver in Linux only deal with single endpoint interface?
I am reading the source code of Linux driver about usbhid and usbkbd:
if (interface->desc.bNumEndpoints != 1)
return -ENODEV;
endpoint = &interface->endpoint[0].desc;
if (!...
0
votes
1
answer
210
views
Linux terminal command execution with java
i need help with my program.
what I have to do is that when I click a button my java program will have to execute commands on the linux terminal as shown below, and after that it will have to shut ...
0
votes
1
answer
365
views
Format multiple USB drives in powershell
New to powershell and trying to figure out how to format all attached usb drives. The following code prompts for a drive letter during format, keeps iterating by one and won't escape that assign drive ...
0
votes
0
answers
27
views
Bootloader works fine in QEMU but restarts on real hardware [duplicate]
org 0x7c00
bits 16
jmp start
resb 0x50
start:
mov ax, 0x2401
int 0x15
mov ax, 0x3
int 0x10
cli
lgdt[gdt_pointer]
mov eax, cr0
mov eax, 1
mov cr0, eax
jmp 0x08:...