Questions tagged [usb-drive]

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

0
votes
1answer
13 views

Kali on 32gb flash drive displays 67gb storage

I'm new to linux and how it works. I recently installed a kali linux image onto a 32gb flash drive and stuck it into my pc and booted from it. All went well, and so I ran the df command and got this ...
3
votes
2answers
38 views

Installing Arch onto a USB key from QEMU emulation, but all efivar files missing

I am really new to this, and I tried to install archlinux (from the official Arch ISO: here) onto a 128GB USB 3.1 Samsung key (this one) using the x86 emulator QEMU on MacOS. I finished installing ...
1
vote
0answers
45 views

Windows and Debian-based dual boot installation problem

I Need to have Windows 10 and Debian in dual boot on my Laptop. I've installed Windows 10 ( uefi mode) as primary OS. When i try to boot into my USB Stick created for Uefi with the installer of Debian,...
0
votes
3answers
28 views

USB-attached HDD visible in dmesg, but can't be opened with fdisk

I've attached a SATA to my computer via a "plugable" (that's the company name) disk docking station. The docking station is fine, since I've attached another HDD and was able to see its partitions' ...
1
vote
0answers
60 views

USB don't show on fdisk

I have a USB and for some reason i can't access it. On fdisk -l i don't see the USB, also not show on gparted or anywhere.... I don't remember the format of the usb. Kernel version: 4.15.0-50-...
0
votes
1answer
37 views

Running an executable off of a usb drive

I have an executable on my usb drive. I cd to the directory, ./app yields permission denied. So I did chmod u+x app. Then, ./app. But still, permission denied.! Then I read something here: That ...
2
votes
0answers
12 views

Avoid pipeline stalls from write caching to usb drive

I have the following process I use for backups: btrfs send snapshots/home-2016-06-04 | zstd --verbose -T4 - | gpg --batch --passphrase-file /tmp/secret --compress-algo none --symmetric - > /mnt/...
0
votes
1answer
66 views

How to fix bad magic number - Superblock on Linux

I'm running a dual boot system with Windows 7 and Puppy Linux Ubuntu based " Bionic " installed on a separate partition of my main drive. Completely separate from that I have a 1Tb Western Digital ...
-2
votes
2answers
67 views

Kali Linux installation on USB drive

I want to install Kali Linux on a 64 GB USB drive and want to take it just anywhere and plug it in any PC and have my setup up and running. IOW I just want a HDD like complete Kali Linux portable ...
0
votes
0answers
9 views

Can the USB subsystem copy only one file at a time?

Xubuntu 18.04 up-to-date $ uname -a Linux haggis 4.15.0-48-generic #51-Ubuntu SMP Wed Apr 3 08:28:49 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux In one session, I'm copying a lot of files from a LV with ...
2
votes
0answers
17 views

Why does rsync keep copying without actually writing after an error?

I've been trying to copying a bunch of files between two USB drives, the source NTFS, and the destination FAT32. There were a couple of files hidden amongst the source data that were > 4GB. I used: ...
1
vote
0answers
68 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
1answer
51 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
33 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
18 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
48 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
50 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
68 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
606 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
139 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
69 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
45 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
477 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
230 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
59 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
43 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
33 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
41 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
58 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
160 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
50 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
24 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
141 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
46 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
21 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
241 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
102 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
79 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
65 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
88 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
120 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
145 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
217 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
194 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
822 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
107 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
564 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
169 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
225 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, ...