All Questions
92 questions
4
votes
1
answer
831
views
Is it possible to disable symlinks when mounting a partition?
I have an embedded system development setup which is supposed to restrict users from accessing any system folders.
On a USB stick I created a symlink to "/" (root folder) and when I click on ...
0
votes
1
answer
247
views
Is my brand new USB SSD defective?
I've had a few times this problem in the past few days (but not in the previous weeks and I haven't changed anything besiders package updates) in a Debian 12 system (kernel 6.1 - haven't tried 6.6) ...
1
vote
2
answers
805
views
SSD initially mounts correctly, but disappears from lsblk after a few days
I am a Linux beginner, and am having a problem with a drive which disappears from lsblk periodically, and am stuck with how to proceed. The drive is an 240GB external USB SSD.
Mounting the Drive Works
...
0
votes
0
answers
55
views
How to check which "applications are keeping the volume busy" on Linux? [duplicate]
Sometimes after I read and write files in a USB connected to my linux desktop, then turn off all visible applications, wait for my USB to stop blinking, then attempt to eject the USB, I get a warning ...
1
vote
1
answer
2k
views
OpenBSD USB install; how to mount usb and find file sets:
During an OpenBSD install from USB, if one has reached the Pathname to the sets? prompt and the USB stick is not mounted, how does one find the usb device name, mount the usb drive and direct the ...
1
vote
1
answer
709
views
How to allow non-root user to write to ZFS external USB flash drive
In Ubuntu 20.04, I installed the zfsutils-linux package and formatted an external USB thumbdrive to use ZFS (sudo zpool create mypool /dev/sdb). However, the mounted pool at /mypool is only writable ...
1
vote
1
answer
12k
views
(udisks-error-quark, 0) error while trying to open my USB flash memory
I had an Ubuntu 22.04 running wth no problems but decided to change my SSD card and install the exact same Ubuntu on a new SSD. So I copied some important files into a USB flash memory and after it ...
0
votes
1
answer
1k
views
Unplugged External Drive During Write Operation, Now Spins Up But Can not Mount
I have a 2 TB external USB HDD backup drive. While I was copying some files with nautilus (GUI file explorer) the cord got pulled, but did not come completely out. However, communication was ...
0
votes
0
answers
545
views
USB flash drive recognised by dmesg&lsusb but not as device in /dev/sd*
If I connect the usb drive to my maschine I can see, that it is indeed connected, yet I can't find the device in /dev/sd*
The following is shown in dmesg (lsusb also sees the device):
usb 1-2: new ...
0
votes
1
answer
59
views
Drives under /media/user/ are denoted by an alphanumeric string - how are they generated?
I noticed that my thumb drives and hard drivers are in the location /media/user and are denoted as a string of alphabets and numbers instead of their names such as 1A2B-3C4D. I never named my drives ...
0
votes
0
answers
488
views
USB drive error SCSI cache
just recognized an unknown error, as i checked my actual log with journalctl -f.
When i unmounted my Backup-USB-disk with unmount /path/to/disk and then pulled the cable out, a short noise occured ...
0
votes
1
answer
726
views
is mount option "sync" valid for all filesystems
I want to have an script that automatically mounts all USB drives on insert (granted they have a block/filesystem that is a valid partition).
My questiosn is: is sync an option that can be applied to ...
4
votes
3
answers
6k
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-...
-1
votes
1
answer
860
views
Cannot change ownership/permissions of disk
I have an EXT4 disk mounted on /mnt/external I have also tried mounting it on ~/EXTERNALMNT. The disk is not an NFS share. It is an external USB drive. I can read from the disk but cannot write, ...
3
votes
1
answer
9k
views
How to Mount HFS+ drive as read-write on startup
I have a mac drive, HFS+ formatted, plugged into my ubuntu 20.04 machine. On startup, it mounts read-only, and I have to run the following script to get it to mount as a read-write drive.
#!/bin/bash
...
1
vote
1
answer
1k
views
Mounting failed iPhone to recover the data, iPhone shows up in lsusb, no blk device assigned. How can we force mount it?
I'm trying to recover data from a failed iPhone. iPhone is recognized as a usb device, but not mounted or assigned a blk device which I can mount.
DMESG output:
[958098.380690] usb 1-2: new high-speed ...
0
votes
1
answer
421
views
usbmount setup usb drive mounting order
I have a server running on ubuntu 20.04 and I am using usbmount to mount external drives on following mountpoints:
/home/bric/usb0
/home/bric/usb1
/home/bric/usb2
/home/bric/usb3
/home/bric/...
0
votes
2
answers
325
views
Unable to mount Xbox One usb drives in Kali
I had a failing 3 TB hard drive that I was using to backup games on Xbox One. I just got a new 3 TB hard drive to replace it. I tried to copy over the files through the Xbox One but it failed probably ...
0
votes
1
answer
1k
views
Can't mount external (USB 3.0) HDD
I'm trying to mount and format a Solid State Drive (SSD) hard-drive that's inside an USB hard-drive enclosure. When I connect the USB device, it gets recognized correctly, but I can't do anything with ...
2
votes
1
answer
8k
views
Unmount 'SUSPENDED' zfs pool from failed device
I run zfs on a LUKS device hosted on a single USB-device. The device failed (probably bad cable/connection, because the disk reads fine on another machine).
But how do I --force GNU/Linux to forget ...
1
vote
0
answers
592
views
Mounting NTFS USB drive on Debian with ntfs-3g
I formatted a USB drive with NTFS on Win and I'd like to use it on Debian. When I try to mount it by clicking the icon in Thunar, I get Error mounting: mount exited with exit code 1: helper failed ...
1
vote
0
answers
476
views
services are started before their filesystems had been mounted
Dear systemd experts,
I have Cubietruck A20 system with Armbian kernel 4.19.62 and the rest of packages taken from Debian 10 Buster armhf, systemd is 241-7~deb10u2.
To save my boot microSD card from ...
0
votes
1
answer
2k
views
Unable to mount a gpt partitioned external USB drive in Ubuntu 19.04
I'm trying to mount an external Toshiba USB drive in Ubuntu 19.04. No entry appears in the file manager gui when the drive is plugged in. fdisk shows...
ewan@tiny:~$ sudo fdisk -l
...
Disk /dev/sdb: ...
3
votes
0
answers
851
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 ...
1
vote
0
answers
178
views
Trigger script to run when USB drive connected with no user logged on on Ubuntu 18.04
I'm working on a DIY NAS project running on Ubuntu 18.04.
I want to implement the following feature: when an external USB disk is connected (could be a specific disk identified by UUID or ...
2
votes
1
answer
191
views
Does mounting a USB device automatically modify it?
Most popular desktop Linux distributions automatically mount USB storage devices when the devices are connected or at least provide an easy way to mount them from the GUI. Does mounting a USB storage ...
2
votes
1
answer
381
views
How do I plug in a usb-drive?
Problem
After using the following command on my usb-drive (/dev/sdd):
# physically plugging usb-drive in at /dev/sdd
> umount /dev/sdd1
> eject /dev/sdd
I am unable to undo this last action. ...
1
vote
0
answers
717
views
Pendrive not recognized and unable to mount it
Yesterday I mounted a pendrive from the command line using the following commands:
mkdir /media/usb-drive
mount /dev/sdc1 /media/usb-drive/
Then I unmounted it with the umount command:
umount /...
0
votes
2
answers
1k
views
How to mount an iso disk image hidden in an unallocated free space on a disk, assuming that the location and size of the image are known?
Suppose that an iso disk image is hidden in an unallocated free space on a disk. Note that, because it is hidden in an unallocated space, it is not recognizable to the filesystem. Assuming that the ...
1
vote
1
answer
3k
views
error mounting exfat usb
I've got a USB key i'm having trouble mounting on a Raspberry Pi running Raspbian.
When I attach it I can see it as /dev/sdb1, type=exfat, it's got a label and a name. But when I try and mount it I ...
2
votes
1
answer
8k
views
Unable to mount FAT32 USB drive in Mint ("is not a block device")
I've been trying to mount a USB drive that's formatted as FAT32, and getting an error. The drive works fine on Windows machines.
When I try to mount it with sudo mount -t vfat /dev/sdb1 /media/usbdev, ...
4
votes
4
answers
2k
views
Easy USB disk mount command
In a typical GUI file manager, like PCManFM, I can mount a USB drive by simply clicking on its icon. Is there a similar command I can use which automatically creates a directory in the right place (/...
1
vote
1
answer
7k
views
My USB hard drive seems inaccessible
So, I've got a USB hard drive, which automounts and is used for hourly-daily-weekly-monthly full-disk snapshots via snapshot.
It seems to have failed. I am leery of attempting to reformat entirely if ...
2
votes
2
answers
14k
views
Cannot mount USB on FreeBSD: Invalid argument
I'm trying to mount a USB stick on FreeBSD. The result of camcontrol devlist is:
root@machine0:~ # camcontrol devlist
<APPLE SSD SM0128G BXW1JA0Q> at scbus0 target 0 lun 0 (ada0,pass0)
&...
1
vote
2
answers
4k
views
Can't mount exfat flash drive
when I plug in the flash drive, or try to mount it, it says
"Error mounting /dev/sdb1 at /media/dejel/76E8-CACF: Command-line `mount -t "exfat" -o "uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000,...
3
votes
1
answer
11k
views
Safest way to remove USB drive on Linux [duplicate]
Is umount $mountpoint always enough to safely remove a single-partition USB drive on a modern GNU/Linux system? Or should I use sync && umount $mountpoint && sync, or perhaps umount $...
2
votes
1
answer
583
views
USB drive has been pulled out (not unmounted), but I can still access a file on it. How do I detect this situation programmatically?
I'm on a cubie board (a single-board computer, like a Raspberry Pi) running a Debian derivative called cubian
Linux Cubian 3.4.79-sun4i #1 PREEMPT Wed Feb 25 08:50:31 UTC 2015 armv7l GNU/Linux
USB ...
4
votes
1
answer
2k
views
sync or async for mass USB duplication?
I'm working on a bash script that duplicates files from one "source" pendrvie to multiple others (also formatting drives to FAT32 if they don't mount).
I'm copying the files with rsync.
I've noticed ...
0
votes
1
answer
157
views
Empty folders with same name in /media/root/ with one usb device mounted
I have accidentally removed my USB-stick but when I reconnected it, in my /media/root/ directory appeared two folders of the same name, but one was empty.
root@linux:/media/root/$ ls -l
drwxr-xr-x 2 ...
0
votes
0
answers
4k
views
How do I unmount a disk device and remove its device association
Come at this from the point of view of ransomware, where attached backup media could be corrupted, regardless of it being previously mounted.
I have some USB flash drives (hereafter "USBFD" or "...
1
vote
2
answers
7k
views
I can't -o "remount,rw" a usb drive
I have a usb drive. It mounts as "ro." When I mount -o "remount,rw" I see this in dmesg.
hfsplus: filesystem was not cleanly unmounted, running fsck.hfsplus is recommended. leaving read-only.
The ...
1
vote
0
answers
756
views
Does FreeBSD have problems using ext2fs with external USB hard drives that have a sector size of 4096 Bytes?
I have two identical 1TB external USB-disks which I have formatted under Linux using ext2fs. If I run lsusb in Linux I get the lines:
Bus 004 Device 002: ID 174c:55aa ASMedia Technology Inc.
Bus 004 ...
1
vote
0
answers
293
views
Mounting weirdness
Can someone shed a light on my situation? I have a Debian Jessie system, running XFCE Desktop. When I plug in an external USB harddisk (a Seagate Backup Plus Slim 2TB to be exact), then mount it via ...
7
votes
2
answers
11k
views
Set default mount options for usb
Specifically, I'm looking for a way to change the 'noexec' flag, which seems to be the current default, to 'exec' for any USB device when it is first mounted. At the moment, I have to do this manually ...
6
votes
2
answers
8k
views
Mount Samsung Galaxy S7 using simple-mtpfs
I would like to mount my Samsung Galaxy S7 to an folder using simple-mtpfs and I cannot do it as I used to (on previous Fedora and older Galaxy S4).
If I simply plug S7 to my computer, I can browse ...
4
votes
0
answers
814
views
A USB stick isn't visible anywhere but in dmesg
I'm plugging in a usb stick and isn't not getting mounted and kind of invisible.
$ sudo lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 178.9G 0 disk
├─sda1 8:1 0 256M 0 ...
2
votes
1
answer
133
views
Is the mount point of my phone same every time I plug it in on a Linux system?
I wrote a python script to synchronize two folders given as input. I use it to synchronize folders between my phone and a laptop, but, thanks to buggy os.path.abspath, it works correctly only when I ...
2
votes
0
answers
2k
views
How to mount usb drive without root or fstab?
I know this is one of those questions that have been debated up and down the web. But I still want to have some opinions on this. It is about mounting a usb-drive or usb-stick as a normal user.
I ...
2
votes
0
answers
53
views
Mounting USB stick in place of HDD
I'm currently working on a raspian automated box. I've connected an HDD Drive to use as a Samba server and the download and temp folder for the transmission client installed.
As the HDD is noisy (and ...
0
votes
1
answer
88
views
Can I safely remove my USB drive when my machine is suspended?
I often suspend my laptop with a USB drive still mounted. What I would like to do is store my laptop away and of course, the USB drive is in the way. So I was thinking of removing the USB drive and ...