Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [usb-drive]

Any storage device with a USB interface (USB stick, USB hard disk, …).

0
votes
0answers
7 views

USB SCSI drive recognized, but can't mount

This is a MyBook AV drive that was recording video from my fios box before I cut the cord. I'm trying to use it as a backup drive with a SCSI to USB cable. Ubuntu 18.04. Detected by lsusb and lsscsi, ...
-1
votes
0answers
22 views

How to setup USB-Stick for booting from Hard-drive installation

I have a laptop with a busted screen, which I'd like to use with an external screen. It'll boot fine from USB, but after having tried to install two GNU/Linux variants (Ubuntu and Devuan), it won't ...
-1
votes
1answer
37 views

ChromeOS - Autorun script located on a USB drive

I am developing a piece of software that is eventually going to run on ChromeOS and will come in the form of an Android app (apk package). We have been asked to come up with a distrubution system that ...
0
votes
1answer
26 views

Allow autorun from USB drive on Xubuntu

Is there a way I can bypass the popup and automatically run the autorun.sh file quietly? I am currently using Xubuntu 18.10.
0
votes
0answers
15 views

my Dell machine does not recognize a certain usb driver

I have 2 Dell machines I'm working on (Inspiron 7520, Precision 7730) with Ubuntu Bionic Beaver 18.04 installed. I have also a USB driver Sandisk 3.0 32G. the drive was working in both of them a few ...
4
votes
1answer
42 views

Changing default USB drive mountpoint owner

I am developing a device that runs Raspbian on Raspberry Pi. The device runs a background process that should be able to access usb drives when they are plugged in. The problem is that the background ...
0
votes
0answers
21 views

USB disk disconnects when exchange quite high data

I have an embedded PC (based on Atom Z3735F with a 32 GB eMMC for o.s.) that I use as NAS with OpenMediaVault 4.1.2-1. On an USB port I connected a 1 TB Hard-disk for storage. Whenever I do something ...
1
vote
4answers
53 views

UEFI-installed Debian on a pendrive doesn't want to boot after being removed once

I read here, once, that installing a Debian 9 on a pendrive (well, in my case it's a SDCard adapter) directly would work, and it did. The problem came up, though, after i unplugged the adapter from ...
0
votes
0answers
188 views

USB Wifi rtl8188ftv does not work though its detected in system kali linux [duplicate]

I bought this new usb adapter to use it on kali linux that I run using vmware station 15 pro. but its not working no matter what I tried, I tried compact wireless, the wifi is now working but cant ...
-1
votes
1answer
44 views

Hard drive - not seen by fdisk, not mounted but detected

I had hard drive which was target location for CCTV, connected to linux mini pc running rsync in background to collect footage from few locations. Well, I noticed that sometimes rsync failed due ...
1
vote
1answer
42 views

Can't unmount drive without killing bash [duplicate]

I don't know whether its normal or not but when I mount a filesystem(ext4 partition, USB, SD card etc) via command line, I can't unmount it because it says target is busy It is the bash process ...
1
vote
0answers
39 views

Problem with USB Driver VID and PID

I'm trying get data from an USB to my application. My device is a Power Frequency Inverter that have a Type B USB as output, in the another side have an USB type A plugged in the my computer. When I ...
3
votes
1answer
415 views

Determine free space available on a USB flash drive in C (linux)

I would like to figure out the available free space on a USB flash drive in a C program in Linux. I have earlier used system("df -h /dev/sda1") to figure it out but using system command in a Linux C ...
0
votes
0answers
64 views

Flash drive detected by lsusb but not by fdisk

I try to format SanDisk Ultra microSDHC UHS-I Card with adapter but it does not appear on fdisk -l. However, it does appear on lsusb as Bus 001 Device 006: ID 1908:0222 GEMBIRD
3
votes
0answers
56 views

In Linux, is there a way to automatically mount a drive when it is inserted? [closed]

I'm trying to automatically mount a drive when a user inputs it and show the progress on my web page so I will be translating this into my python code. Using Linux commands - What would you have to ...
2
votes
1answer
39 views

Is there a way to figure out what physical port a drive is being inserted into through linux?

Without knowing the order of which drives are being inserted and which ports they are being inserted (by human eye), is there a way to tell where they are being inserted using linux commands? I need ...
1
vote
1answer
40 views

What is the deal with this usb drive with a second block device?

I have a giveaway usb stick and when I plug it into my computer and run lsblk it shows two block devices, i.e. sdb and sdc. sdb of them contains almost all the free space ( ~15G) and the sdc one is ...
1
vote
0answers
30 views

Open USB off specific port in linux

I am using a raspberry PI. I want to create a USB bridge, meaning I can transfer the files from one USB to another automatically. My problem is finding the specific USB I want to take the files from,...
1
vote
0answers
37 views

Usb stick got corrupted after plugging it to a windows PC

I'm having a very strange problem. I have a flash drive which is formatted as FAT32. I copied a file to the flash drive and lend it to a friend, who plugged it to his windows PC. The PC did not ...
0
votes
0answers
42 views

Did this dd command run too fast? [duplicate]

Usually people want to speed dd up but I want to slow it down, because I think there is something fishy going on with its speed. sudo dd if=hannah-montana-linux-amd64.iso of=/dev/sdb1 bs=512k 5988+...
1
vote
2answers
111 views

USB hard drive I/O slow speeds

I have several Mediasonic ProBox HF2-SU3S2 with 4 drives - all with the same symptoms - extremely slow I/O (at best, about 10MB/s write). Each unit is configured with a software RAID 5 using mdadm ...
-1
votes
1answer
44 views

How to move partition in a usb to the first position

I've Recalbox installed in the USB with 16 gb 3.0. It's partitionated in 4 because Recalbox needs at least 3 partitions, and it has a fourth partition of 5 gb that is called Documents. The problem ...
0
votes
0answers
20 views

How is automount behaviour determined?

On a Debian 9.4, a certain external disk, full of Windows partitions (ntfs for 3 of them, UEFI for another one) makes automount don't mount the same partition depending on the usb - disk enclosure ...
1
vote
1answer
100 views

Mint “cow format specified as overlayfs and no support found” error

On a Mint 19 Mate pen drive persistent setup, I attempt to copy the casper-rw persistent file limited to 4GB to an ext4 partition. I am looking for the steps to transfer applications and data to an ...
-5
votes
1answer
40 views

why can't I instialize the struct member fields separately?! (In USB device driver) [closed]

I'm trying to implement usb device driver. I've wrote #include<linux/module.h> #include<linux/kernel.h> #include<linux/usb.h> struct usb_device_id IDtable[]={ {USB_DEVICE(0x067b,...
1
vote
0answers
18 views

Linux Mint cannot access USB drive from an admin accout. Drive is detected and works fine in other accounts on the same machine

I have a weird problem on a Linux Mint 18.3 Serena Mate install. USB drives (I have tried a few) are detected and appear on the desktop but cannot be accessed in this account. The account has admin ...
0
votes
1answer
181 views

Nothing Is Working: Installing Debian on USB

I need to be able to run a linux distribution on my Windows 10 laptop, so I decided to go with Debian. I want to have a USB flash drive that I own run Debian on my laptop, instead of having my laptop ...
1
vote
1answer
88 views

When installing Debian it on a USB external hard drive, Can the file system be corrupted during disk shutdown?

I want to install Debian on an external hard drive but I'm not sure if this could corrupt the file system. I would like you to explain to me if there is any modification to be made to the operating ...
1
vote
1answer
64 views

How to format a rogue flash drive? (GParted tries to touch file system footer beyond actual capacity, and freezes up indefinitely) [closed]

On a limbo-type fake USB or SD card, all sectors starting from a specific position on the drive are unavailable (zeroes only or ones only or unreadable sector response). A flash drive might indicate ...
0
votes
1answer
50 views

How do I format a hard drive EXT4 with lowest possible inode disk usage (for 1 Dir and 1 Massive File)?

I am trying to prepare a hard drive for burst mining on linux and want to maximize the hard drive space available for the plot file. So for this I need to set the inodes to the minimum possible that ...
0
votes
0answers
57 views

Broken links in /dev/disk/by-path

I work with a lot of low quality USB flash memory modules - some of them can even hang the USB controller and block all traffic until I remove them. I'm testing these drives using f3 and a custom ...
0
votes
0answers
97 views

Multiple links in /dev/disk/by-path pointing to the same /dev/sd* device files

I'm working with mass testing and duplication of USB flash memory on Linux. The script I wrote for this stores paths to /dev/disk/by-path to detect if a device was plugged into a specific USB port - ...
5
votes
1answer
120 views

System lags when doing large R/W operations on external disks

I am having some issues with system-wide latency/lagging when doing large disk imaging operations on an Ubuntu 18.04 system. Here's the system specs: Processor: Intel Core i7 (never near capacity on ...
-1
votes
1answer
156 views

USB port only works when device is plugged prior to boot on Mint 19

In Linux Mint 19 Tara, my USB port only work if a device is plugged before I power on the machine. If I unplug the device while the computer is on the USB port is no longer usable.I have the problem ...
0
votes
1answer
165 views

/etc/fstab for my usb drive won't boot

I've used sudo blkid to mount my drive with fstab like this on /etc/fstab: UUID=1169dd89-29fe-436c-9aef-fa78ea7ee138 /media/hd ext4 defaults,auto,umask=000,users,rw 0 0 I also tried PARTUUID=...
13
votes
2answers
703 views

Timestamps of files copied to USB drive

I have a problem with the timestamps of files copied from my PC or laptop to USB drives: the last modification time of the original file and that of the copied file are different. Therefore, ...
1
vote
2answers
81 views

How to reset a specific USB flash memory device?

Sometimes I need to unplug and connect a USB flash memory device to fix a problem. Is there a way to do it in software?
0
votes
1answer
374 views

How to enable/disable autoruns in Linux Mint 19 when a USB drive is plugged in?

I am running Linux Mint 19, and I would need the system to avoid opening any windows when I plug in a USB drive. I can't seem to find anything in the System Settings to configure this behavior. I have ...
1
vote
2answers
100 views

USB speed bottlenecks (specifically while running virtual machine)

This question is mostly about USB performance on Linux, but more specifically performance issues when running virtualbox images off of my USB. I posted this on the virtualbox forum, but so far no one ...
0
votes
3answers
167 views

I have completely messed up my USB drive. Is it possible to recover it?

Originally it was an empty 4 GB FAT32 USB stick. Then I installed OpenBSD 6.3 by dding install63.fs into the usb. Finally I tried to restore it's original state with many commands (such as dd, mkfs, ...
1
vote
0answers
51 views

Ubuntu conflicting drivers [closed]

I'M working on usb cdc acm. My code is stopping while run time.Is it because of conflicting drivers? But it is detecting the boards i'm connecting to pc. Why it is happening *Is there any problem ...
0
votes
0answers
289 views

smartctl over USB - on external hdd maxtor m3

any hint to use smartctl on Maxtor M3 2,5" 4TB external HDD? It is listed as supported here: https://www.smartmontools.org/wiki/Supported_USB-Devices I tried these options: sudo smartctl -a /dev/...
0
votes
0answers
268 views

USB gamepad driver for Linux

My little efforts in the image and likeness of the driver for the joystick game console "XBOX" was written a small module, at least for the pre-test check whether the key press or not. A link to the ...
0
votes
1answer
409 views

How to access USB disk from terminal

I have few files in a USB disk named F:. I The files inside it are large. I do not want to move them to my harddisk. I want to make some comparison, e.g. diff between files from inside the USB and in ...
-1
votes
1answer
151 views

I/O errors while copying files on a USB hard drive

I have an external USB hard drive (WD Elements, 1TB), which is already partially filled (~370GB available): $ mount | grep store17 /dev/sde1 on /store17 type ext4 (rw,nosuid,nodev,noexec,relatime,...
1
vote
1answer
74 views

How to remove device id from manually entered usb-serial driver

I previously followed the answer in this question: Attaching USB-Serial device with custom PID to ttyUSB0 on embedded Now, I need to revert that step so that the device id I echoed to new_id doesn't ...
3
votes
0answers
138 views

How does the Linux kernel decide if a block device gets the read-only flag set by default?

I have a USB stick which (for about 2 months) constantly gets mounted read-only. After a bit of research and testing I found out, that the block devices of the device itself (/dev/sdc) and one of the ...
0
votes
1answer
199 views

Slow Maxtor/Seagate external HDD [closed]

Recently I bought a new Maxtor M3 Portable external HDD with USB 3.0. During file transfers it had very slow writing speed, starting at 75 MB/s and decaying fastly to <1 MB/s. What I tried: using ...
1
vote
1answer
594 views

USB drive not detected

I had an USB on a headless raspberry pi running debian, but after rebooting without unmounting (there were programs running on the mounted folder), I couldn't use the USB anymore. The following is the ...
0
votes
0answers
39 views

Udev inhibits auto mount [duplicate]

I have been running Ubuntu 14.04 until I installed 18.04. On 14.04 I successfully created a udev rule that upon certain USB stick insertion it run a script AND the system used to auto-mount the stick (...