Questions tagged [usb-drive]
Any storage device with a USB interface (USB stick, USB hard disk, …).
696
questions
0
votes
0
answers
19
views
What's wrong with my USB port?
One side USB slot on my laptop is not always allowing data connection, but seems to reliably provide power to things plugged into it. The other side USB provides power and data connection to the ...
0
votes
0
answers
63
views
Fast method to transfer multiple large files to a USB disk with progress update in command-line
I need to transfer a number of large files of specific types from an internal disk to an USB SSD drive. The files I need to transfer are in the range of 5-200GB.
I would like to monitor the overall ...
0
votes
0
answers
61
views
How do I make a bootable USB stick with Clonezilla manually, using a zip (not ISO)?
I want to make a bootable USB stick with Clonezilla. I'll edit some things to use the preseed functions, and therefore want to be able to edit files on the stick. Earlier I've printed the Clonezilla ...
1
vote
1
answer
43
views
USB Drive sometimes changes the Drive name
I have two USB Drives, I created partitions, and formatted it to ext4.
Running fdisk -l shows that I have /dev/sda1 and /dev/sdb1
Device Boot Start End Sectors Size Id Type
/dev/sda1
/dev/...
1
vote
0
answers
37
views
udev rules only running on first plug-in but not re-plug?
I'm not sure why udev rules only trigger on first plug-in of a USB3 NVME enclosure but not any follow-up plugins. If i run udevadm trigger then the rules run again as expected. The goal of the rules ...
0
votes
0
answers
36
views
How do you edit the UEFI entries of a USB drive from a legacy booted system?
I've been trying to figure out how to edit the EFI entries of a USB drive I have using efibootmgr but it only gives me EFI variables are not supported on this system. even when I point it at the USB ...
0
votes
2
answers
48
views
How to unmount an non-existent filesystem with opened filed?
I have an Yocto-based embedded Linux system (kernel version 5.10.48) and encounter a problem with USB flash drive removal.
I have a script that is run by udev when an USB drive is plugged or onplugged....
0
votes
0
answers
61
views
How can I access a flash drive without having to be root?
I was wondering how I could access a flash drive without having to be root?
I am accessing it on NixOS below (and will have to access it on a printer, which may have the permission problem).
$ lsblk
...
0
votes
0
answers
90
views
File manager not authorized to mount external drives
I have a problem authorizing my file manager to mount external drives. Inside thunar, I get this error:
failed to mount "flash-drive"; not authorized to perform operation
I've already tried ...
0
votes
0
answers
11
views
Decrypt USB Expansion (something happened while using "Disks")
New user of Ubuntu 20.04 here and royally messed up already. I apologize but I need someone with patience to support and hopefully help me.
I used a Seagate harddisk to backup my files from the ...
0
votes
1
answer
27
views
Corrupted pen drive formatting error
I have a 32GB pen drive i have inserted the pen drive but its not showing up (USB not recognised). I checked it in the disks window it is showing up there, but showing the size to be 4.2 MB. I have ...
1
vote
1
answer
67
views
How to add write protection to a USB drive in Ubuntu or Mint?
I have an NTFS USB hard drive containing data that I'd like to protect. What's the best way to achieve this in Ubuntu or Mint?
2
votes
1
answer
71
views
How to purposefully corrupt/break a USB drive for testing?
I am going to be testing user flows that use USB mounting/unmounting and file placement on a USB on a Linux based machine. One of our use cases is to notify the user if the USB device they have ...
2
votes
0
answers
26
views
BTRFS cannot mount after lossing USB connection
I had a btrfs disk connected by USB, but briefly lost the connection (SATA connector fall off drive). I tried to unmount the disk and remount, but it refuses. I keep getting:
$ mount /dev/sdf1 /mnt/...
0
votes
1
answer
111
views
help using bind/unbind to power on/off USB drive
I'm trying to power on/off an USB drive using bind/unbind command following this post, can someone please point me to the right direction where to find tutorial/explanation on bind/unbind usb drive (...
0
votes
1
answer
58
views
Why dd seems to provide corrupt copies?
Tried this with different machines running Centos and Ubuntu, with different USB flash drives but dd keeps producing unbootable flash drives.
$ sudo dd if=foo.iso of=/dev/sdb bs=1M status=progress &...
0
votes
0
answers
55
views
does linux udev disconnect and reconnect usb devices on boot?
I have slackware64-14.2 with kernel 5.15.25 and usb driver (xhci) built in kernel.
On boot process disconnect and reconnec my usb devices with this command:
udevadm trigger --type=devices --action add
...
0
votes
1
answer
269
views
Stuck in Starting arch 250.##
I have a USB stick with Arch Linux installed on it. The USB stick works well on a school PC and my gaming PC, but gets stuck in "Starting arch version 250.##" every time I try to boot it up ...
2
votes
1
answer
66
views
How to make a "dynamic" etc/fstab
I have manually installed linux on a USB drive.
It works and boots up when I plug the drive into the original computer.
The problem comes when the drive is on a different computer or there are other ...
0
votes
0
answers
89
views
Calling umount -l against USB device mount, generates 'unable to read boot sector to mark fs as dirty' warning/error?
Calling umount -l against USB device mount, generates 'unable to read boot sector to mark fs as dirty' warning/error?
I have a udev rule that runs a given script for add and remove events. The add ...
1
vote
1
answer
81
views
Install GRUB on LFS USB drive
I have built a Linux From Scratch system onto a flash drive with the kernel and everything. When I boot into it via the GRUB instance on the host computer's hard drive, it works fine. I would like to ...
0
votes
1
answer
323
views
Is the boot drive always /dev/sda
I have a computer with grub and linux installed on the internal hard drive. I also have a USB flash drive with linux that I boot into with grub on the internal hard drive. This causes the USB flash ...
2
votes
0
answers
37
views
Anomalous USB I/O errors when copying from one large external drive to another
Running Linux 5.4.0 under Ubuntu 20.04.3 LTS.
I've got an issue that's driving me crazy. I recently picked up a few 12 TB external USB drives (WD MyBook 12 TB, repartitioned ext4 via gparted), with ...
0
votes
0
answers
14
views
f3 program fails to detect sdCard but Windows can open it and play videos
Bought two sd cards 128GB for video recording. These are likely fake and one of them is clearly damaged. I formatted one of them to FAT32 using GParted, inserted in security camera to record and no ...
1
vote
3
answers
45
views
Progress bar for ejecting USB flash drive?
OS is Debian 10. File manager is Thunar.
I've noticed that when I copy a few dozen gigabytes to my USB flash drive, the process only takes a minute or two. Then when I go to eject, the ejection ...
0
votes
3
answers
209
views
Creating bootable USB: does `dd` overwrite partition table, formatting, filesystem?
I'm creating a bootable USB in order to install NixOS. Given a USB at /dev/sda this could be done by running:
# download the ISO
wget https://channels.nixos.org/nixos-21.11/latest-nixos-minimal-x86_64-...
0
votes
0
answers
545
views
Writing data on external USB HDD is extremely slow - even for large files
I'm copying data to an external USB HDD.
The data transfer is extremely slow. Sometimes only 15kB/s.
System:
Laptop: Lenovo Thinkpad L520 (serialno sticker: 7859 - 5BG S/N LR - 9WZ84 11/09)
OS: ...
0
votes
0
answers
16
views
Is there log in arch based linux that record all action done on a desktop?
I have an external usb hdd, that suddenly (could be user mistake) became not accessible.. I want to know what have the user did to make that happen before figure out how to reverse the action.
Os ...
0
votes
0
answers
17
views
How to pass multiple instances of the same option to a kernel module via `/etc/module.d/<module>` config file?
I'm configuring an external USB-to-SATA adapter in OpenWRT (Linux 4.14.221). The hub works only if I bind the device to the usb-storage module (preventing it to bind to usb-storage-uas).
To do that I ...
0
votes
0
answers
126
views
media.mount: Job media.mount/start failed with result 'dependency'
Note: the root problem is now solved, see USB flash drives automatically mounted (headless computer). Still the question how 'to debug this problem' below is still interesting on its own.
I'm using ...
1
vote
1
answer
435
views
USB flash drives automatically mounted (headless computer)
For the project SamplerBox, up to now I was using /dev/sda1 /media auto nofail 0 0 to have USB flash drives automatically mounted when inserted on the headless computer, see also Auto-mount and auto-...
2
votes
1
answer
53
views
Encrypt main data Linux partition so it's only accessed by unique system
How can i encrypt a Linux internal disk, so that it is only accessible with a unique system (preinstalled Debian bullseye), installed on a USB drive?
Even if someone has the encryption passphrase and ...
0
votes
0
answers
158
views
How to access files in USB in linux
I'm using Ubuntu 20.04, recently (almost a week ago) I upgraded my kernel from 5.11.0 to 5.14.0 and after that I can't access any USB drivers.
The system recognises my USBs since when I run lsusb it ...
0
votes
2
answers
88
views
Unable to format or use two USB flash drives
I have 2 USB's I'm unable to use... One went out a Month ago and the second followed suit yesterday. The USB's are Supersonic RAGE Elite 128GB drives and I've tried everything I can think of through ...
0
votes
1
answer
53
views
When storing text on a USB drive, how do I make cat not hang?
Warning: I used these commands on a drive that had nothing on it (/dev/sdb). Do not attempt this on a drive with anything important on it.
I was experimenting some, and I discovered that the ...
0
votes
0
answers
220
views
Booting Linux On A Stick From Windows 11
OBJECTIVE: To boot Parrot Linux using Windows 11 boot manager
I am using an ASUS GX701LWS (Zephyrus S17) notebook with Windows 11 Pro installed. Secure boot is disabled.
Parrot-security-4.11.3_amd64....
0
votes
1
answer
183
views
GUI Bootable USB Creator in Debian Stable
In debian stable, I'm trying to locate a package in the repository that will make a bootable USB from an iso file:
apt-cache search 'usb' 'bootable'
Output:
debootstick - Turn a chroot environment ...
0
votes
1
answer
68
views
Not booting off TPM with USB disk inserted
At reboot, with USB sticks inserted, the TPM will not allow passphraseless booting of the server. With a USB HDD inserted passphraseless booting of the server is possible.
Our servers are running ...
2
votes
2
answers
116
views
How to tell Debian to buffer USB stick writes more aggressively?
I'm trying to find a way to speed up my IO to/from a USB stick on my Debian system, maybe with some caching.
Background: I've written a script that does debootstrap, i.e. installing a Debian system to ...
0
votes
0
answers
49
views
Auto-mount and auto-remount with /etc/fstab [duplicate]
With this in /etc/fstab:
/dev/sda1 /media auto nofail 0 0
any USB flash drive will be automatically mounted on /media/ when it is plugged. This works fine.
Then let's say the user unplugs it, waits a ...
0
votes
0
answers
56
views
etx3 on USB flash stick not flushed on unmount / eject via Cinnamon / Nemo GUI (ext4 / cli umount ext3 - ok)
Changes (written file, changed permissions) are gone if ext3 formatted USB stick is unmounted / ejected via Cinnamon / Nemo GUI, if via bash umount - changes remain.
I've been using Cinnamon for ...
0
votes
1
answer
99
views
Linux gaslighting me by pretending to write to USB
When I boot my Linux and start writing to a USB-backed block device, everything goes fine for the first few times.
Afterwards, if I write to it once more, dd reports absurdly huge transfer rates (2.9 ...
1
vote
2
answers
114
views
Linux on an USB drive: Advantages of Rufus?
I have a USB flash drive with a Debian install. Not a "live" system, but a normal full install.
I made it with the normal Debian installer, by choosing the USB drive as "hard disk" ...
0
votes
0
answers
98
views
There is no *BSD partition on /dev/sdb. The device (null) does not contain BSD disklabel
I want to add files to my Debian setup USB flash drive and am trying to follow the steps from this answer: https://unix.stackexchange.com/a/559371
However, after successfully writing the image with dd ...
0
votes
1
answer
45
views
Can not install any linux distros
I can not install any linux distros on my old pc despite having easily install 2 times on my Win 10 PC. I am using Win XP 32 bit 2.82GHz Dual Core CPU, 1.99GB RAM. I have tried many instructions, ...
1
vote
0
answers
124
views
systemd-mount and automatic deletion of mount point on USB removal
On a systemd based embedded system, built with yocto, I'm trying to use systemd-mount for automatically mounting USB drives whenever those are plugged in.
Following the official manual, I created a ...
1
vote
1
answer
556
views
Removing write protection on a usb drive
I have an usb flash-drive that is write protected since a system crash. In the dmesg, the device write protection is first off, then it is turned on.
Here is the dmesg:
sd 2:0:0:0: [sdb] 60566016 512-...
0
votes
1
answer
194
views
How to convert a USB drive onto FAT12?
I have a USB of 2GB and I want to make MS-DOS stuff on it, so I need to convert it on FAT12. I absolutely don't know how to do that, since FAT12 is a very old File System. Thank you for reading my ...
10
votes
1
answer
2k
views
Why can't I copy all files in a directory to a USB storage device?
The sdc1 was mounted on /media/debian/Ventoy.
debian@debian:~$ sudo blkid | grep Ventoy
/dev/sdc1: LABEL="Ventoy" UUID="F82D-76BE" BLOCK_SIZE="512" TYPE="exfat" ...
0
votes
0
answers
28
views
Files are corrupted when accessing files from host OS and the passive device on a virtual USB driver
I am doing an experimental project to make a virtual USB device to transfer photos from a camera to a Linux computer. In this case, I am using a Jetson-nano board and Ubuntu as the operating system. I ...