I am quite certain that your issues relate to how you mount your devices maybe even how you intialize your device.
If you install the package gvfs - it pulls in - among others the udisks2 package.
On my system - using the above - mounting issues never happens unless the device is malconfigured.
One way to create issues like yours is if you have misconfigured your device by e.g. running mkfs on the device itself instead of the partition - examples below
Aug 11 08:40:39 el-tadpole kernel: sd 0:0:0:0: [sda] Synchronizing SCSI cache
Aug 11 08:40:39 el-tadpole kernel: sd 0:0:0:0: [sda] Synchronize Cache(10) failed: Result: hostbyte=DID_ERROR>
Aug 11 08:40:40 el-tadpole kernel: usb 1-2: new high-speed USB device number 13 using xhci_hcd
Aug 11 08:40:40 el-tadpole kernel: usb 1-2: New USB device found, idVendor=2109, idProduct=0711, bcdDevice= 1>
Aug 11 08:40:40 el-tadpole kernel: usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Aug 11 08:40:40 el-tadpole kernel: usb 1-2: Product: USB3.0 SATA Bridge
Aug 11 08:40:40 el-tadpole kernel: usb 1-2: Manufacturer: VIA Labs,Inc.
Aug 11 08:40:40 el-tadpole kernel: usb 1-2: SerialNumber: 000000000026
Aug 11 08:40:40 el-tadpole kernel: scsi host0: uas
Aug 11 08:40:40 el-tadpole mtp-probe[20024]: checking bus 1, device 13: "/sys/devices/pci0000:00/0000:00:08.1>
Aug 11 08:40:40 el-tadpole mtp-probe[20024]: bus: 1, device: 13 was not an MTP device
Aug 11 08:40:40 el-tadpole mtp-probe[20048]: checking bus 1, device 13: "/sys/devices/pci0000:00/0000:00:08.1>
Aug 11 08:40:40 el-tadpole mtp-probe[20048]: bus: 1, device: 13 was not an MTP device
Aug 11 08:40:43 el-tadpole kernel: scsi 0:0:0:0: Direct-Access VirtualDisk PQ: 0 ANSI:>
Aug 11 08:40:43 el-tadpole kernel: sd 0:0:0:0: Attached scsi generic sg0 type 0
Aug 11 08:40:43 el-tadpole kernel: sd 0:0:0:0: [sda] Read Capacity(10) failed: Result: hostbyte=DID_OK driver>
Aug 11 08:40:43 el-tadpole kernel: sd 0:0:0:0: [sda] Sense Key : Illegal Request [current]
Aug 11 08:40:43 el-tadpole kernel: sd 0:0:0:0: [sda] Add. Sense: Invalid command operation code
Aug 11 08:40:43 el-tadpole kernel: sd 0:0:0:0: [sda] 0 512-byte logical blocks: (0 B/0 B)
Aug 11 08:40:43 el-tadpole kernel: sd 0:0:0:0: [sda] 0-byte physical blocks
Aug 11 08:40:43 el-tadpole kernel: sd 0:0:0:0: [sda] Test WP failed, assume Write Enabled
Aug 11 08:40:43 el-tadpole kernel: sd 0:0:0:0: [sda] Asking for cache data failed
Aug 11 08:40:43 el-tadpole kernel: sd 0:0:0:0: [sda] Assuming drive cache: write through
Aug 11 08:40:43 el-tadpole kernel: sd 0:0:0:0: [sda] Optimal transfer size 33553920 bytes not a multiple of p>
Aug 11 08:40:43 el-tadpole kernel: sd 0:0:0:0: [sda] Read Capacity(10) failed: Result: hostbyte=DID_OK driver>
Aug 11 08:40:43 el-tadpole kernel: sd 0:0:0:0: [sda] Sense Key : Illegal Request [current]
Aug 11 08:40:43 el-tadpole kernel: sd 0:0:0:0: [sda] Add. Sense: Invalid command operation code
Aug 11 08:40:43 el-tadpole kernel: sd 0:0:0:0: [sda] Attached SCSI disk
Aug 11 08:40:48 el-tadpole kernel: usb 2-1.1: new SuperSpeed USB device number 7 using xhci_hcd
Aug 11 08:40:48 el-tadpole kernel: usb 2-1.1: New USB device found, idVendor=174c, idProduct=5106, bcdDevice=>
Aug 11 08:40:48 el-tadpole kernel: usb 2-1.1: New USB device strings: Mfr=2, Product=3, SerialNumber=1
Aug 11 08:40:48 el-tadpole kernel: usb 2-1.1: Product: AS2105
Aug 11 08:40:48 el-tadpole kernel: usb 2-1.1: Manufacturer: ASMedia
and another worked
Aug 11 08:56:29 el-tadpole kernel: usb 2-1.1: new SuperSpeed USB device number 4 using xhci_hcd
Aug 11 08:56:29 el-tadpole kernel: usb 2-1.1: New USB device found, idVendor=174c, idProduct=5106, bcdDevice= 0.01
Aug 11 08:56:29 el-tadpole kernel: usb 2-1.1: New USB device strings: Mfr=2, Product=3, SerialNumber=1
Aug 11 08:56:29 el-tadpole kernel: usb 2-1.1: Product: AS2105
Aug 11 08:56:29 el-tadpole kernel: usb 2-1.1: Manufacturer: ASMedia
Aug 11 08:56:29 el-tadpole kernel: usb 2-1.1: SerialNumber: 00000000000000000000
Aug 11 08:56:29 el-tadpole mtp-probe[1617]: checking bus 2, device 4: "/sys/devices/pci0000:00/0000:00:08.1/0000:04:00.3/usb2/2-1/2-1.1"
Aug 11 08:56:29 el-tadpole mtp-probe[1617]: bus: 2, device: 4 was not an MTP device
Aug 11 08:56:30 el-tadpole kernel: usb 2-1.1: UAS is ignored for this device, using usb-storage instead
Aug 11 08:56:30 el-tadpole kernel: usb-storage 2-1.1:1.0: USB Mass Storage device detected
Aug 11 08:56:30 el-tadpole kernel: scsi host0: usb-storage 2-1.1:1.0
Aug 11 08:56:30 el-tadpole kernel: usbcore: registered new interface driver usb-storage
Aug 11 08:56:30 el-tadpole kernel: usbcore: registered new interface driver uas
Aug 11 08:56:30 el-tadpole mtp-probe[1652]: checking bus 2, device 4: "/sys/devices/pci0000:00/0000:00:08.1/0000:04:00.3/usb2/2-1/2-1.1"
Aug 11 08:56:30 el-tadpole mtp-probe[1652]: bus: 2, device: 4 was not an MTP device
Aug 11 08:56:31 el-tadpole kernel: scsi 0:0:0:0: Direct-Access ASMT 2105 0 PQ: 0 ANSI: 6
Aug 11 08:56:31 el-tadpole kernel: sd 0:0:0:0: Attached scsi generic sg0 type 0
Aug 11 08:56:39 el-tadpole kernel: sd 0:0:0:0: [sda] 732566646 4096-byte logical blocks: (3.00 TB/2.73 TiB)
Aug 11 08:56:39 el-tadpole kernel: sd 0:0:0:0: [sda] Write Protect is off
Aug 11 08:56:39 el-tadpole kernel: sd 0:0:0:0: [sda] Mode Sense: 43 00 00 00
Aug 11 08:56:39 el-tadpole kernel: sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
Aug 11 08:56:39 el-tadpole kernel: sda: sda1
Aug 11 08:56:39 el-tadpole kernel: sd 0:0:0:0: [sda] Attached SCSI disk
Aug 11 08:56:43 el-tadpole kernel: EXT4-fs (sda1): warning: checktime reached, running e2fsck is recommended
Aug 11 08:56:43 el-tadpole udisksd[1163]: Mounted /dev/sda1 at /run/media/froggy/drive-b on behalf of uid 1000
Aug 11 08:56:43 el-tadpole kernel: EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null). Quota mode: none.
It looks like it’s Manjaro related. I downloaded Opensuse Leap kde 15.3 live, it’s fairly small live system. I tried this afternoon with most of the possible combinations (2 usb toasters + cables) and I didn’t have any problem.
What detects the USB and the end device? Is it the kernel or something else?
leap 15.3 runs 5.3.18.xxx with many things backported from 5.4.
I have tested Manjaro with 5.10 a couple of times and it worked (but not fully tested yet).
Just confirmed, and you’re correct. openSUSE LEAP feels more “enterprise-y” to me. They even ship out with Firefox ESR, which is Firefox’s “LTS” channel, currently on version 78.
So after ruling out the initialization wait time, if even 5 seconds doesn’t work, then two other things to try and narrow this down:
Try with kernel 5.4 on Manjaro
– Does it seem fully resolved under this environment?
Try with openSUSE Tumbleweed live ISO, which uses the latest kernel
– Does it occur intermittently under this environment?
EDIT:
This is another indication that it might be related to kernel 5.13.
If it works fully under LTS kernel 5.10, then you don’t need to test this again with LTS kernel 5.4.
The over-arching problem might be related to the kernel and how it handles the USB bays, since this intermittent issue occurs with different drives, different cables, different bays:
Works under Manjaro, with LTS kernel 5.10 (so far, so good?)
Works under openSUSE LEAP, with kernel 5.3 + backports
Intermittent issues under Manjaro, with kernel 5.13
Does increasing the initialization wait time make a difference in the intermittent environments?
Does this problem occur with openSUSE Tumbleweed, with kernel 5.13?
I left out LTS kernel 5.4, since LTS kernel 5.10 seems to be working (and is a more recent kernel), plus you had boot-related issues with 5.4 (which is probably unrelated to this.)
What USB bays / enclosures are you using? It might be useful to others that are facing a similar problem.
I didn’t suggest to use Tumbleweed, per se, but rather to try narrowing this down to perhaps kernel 5.13 (or anything later than LTS 5.10). Since it worked on openSUSE LEAP (kernel 5.3), yet the same intermittent issues occur under openSUSE Tumbleweed (kernel 5.13), it’s safe to say that the kernel (above LTS 5.10) is likely the culprit, regardless of distro.
I have neither of those particular USB bays, yet I do have two other brands I might test this out on. I only use LTS kernels, so color me lucky.
Maybe this is yet another reason to stick with the latest offerings of the LTS kernels, and jump from LTS to LTS.
EDIT: As it stands now, using LTS kernel 5.10 seems to be the “solution”.