USB mass storage unreliable since 4.15.0-99

Questions about hardware,drivers and peripherals
Forum rules
Before you post please read how to get help
Post Reply
hman2
Level 1
Level 1
Posts: 22
Joined: Fri Mar 28, 2014 1:28 pm

USB mass storage unreliable since 4.15.0-99

Post by hman2 »

Hi,

on my Mint 18.3 I experience problems with certain USB SATA adapers, namely those with chips from Genesys Logic and AS Media, that have worked flawlessly for many years. They are built into a USB docking station that reads hard disks that you plug into them. I need that every other day. This is "Icy Box IB 111" that combines a USB 3.0 hub, 4 ports and a USB SATA adapter. Since the central power switch simultaneously powers the hub, the adapter and the hard drive, normally the kernel logs the appearance of the hub, the adapter and the hard drive (my external drives are Western Digital blue series, all formatted with FAT32 in a single partition) and then the drive gets mounted an its contents come up on the desktop.

It started (I believe) with kernel 4.15.0-96. [Edit, see below. It started with -99] Drive detection went unreliable. I do not see a pattern in this. Sometimes it works as intended, sometimes not. In the latter case I only see the hub in the kernel log, but not the USB adapter, und thus no hard drive.

It never happens with another docking station I use, which is LogiLink QP0025, that still reliably comes up every time. But I use it less frequently, because it has a nasty "feature", that is: It not only makes the plugged hard drive accessible, but also a built-in (and non-deletable) pseudo CD-ROM containing highly outdated drivers (for Windows). They can be ignored, but when unmounting you have to unmount two drives.

Also, when I have to backup stuff from one drive to another, I need both docking stations.

For a couple of weeks I could work around the problem with a small C program that resets the USB hub device via /proc/bus/usb etc, and lsusb gave me its number.

But this stopped working, too, because someone decided to remove usbfs from the kernel. I know usbfs is outdated, but for me it was a workaround for an unreliable hub driver. In my opinion the problems lies within the fact that hub and adapter come up at the very same time. Manually resetting the hub has always worked, as long as there was usbfs, so I guess what's needed here is a proper initialization of the hub driver, and probably to be on the safe side with a random delay of some fractions of a second.

So I humbly ask to either
a) help me for another workaround or
b) reinstate usbfs or
c) fix the problem that USB hubs by Genesys Logic are not reliably reset upon detection. Either some other settings were changed for kernel compilation, or the upstream kernel had a modification.
d) Introduce a GUI method to reset USB hubs


--- This is what happens when detection fails:
May 29 11:33:53 FSC-neu kernel: [54549.576280] usb 4-2: new SuperSpeed USB device number 9 using xhci_hcd
May 29 11:33:53 FSC-neu kernel: [54549.600577] usb 4-2: New USB device found, idVendor=05e3, idProduct=0612
May 29 11:33:53 FSC-neu kernel: [54549.600579] usb 4-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
May 29 11:33:53 FSC-neu kernel: [54549.600580] usb 4-2: Product: USB3.0 Hub
May 29 11:33:53 FSC-neu kernel: [54549.600581] usb 4-2: Manufacturer: GenesysLogic
May 29 11:33:53 FSC-neu kernel: [54549.607636] hub 4-2:1.0: USB hub found
May 29 11:33:53 FSC-neu kernel: [54549.608290] hub 4-2:1.0: 4 ports detected


---This is what happens (with the same hard disk) on the LogiLink:
May 29 11:34:56 FSC-neu kernel: [54612.468242] usb 6-2.4: new SuperSpeed USB device number 8 using xhci_hcd
May 29 11:34:56 FSC-neu kernel: [54612.492978] usb 6-2.4: New USB device found, idVendor=152d, idProduct=0567
May 29 11:34:56 FSC-neu kernel: [54612.492979] usb 6-2.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
May 29 11:34:56 FSC-neu kernel: [54612.492980] usb 6-2.4: Product: LogiLink USB 3.0 Device
May 29 11:34:56 FSC-neu kernel: [54612.492981] usb 6-2.4: Manufacturer: Good
May 29 11:34:56 FSC-neu kernel: [54612.492982] usb 6-2.4: SerialNumber: DB98765432111D3
May 29 11:34:56 FSC-neu kernel: [54612.494255] usb-storage 6-2.4:1.0: USB Mass Storage device detected
May 29 11:34:56 FSC-neu kernel: [54612.508058] usb-storage 6-2.4:1.0: Quirks match for vid 152d pid 0567: 5000000
May 29 11:34:56 FSC-neu kernel: [54612.510562] scsi host6: usb-storage 6-2.4:1.0
May 29 11:34:56 FSC-neu mtp-probe: checking bus 6, device 8: "/sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/usb6/6-2/6-2.4"
May 29 11:34:56 FSC-neu mtp-probe: bus: 6, device: 8 was not an MTP device
May 29 11:34:57 FSC-neu kernel: [54613.532632] scsi 6:0:0:0: Direct-Access WDC WD75 00BPVT-75HXZT3 0102 PQ: 0 ANSI: 6
May 29 11:35:02 FSC-neu kernel: [54618.348832] scsi 6:0:0:1: CD-ROM WDC WD75 Virtual CDXZT1 0102 PQ: 0 ANSI: 6
May 29 11:35:02 FSC-neu kernel: [54618.462764] usb 6-2.4: USB disconnect, device number 8
May 29 11:35:02 FSC-neu kernel: [54618.476412] sd 6:0:0:0: [sdc] Read Capacity(10) failed: Result: hostbyte=DID_NO_CONNECT driverbyte=DRIVER_OK
May 29 11:35:02 FSC-neu kernel: [54618.476415] sd 6:0:0:0: [sdc] Sense not available.
May 29 11:35:02 FSC-neu kernel: [54618.476419] sd 6:0:0:0: [sdc] 0 512-byte logical blocks: (0 B/0 B)
May 29 11:35:02 FSC-neu kernel: [54618.476419] sd 6:0:0:0: [sdc] 0-byte physical blocks
May 29 11:35:02 FSC-neu kernel: [54618.476433] sd 6:0:0:0: [sdc] Write Protect is off
May 29 11:35:02 FSC-neu kernel: [54618.476434] sd 6:0:0:0: [sdc] Mode Sense: 00 00 00 00
May 29 11:35:02 FSC-neu kernel: [54618.476445] sd 6:0:0:0: [sdc] Asking for cache data failed
May 29 11:35:02 FSC-neu kernel: [54618.476449] sd 6:0:0:0: [sdc] Assuming drive cache: write through
May 29 11:35:02 FSC-neu kernel: [54618.477440] sd 6:0:0:0: [sdc] Read Capacity(10) failed: Result: hostbyte=DID_NO_CONNECT driverbyte=DRIVER_OK
May 29 11:35:02 FSC-neu kernel: [54618.477442] sd 6:0:0:0: [sdc] Sense not available.
May 29 11:35:02 FSC-neu kernel: [54618.477468] sd 6:0:0:0: [sdc] Attached SCSI disk
May 29 11:35:02 FSC-neu kernel: [54618.477479] sd 6:0:0:0: Attached scsi generic sg3 type 0
May 29 11:35:02 FSC-neu kernel: [54618.477581] sr 6:0:0:1: [sr1] scsi-1 drive
May 29 11:35:02 FSC-neu kernel: [54618.477654] sr 6:0:0:1: Attached scsi CD-ROM sr1
May 29 11:35:02 FSC-neu kernel: [54618.477726] sr 6:0:0:1: Attached scsi generic sg4 type 5
May 29 11:35:02 FSC-neu systemd-udevd[19406]: inotify_add_watch(9, /dev/sdc, 10) failed: No such file or directory
May 29 11:35:05 FSC-neu kernel: [54621.708249] usb 6-2.4: new SuperSpeed USB device number 9 using xhci_hcd
May 29 11:35:05 FSC-neu kernel: [54621.733048] usb 6-2.4: New USB device found, idVendor=152d, idProduct=0567
May 29 11:35:05 FSC-neu kernel: [54621.733050] usb 6-2.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
May 29 11:35:05 FSC-neu kernel: [54621.733051] usb 6-2.4: Product: LogiLink USB 3.0 Device
May 29 11:35:05 FSC-neu kernel: [54621.733052] usb 6-2.4: Manufacturer: Good
May 29 11:35:05 FSC-neu kernel: [54621.733053] usb 6-2.4: SerialNumber: DB98765432111D3
May 29 11:35:05 FSC-neu kernel: [54621.734076] usb-storage 6-2.4:1.0: USB Mass Storage device detected
May 29 11:35:05 FSC-neu kernel: [54621.742303] usb-storage 6-2.4:1.0: Quirks match for vid 152d pid 0567: 5000000
May 29 11:35:05 FSC-neu kernel: [54621.744343] scsi host6: usb-storage 6-2.4:1.0
May 29 11:35:05 FSC-neu mtp-probe: checking bus 6, device 9: "/sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/usb6/6-2/6-2.4"
May 29 11:35:05 FSC-neu mtp-probe: bus: 6, device: 9 was not an MTP device
May 29 11:35:06 FSC-neu kernel: [54622.748669] scsi 6:0:0:0: Direct-Access WDC WD75 00BPVT-00HXZT1 0102 PQ: 0 ANSI: 6
May 29 11:35:06 FSC-neu kernel: [54622.748847] scsi 6:0:0:1: CD-ROM WDC WD75 Virtual CDXZT1 0102 PQ: 0 ANSI: 6
May 29 11:35:06 FSC-neu kernel: [54622.750042] sd 6:0:0:0: Attached scsi generic sg3 type 0
May 29 11:35:06 FSC-neu kernel: [54622.750498] sd 6:0:0:0: [sdc] 1465149168 512-byte logical blocks: (750 GB/699 GiB)
May 29 11:35:06 FSC-neu kernel: [54622.750961] sr 6:0:0:1: [sr1] scsi3-mmc drive: 51x/51x caddy
May 29 11:35:06 FSC-neu kernel: [54622.751255] sr 6:0:0:1: Attached scsi CD-ROM sr1
May 29 11:35:06 FSC-neu kernel: [54622.751332] sr 6:0:0:1: Attached scsi generic sg4 type 5
May 29 11:35:06 FSC-neu kernel: [54622.751703] sd 6:0:0:0: [sdc] Write Protect is off
May 29 11:35:06 FSC-neu kernel: [54622.751704] sd 6:0:0:0: [sdc] Mode Sense: 33 00 00 08
May 29 11:35:06 FSC-neu kernel: [54622.755724] sd 6:0:0:0: [sdc] No Caching mode page found
May 29 11:35:06 FSC-neu kernel: [54622.755728] sd 6:0:0:0: [sdc] Assuming drive cache: write through
May 29 11:35:06 FSC-neu kernel: [54622.799502] sdc: sdc1
May 29 11:35:06 FSC-neu kernel: [54622.803229] sd 6:0:0:0: [sdc] Attached SCSI disk
May 29 11:35:07 FSC-neu kernel: [54623.164544] ISO 9660 Extensions: Microsoft Joliet Level 3
May 29 11:35:07 FSC-neu kernel: [54623.166000] ISOFS: changing to secondary root
May 29 11:35:07 FSC-neu udisksd[2169]: Mounted /dev/sr1 at /media/XXXXX/QP0025 on behalf of uid 1000
May 29 11:35:07 FSC-neu kernel: [54623.232060] FAT-fs (sdc1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
May 29 11:35:07 FSC-neu udisksd[2169]: Mounted /dev/sdc1 at /media/XXXX/FDE9-88F1 on behalf of uid 1000


--- inxi -Fz says:
System: Host: FSC-neu Kernel: 4.15.0-99-generic x86_64 (64 bit)
Desktop: Cinnamon 3.6.7 Distro: Linux Mint 18.3 Sylvia
Machine: System: FUJITSU product: ESPRIMO P910
Mobo: FUJITSU model: D3162-A1 v: S26361-D3162-A1
Bios: FUJITSU // American Megatrends v: V4.6.5.3 R1.23.0 for D3162-A1x date: 12/01/2014
CPU: Quad core Intel Core i5-3470 (-MCP-) cache: 6144 KB
clock speeds: max: 3600 MHz 1: 3392 MHz 2: 3392 MHz 3: 3392 MHz
4: 3392 MHz
Graphics: Card: Intel Xeon E3-1200 v2/3rd Gen Core processor Graphics Controller
Display Server: X.Org 1.18.4 drivers: intel (unloaded: fbdev,vesa)
Resolution: 1920x1200@59.95hz
GLX Renderer: Mesa DRI Intel Ivybridge Desktop
GLX Version: 3.0 Mesa 18.0.5
Audio: Card Intel 7 Series/C216 Family High Definition Audio Controller
driver: snd_hda_intel
Sound: Advanced Linux Sound Architecture v: k4.15.0-99-generic
Network: Card: Intel 82579LM Gigabit Network Connection (Lewisville)
driver: e1000e
IF: eth0 state: up speed: 100 Mbps duplex: full mac: <filter>
Drives: HDD Total Size: 3910.8GB (66.1% used)
ID-1: /dev/sda model: INTEL_SSDSC2BB16 size: 160.0GB
ID-2: /dev/sdb model: WDC_WD30EZRX size: 3000.6GB
ID-3: USB /dev/sdc model: 00BPVT size: 750.2GB
Partition: ID-1: / size: 29G used: 16G (58%) fs: ext4 dev: /dev/sda7
ID-2: swap-1 size: 8.19GB used: 0.00GB (0%) fs: swap dev: /dev/sda8
RAID: No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors: System Temperatures: cpu: 92.0C mobo: 27.8C
Fan Speeds (in rpm): cpu: N/A
Info: Processes: 222 Uptime: 15:14 Memory: 3125.1/15918.7MB
Client: Shell (bash) inxi: 2.2.35

Thanks alot

hman
Last edited by hman2 on Sat May 30, 2020 7:15 am, edited 2 times in total.

hman2
Level 1
Level 1
Posts: 22
Joined: Fri Mar 28, 2014 1:28 pm

Re: USB mass storage went unreliable problems

Post by hman2 »

Oh, and by the way: There has always been a bug somewhere either in the unmounting itself or the Mint Cinnamon GUI method to do so: When unmounting the QP0025 pseudo CD ROM with the outdated windows driver: I ALWAYS got the error "error unmounting drive", but it was unmounted anyway, so I ignored that.

hman2
Level 1
Level 1
Posts: 22
Joined: Fri Mar 28, 2014 1:28 pm

Re: USB mass storage went unreliable problems

Post by hman2 »

Did some tests with backlevelling the kernel.

I can now say the problem does start with 4.15.0-99. 4.15.0-101 is also dysfunctional. With 4.15.0-96 it still works. And when it works, the kernel says this:

May 29 12:15:44 FSC-neu kernel: [ 94.348344] usb 4-2: new SuperSpeed USB device number 4 using xhci_hcd
May 29 12:15:44 FSC-neu kernel: [ 94.372804] usb 4-2: New USB device found, idVendor=05e3, idProduct=0612
May 29 12:15:44 FSC-neu kernel: [ 94.372806] usb 4-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
May 29 12:15:44 FSC-neu kernel: [ 94.372807] usb 4-2: Product: USB3.0 Hub
May 29 12:15:44 FSC-neu kernel: [ 94.372808] usb 4-2: Manufacturer: GenesysLogic
May 29 12:15:44 FSC-neu kernel: [ 94.379245] hub 4-2:1.0: USB hub found
May 29 12:15:44 FSC-neu kernel: [ 94.379604] hub 4-2:1.0: 4 ports detected
May 29 12:15:44 FSC-neu kernel: [ 94.496050] usb 3-2: new full-speed USB device number 4 using xhci_hcd
May 29 12:15:44 FSC-neu kernel: [ 94.756034] usb 3-2: new high-speed USB device number 5 using xhci_hcd
May 29 12:15:44 FSC-neu kernel: [ 94.910054] usb 3-2: New USB device found, idVendor=05e3, idProduct=0612
May 29 12:15:44 FSC-neu kernel: [ 94.910055] usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
May 29 12:15:44 FSC-neu kernel: [ 94.910056] usb 3-2: Product: USB2.0 Hub
May 29 12:15:44 FSC-neu kernel: [ 94.910057] usb 3-2: Manufacturer: GenesysLogic
May 29 12:15:44 FSC-neu kernel: [ 94.912416] hub 3-2:1.0: USB hub found
May 29 12:15:44 FSC-neu kernel: [ 94.913139] hub 3-2:1.0: 4 ports detected
May 29 12:15:44 FSC-neu kernel: [ 94.984099] usb 4-2.1: new SuperSpeed USB device number 5 using xhci_hcd
May 29 12:15:49 FSC-neu kernel: [ 99.390639] usb 4-2.1: New USB device found, idVendor=174c, idProduct=5106
May 29 12:15:49 FSC-neu kernel: [ 99.390641] usb 4-2.1: New USB device strings: Mfr=2, Product=3, SerialNumber=1
May 29 12:15:49 FSC-neu kernel: [ 99.390642] usb 4-2.1: Product: AS2105
May 29 12:15:49 FSC-neu kernel: [ 99.390643] usb 4-2.1: Manufacturer: ASMedia
May 29 12:15:49 FSC-neu kernel: [ 99.390644] usb 4-2.1: SerialNumber: WD-WXL1AC0K8459
May 29 12:15:49 FSC-neu kernel: [ 99.391038] usb-storage 4-2.1:1.0: USB Mass Storage device detected
May 29 12:15:49 FSC-neu kernel: [ 99.391319] scsi host6: usb-storage 4-2.1:1.0
May 29 12:15:49 FSC-neu mtp-probe: checking bus 4, device 5: "/sys/devices/pci0000:00/0000:00:14.0/usb4/4-2/4-2.1"
May 29 12:15:49 FSC-neu mtp-probe: bus: 4, device: 5 was not an MTP device
May 29 12:15:50 FSC-neu kernel: [ 100.418053] scsi 6:0:0:0: Direct-Access WDC WD75 00BPVT-00HXZT1 01.0 PQ: 0 ANSI: 5
May 29 12:15:50 FSC-neu kernel: [ 100.418447] sd 6:0:0:0: Attached scsi generic sg3 type 0
May 29 12:15:50 FSC-neu kernel: [ 100.418568] sd 6:0:0:0: [sdc] 1465149168 512-byte logical blocks: (750 GB/699 GiB)
May 29 12:15:50 FSC-neu kernel: [ 100.418796] sd 6:0:0:0: [sdc] Write Protect is off
May 29 12:15:50 FSC-neu kernel: [ 100.418798] sd 6:0:0:0: [sdc] Mode Sense: 23 00 00 00
May 29 12:15:50 FSC-neu kernel: [ 100.419003] sd 6:0:0:0: [sdc] No Caching mode page found
May 29 12:15:50 FSC-neu kernel: [ 100.419007] sd 6:0:0:0: [sdc] Assuming drive cache: write through
May 29 12:15:50 FSC-neu kernel: [ 100.457553] sdc: sdc1
May 29 12:15:50 FSC-neu kernel: [ 100.458557] sd 6:0:0:0: [sdc] Attached SCSI disk
May 29 12:15:50 FSC-neu udisksd[1757]: Mounted /dev/sdc1 at /media/XXX/FDE9-88F1 on behalf of uid 1000
May 29 12:15:50 FSC-neu kernel: [ 101.005863] FAT-fs (sdc1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.

lsusb says
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 005: ID 0403:6001 Future Technology Devices International, Ltd FT232 USB-Serial (UART) IC
Bus 001 Device 004: ID 0bf8:100c Fujitsu Siemens Computers Keyboard FSC KBPC PX
Bus 001 Device 003: ID 046d:c05a Logitech, Inc. M90/M100 Optical Mouse
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 005: ID 174c:5106 ASMedia Technology Inc. ASM1051 SATA 3Gb/s bridge
Bus 004 Device 004: ID 05e3:0612 Genesys Logic, Inc.
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 005: ID 05e3:0612 Genesys Logic, Inc.
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 002: ID 2109:0812 VIA Labs, Inc. VL812 Hub
Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 005 Device 002: ID 2109:2812 VIA Labs, Inc. VL812 Hub
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

lsusb -t says
/: Bus 06.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 10000M
|__ Port 2: Dev 2, If 0, Class=Hub, Driver=hub/4p, 5000M
/: Bus 05.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 480M
|__ Port 2: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M
/: Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 5000M
|__ Port 2: Dev 4, If 0, Class=Hub, Driver=hub/4p, 5000M
|__ Port 1: Dev 5, If 0, Class=Mass Storage, Driver=usb-storage, 5000M
/: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 480M
|__ Port 2: Dev 5, If 0, Class=Hub, Driver=hub/4p, 480M
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/2p, 480M
|__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/8p, 480M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/2p, 480M
|__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/6p, 480M
|__ Port 2: Dev 3, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
|__ Port 4: Dev 4, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
|__ Port 4: Dev 4, If 1, Class=Human Interface Device, Driver=usbhid, 1.5M
|__ Port 5: Dev 5, If 0, Class=Vendor Specific Class, Driver=ftdi_sio, 12M

hman2
Level 1
Level 1
Posts: 22
Joined: Fri Mar 28, 2014 1:28 pm

Re: USB mass storage unreliable since 4.15.0-99

Post by hman2 »

Could be that the problems with mass storage through Genesys Logic USB-SATA adaptors has been fixed with 4.15.0-106, thanks. So far I could read three hdds, but before I consider this topic fixed, I'll rather watch some other disks running.

hman2
Level 1
Level 1
Posts: 22
Joined: Fri Mar 28, 2014 1:28 pm

Re: USB mass storage unreliable since 4.15.0-99

Post by hman2 »

I have read four more disks, so I guess the issue was fixed with 4.15.0-106, thank you.

hman2
Level 1
Level 1
Posts: 22
Joined: Fri Mar 28, 2014 1:28 pm

Re: USB mass storage unreliable since 4.15.0-99

Post by hman2 »

Now kernel 4.15.0-107 is out, and mass storage still works as reliable as before 4.15.0-96... Thank you.

Post Reply

Return to “Hardware Support”