I don’t think the port matters if the driver is xhci. AFAICS it’s the driver loaded by oS 13.2, regardless of the pendrive being USB2 or 3.
Not quite, it’s the host controller chipset that determines the driver in use, not the device being plugged in. (The xhci_hcd driver is used to support USB 3.0 host controllers.)
Right. I should not be using the xhci driver, as I doubt my laptops chipset even supports USB 3
Your kernel output showed ‘that the ehci-pci’ driver was in use (as expected for USB 2.0 host controllers).
You noted Ubuntu works very well. You could investigate why it is faster, since you have Ubuntu installed. What kernel version does it have ? What version of the USB driver ? What do you get with the " journalctl -f " command on Ubuntu ?
Here is the output from Ubuntu 15.04 in a VM: (I don’t have the Ubuntu installation anymore)
Jul 07 17:14:27 joseph-virtual-machine su[1973]: pam_unix(su:session): session opened for user root by joseph(uid=0)
Jul 07 17:14:49 joseph-virtual-machine kernel: usb 1-1: new high-speed USB device number 3 using ehci-pci
Jul 07 17:14:49 joseph-virtual-machine kernel: usb 1-1: New USB device found, idVendor=0951, idProduct=16a3
Jul 07 17:14:49 joseph-virtual-machine kernel: usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Jul 07 17:14:49 joseph-virtual-machine kernel: usb 1-1: Product: DT microDuo 3.0
Jul 07 17:14:49 joseph-virtual-machine kernel: usb 1-1: Manufacturer: Kingston
Jul 07 17:14:49 joseph-virtual-machine kernel: usb 1-1: SerialNumber: 1C6F654E48EBBF21C9222B65
Jul 07 17:14:49 joseph-virtual-machine kernel: usb-storage 1-1:1.0: USB Mass Storage device detected
Jul 07 17:14:49 joseph-virtual-machine kernel: scsi host34: usb-storage 1-1:1.0
Jul 07 17:14:49 joseph-virtual-machine mtp-probe[1992]: checking bus 1, device 3: "/sys/devices/pci0000:00/0000:00:11.0/0000:02:03.0/usb1/1-1"
Jul 07 17:14:49 joseph-virtual-machine mtp-probe[1992]: bus: 1, device: 3 was not an MTP device
Jul 07 17:14:50 joseph-virtual-machine kernel: scsi 34:0:0:0: Direct-Access Kingston DT microDuo 3.0 PMAP PQ: 0 ANSI: 6
Jul 07 17:14:50 joseph-virtual-machine kernel: sd 34:0:0:0: Attached scsi generic sg2 type 0
Jul 07 17:14:50 joseph-virtual-machine kernel: sd 34:0:0:0: [sdb] 122915328 512-byte logical blocks: (62.9 GB/58.6 GiB)
Jul 07 17:14:50 joseph-virtual-machine kernel: sd 34:0:0:0: [sdb] Write Protect is off
Jul 07 17:14:50 joseph-virtual-machine kernel: sd 34:0:0:0: [sdb] Mode Sense: 23 00 00 00
Jul 07 17:14:50 joseph-virtual-machine kernel: sd 34:0:0:0: [sdb] No Caching mode page found
Jul 07 17:14:50 joseph-virtual-machine kernel: sd 34:0:0:0: [sdb] Assuming drive cache: write through
Jul 07 17:14:50 joseph-virtual-machine kernel: sdb: sdb1
Jul 07 17:14:50 joseph-virtual-machine kernel: sd 34:0:0:0: [sdb] Attached SCSI removable disk
Jul 07 17:14:51 joseph-virtual-machine kernel: FAT-fs (sdb1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
Jul 07 17:14:51 joseph-virtual-machine udisksd[1372]: Mounted /dev/sdb1 at /media/joseph/A2AB-CB74 on behalf of uid 1000
And from openSuSE 13.2 in a VM:
Jul 07 20:07:20 linux-q3if kernel: usb 1-2.1: new high-speed USB device number 5 using uhci_hcd
Jul 07 20:07:20 linux-q3if kernel: usb 1-2.1: New USB device found, idVendor=0951, idProduct=16a3
Jul 07 20:07:20 linux-q3if kernel: usb 1-2.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Jul 07 20:07:20 linux-q3if kernel: usb 1-2.1: Product: DT microDuo 3.0
Jul 07 20:07:20 linux-q3if kernel: usb 1-2.1: Manufacturer: Kingston
Jul 07 20:07:20 linux-q3if kernel: usb 1-2.1: SerialNumber: 1C6F654E48EBBF21C9222B65
Jul 07 20:07:20 linux-q3if kernel: usb-storage 1-2.1:1.0: USB Mass Storage device detected
Jul 07 20:07:20 linux-q3if kernel: scsi4 : usb-storage 1-2.1:1.0
Jul 07 20:07:20 linux-q3if mtp-probe[1937]: checking bus 1, device 5: "/sys/devices/pci0000:00/0000:00:11.0/0000:02:00.0/usb1/1-2/1-2.1"
Jul 07 20:07:20 linux-q3if mtp-probe[1937]: bus: 1, device: 5 was not an MTP device
Jul 07 20:07:21 linux-q3if kernel: scsi 4:0:0:0: Direct-Access Kingston DT microDuo 3.0 PMAP PQ: 0 ANSI: 6
Jul 07 20:07:21 linux-q3if kernel: sd 4:0:0:0: Attached scsi generic sg2 type 0
Jul 07 20:07:21 linux-q3if kernel: sd 4:0:0:0: [sdb] 122915328 512-byte logical blocks: (62.9 GB/58.6 GiB)
Jul 07 20:07:21 linux-q3if kernel: sd 4:0:0:0: [sdb] Write Protect is off
Jul 07 20:07:21 linux-q3if kernel: sd 4:0:0:0: [sdb] Mode Sense: 23 00 00 00
Jul 07 20:07:21 linux-q3if kernel: sd 4:0:0:0: [sdb] No Caching mode page found
Jul 07 20:07:21 linux-q3if kernel: sd 4:0:0:0: [sdb] Assuming drive cache: write through
Jul 07 20:07:21 linux-q3if kernel: sdb: sdb1
Jul 07 20:07:21 linux-q3if kernel: sd 4:0:0:0: [sdb] Attached SCSI removable disk
Jul 07 20:08:24 linux-q3if kernel: usb 1-2-port1: cannot reset (err = -110)
Jul 07 20:08:24 linux-q3if kernel: usb 1-2.1: reset high-speed USB device number 5 using uhci_hcd
Jul 07 20:08:25 linux-q3if kernel: FAT-fs (sdb1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
Jul 07 20:08:25 linux-q3if udisksd[1447]: Mounted /dev/sdb1 at /run/media/joseph/A2AB-CB74 on behalf of uid 1000
Jul 07 20:08:25 linux-q3if org.gtk.Private.UDisks2VolumeMonitor[1362]: libbluray/bdnav/index_parse.c:162: indx_parse(): error opening /run/media/joseph/A2AB-CB74/BDMV/index.bdmv
Jul 07 20:08:25 linux-q3if org.gtk.Private.UDisks2VolumeMonitor[1362]: libbluray/bdnav/index_parse.c:162: indx_parse(): error opening /run/media/joseph/A2AB-CB74/BDMV/BACKUP/index.bdmv
Jul 07 20:08:25 linux-q3if org.gtk.Private.UDisks2VolumeMonitor[1362]: libbluray/bdnav/index_parse.c:162: indx_parse(): error opening /run/media/joseph/A2AB-CB74/BDMV/index.bdmv
Jul 07 20:08:25 linux-q3if org.gtk.Private.UDisks2VolumeMonitor[1362]: libbluray/bdnav/index_parse.c:162: indx_parse(): error opening /run/media/joseph/A2AB-CB74/BDMV/BACKUP/index.bdmv
So this appears to be a gvfs (Gnome-related) issue with gvfs-udisks2-volume-monitor?
In the ‘virtual’ comparison, I think Ubuntu is also using a different driver:
Jul 07 17:14:49 joseph-virtual-machine kernel: usb 1-1: new high-speed USB device number 3 using **ehci-pci**
while openSUSE gives
Jul 07 20:07:20 linux-q3if kernel: usb 1-2.1: new high-speed USB device number 5 using **uhci_hcd**
I do not know how important that is.
.
I’d lost track of this thead I must admit. I was really reflecting on the ‘org.gtk.Private.UDisks2VolumeMonitor’ messages. Upon reading it again, I feel sure that uas vs normal usb-storage access seems to have an impact on the device handling. Hard to know how this issue with mounting time can be progressed here, since it appears to be related to the device itself, and I wonder if there is some proprietary communication protocols required/used for Windows access (at the driver level), that can’t easily be implemented in Linux.
Hello
[LEFT] [LEFT]While I was going to open a new thread, I came across yours.
[/LEFT]
I use several types of USB flash drive. In my case, the delay appears only for USB KINGSTON DataTraveler DT SE9 G2 8 GB USB 3.0 drives.
I have done some test on a laptop HP PAVILLION DV9500 ( intel centrino duo ) not very new with only usb 2.0 and on an ASUS R900V ( intel i3 3120M ) more recent.
Both have 13.2 and was updated today.
ASUS-JC:~ # uname -a
Linux ASUS 3.16.7-21-desktop #1 SMP PREEMPT Tue Apr 14 07:11:37 UTC 2015 (93c1539) x86_64 x86_64 x86_64 GNU/Linux
ASUS-JC:~ #
OS-release
NAME=openSUSE
VERSION="13.2 (Harlequin)"
VERSION_ID="13.2"
PRETTY_NAME="openSUSE 13.2 (Harlequin) (x86_64)"
ID=opensuse
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:opensuse:opensuse:13.2"
BUG_REPORT_URL="https://bugs.opensuse.org"
HOME_URL="https://opensuse.org/"
ID_LIKE="suse"
I would like to provide some additional information:
On HP PAVILLION only USB 2.0 is in use. Both USB driver are installed EHCI_PCI for USB2 EHCI Controller (ICH8 familly) and UHCI_HCD for USB UHCI Controller (ICH8 familly).
There is four slots for USB device. And for each slot it is the EHCI_PCI driver which was used.
As soon as you plug in the device, it is recognised:
Aug 13 15:35:32 HP-SECOUR kernel: usb 1-3: new high-speed USB device number 2 using ehci-pci
The kernel message is sometimes ( not every times ) more explicit.
This message does not show on my ASUS.
Aug 13 15:36:34 HP-SECOUR systemd-udevd[427]: worker [2371] /devices/pci0000:00/0000:00:1a.7/usb1/1-3/1-3:1.0/host5/target5:0:0/5:0:0:0/block/sdc is taking a long time
Aug 13 15:36:35 HP-SECOUR kernel: usb 1-3: reset high-speed USB device number 2 using ehci-pci
This is the reset which makes the device mountable. But one must wait for about 1 minute to let the reset arise.
On the ASUS I have 2 USB 3.0 slot and 2 slots. The xhci_hcd is use on USB 3.0 and USB 2.0 slots.
Here test on the ASUS laptop
[/LEFT]
==== KINGSTON DataTraveler DT SE9 G2 8GO USB 3.0 - on USB 3.0 slot ======================================================================================================================
1 : plugin 12:04:01
Aug 13 12:04:01 ASUS-JC kernel: usb 4-1: new SuperSpeed USB device number 6 using xhci_hcd
Aug 13 12:04:01 ASUS-JC kernel: usb 4-1: New USB device found, idVendor=0951, idProduct=1666
Aug 13 12:04:01 ASUS-JC kernel: usb 4-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Aug 13 12:04:01 ASUS-JC kernel: usb 4-1: Product: DataTraveler 3.0
Aug 13 12:04:01 ASUS-JC kernel: usb 4-1: Manufacturer: Kingston
Aug 13 12:04:01 ASUS-JC kernel: usb 4-1: SerialNumber: D850E64A7DC1BF20B9E403D5
Aug 13 12:04:01 ASUS-JC kernel: usb-storage 4-1:1.0: USB Mass Storage device detected
Aug 13 12:04:01 ASUS-JC kernel: scsi10 : usb-storage 4-1:1.0
Aug 13 12:04:01 ASUS-JC mtp-probe[3351]: checking bus 4, device 6: "/sys/devices/pci0000:00/0000:00:14.0/usb4/4-1"
Aug 13 12:04:01 ASUS-JC mtp-probe[3351]: bus: 4, device: 6 was not an MTP device
Aug 13 12:04:02 ASUS-JC kernel: scsi 10:0:0:0: Direct-Access Kingston DataTraveler 3.0 PMAP PQ: 0 ANSI: 6
Aug 13 12:04:02 ASUS-JC kernel: sd 10:0:0:0: Attached scsi generic sg2 type 0
Aug 13 12:04:03 ASUS-JC kernel: sd 10:0:0:0: [sdb] 15364416 512-byte logical blocks: (7.86 GB/7.32 GiB)
Aug 13 12:04:03 ASUS-JC kernel: sd 10:0:0:0: [sdb] Write Protect is off
Aug 13 12:04:03 ASUS-JC kernel: sd 10:0:0:0: [sdb] Mode Sense: 23 00 00 00
Aug 13 12:04:03 ASUS-JC kernel: sd 10:0:0:0: [sdb] No Caching mode page found
Aug 13 12:04:03 ASUS-JC kernel: sd 10:0:0:0: [sdb] Assuming drive cache: write through
Aug 13 12:04:03 ASUS-JC kernel: sdb: sdb1
Aug 13 12:04:03 ASUS-JC kernel: sd 10:0:0:0: [sdb] Attached SCSI removable disk
2 : device notifier show up one minute later
Aug 13 12:05:04 ASUS-JC kernel: usb 4-1: reset SuperSpeed USB device number 6 using xhci_hcd
Aug 13 12:05:04 ASUS-JC kernel: xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff8800bca24d00
Aug 13 12:05:04 ASUS-JC kernel: xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff8800bca24d48
3: device notifier select dolphin --> mount immediately
Aug 13 12:05:31 ASUS-JC ntfs-3g[3378]: Version 2014.2.15 external FUSE 29
Aug 13 12:05:31 ASUS-JC ntfs-3g[3378]: Mounted /dev/sdb1 (Read-Write, label "KINGSTON_1", NTFS 3.1)
Aug 13 12:05:31 ASUS-JC ntfs-3g[3378]: Cmdline options: rw,nodev,nosuid,uid=0,gid=0,dmask=0077,fmask=0177,uhelper=udisks2
Aug 13 12:05:31 ASUS-JC ntfs-3g[3378]: Mount options: rw,nodev,nosuid,uhelper=udisks2,allow_other,nonempty,relatime,default_permissions,fsname=/dev/sdb1,blkdev,blksize=4096
Aug 13 12:05:31 ASUS-JC ntfs-3g[3378]: Global ownership and permissions enforced, configuration type 1
Aug 13 12:05:31 ASUS-JC udisksd[1933]: Mounted /dev/sdb1 at /run/media/root/KINGSTON_1 on behalf of uid 0
4: device notifier click eject : unmount immediately
Aug 13 12:06:30 ASUS-JC udisksd[1933]: Cleaning up mount point /run/media/root/KINGSTON_1 (device 8:17 is not mounted)
Aug 13 12:06:30 ASUS-JC ntfs-3g[3378]: Unmounting /dev/sdb1 (KINGSTON_1)
Aug 13 12:06:30 ASUS-JC udisksd[1933]: Unmounted /dev/sdb1 on behalf of uid 0
Aug 13 12:06:30 ASUS-JC dbus[1035]: [system] Rejected send message, 9 matched rules; type="method_return", sender=":1.21" (uid=0 pid=1933 comm="/usr/lib/udisks2/udisksd --no-debug ") interface="(unset)" member="(unset)" error name="(unset)" requested_reply="0" destination=":1.22" (uid=0 pid=1953 comm="kdeinit4: plasma-desktop [kdeinit] ")
Aug 13 12:06:30 ASUS-JC kernel: sd 10:0:0:0: [sdb] Device not ready
Aug 13 12:06:30 ASUS-JC kernel: sd 10:0:0:0: [sdb]
Aug 13 12:06:30 ASUS-JC kernel: Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
Aug 13 12:06:30 ASUS-JC kernel: sd 10:0:0:0: [sdb]
Aug 13 12:06:30 ASUS-JC kernel: Sense Key : Not Ready [current]
Aug 13 12:06:30 ASUS-JC kernel: sd 10:0:0:0: [sdb]
Aug 13 12:06:30 ASUS-JC kernel: Add. Sense: Medium not present
Aug 13 12:06:30 ASUS-JC kernel: sd 10:0:0:0: [sdb] CDB:
Aug 13 12:06:30 ASUS-JC kernel: Read(10): 28 00 00 00 0b 98 00 00 08 00
Aug 13 12:06:30 ASUS-JC kernel: end_request: I/O error, dev sdb, sector 2968
Aug 13 12:06:30 ASUS-JC kernel: Buffer I/O error on device sdb1, logical block 115
Aug 13 12:06:30 ASUS-JC kernel: sd 10:0:0:0: [sdb] Device not ready
Aug 13 12:06:30 ASUS-JC kernel: sd 10:0:0:0: [sdb]
Aug 13 12:06:30 ASUS-JC kernel: Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
Aug 13 12:06:30 ASUS-JC kernel: sd 10:0:0:0: [sdb]
Aug 13 12:06:30 ASUS-JC kernel: Sense Key : Not Ready [current]
Aug 13 12:06:30 ASUS-JC kernel: sd 10:0:0:0: [sdb]
Aug 13 12:06:30 ASUS-JC kernel: Add. Sense: Medium not present
Aug 13 12:06:30 ASUS-JC kernel: sd 10:0:0:0: [sdb] CDB:
Aug 13 12:06:30 ASUS-JC kernel: Read(10): 28 00 00 00 0b 98 00 00 08 00
Aug 13 12:06:30 ASUS-JC kernel: end_request: I/O error, dev sdb, sector 2968
Aug 13 12:06:30 ASUS-JC kernel: Buffer I/O error on device sdb1, logical block 115
5 : unplug
Aug 13 12:07:16 ASUS-JC kernel: usb 4-1: USB disconnect, device number 6
6 : device notifier disapear 15 seconds later
Aug 13 12:07:31 ASUS-JC systemd-udevd[3393]: inotify_add_watch(6, /dev/sdb, 10) failed: No such file or directory
==== KINGSTON DataTraveler DT SE9 G2 8GO USB 3.0 - on USB 2.0 slot ======================================================================================================================
1 : plugin 15:17:00
Aug 13 15:17:01 ASUS-JC kernel: usb 3-3: new high-speed USB device number 5 using xhci_hcd
Aug 13 15:17:01 ASUS-JC kernel: usb 3-3: New USB device found, idVendor=0951, idProduct=1666
Aug 13 15:17:01 ASUS-JC kernel: usb 3-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Aug 13 15:17:01 ASUS-JC kernel: usb 3-3: Product: DataTraveler 3.0
Aug 13 15:17:01 ASUS-JC kernel: usb 3-3: Manufacturer: Kingston
Aug 13 15:17:01 ASUS-JC kernel: usb 3-3: SerialNumber: D850E64A7DC1BF20B9E403D5
Aug 13 15:17:01 ASUS-JC kernel: usb-storage 3-3:1.0: USB Mass Storage device detected
Aug 13 15:17:01 ASUS-JC kernel: scsi22 : usb-storage 3-3:1.0
Aug 13 15:17:01 ASUS-JC mtp-probe[4913]: checking bus 3, device 5: "/sys/devices/pci0000:00/0000:00:14.0/usb3/3-3"
Aug 13 15:17:01 ASUS-JC mtp-probe[4913]: bus: 3, device: 5 was not an MTP device
Aug 13 15:17:02 ASUS-JC kernel: scsi 22:0:0:0: Direct-Access Kingston DataTraveler 3.0 PMAP PQ: 0 ANSI: 6
Aug 13 15:17:02 ASUS-JC kernel: sd 22:0:0:0: Attached scsi generic sg2 type 0
Aug 13 15:17:03 ASUS-JC kernel: sd 22:0:0:0: [sdb] 15364416 512-byte logical blocks: (7.86 GB/7.32 GiB)
Aug 13 15:17:03 ASUS-JC kernel: sd 22:0:0:0: [sdb] Write Protect is off
Aug 13 15:17:03 ASUS-JC kernel: sd 22:0:0:0: [sdb] Mode Sense: 23 00 00 00
Aug 13 15:17:03 ASUS-JC kernel: sd 22:0:0:0: [sdb] No Caching mode page found
Aug 13 15:17:03 ASUS-JC kernel: sd 22:0:0:0: [sdb] Assuming drive cache: write through
Aug 13 15:17:03 ASUS-JC kernel: sdb: sdb1
Aug 13 15:17:03 ASUS-JC kernel: sd 22:0:0:0: [sdb] Attached SCSI removable disk
2 : device notifier show up one minute later
Aug 13 15:18:04 ASUS-JC kernel: usb 3-3: reset high-speed USB device number 5 using xhci_hcd
Aug 13 15:18:04 ASUS-JC kernel: xhci_hcd 0000:00:14.0: Setup ERROR: setup context command for slot 18.
Aug 13 15:18:04 ASUS-JC kernel: usb 3-3: hub failed to enable device, error -22
Aug 13 15:18:04 ASUS-JC kernel: usb 3-3: reset high-speed USB device number 5 using xhci_hcd
Aug 13 15:18:04 ASUS-JC kernel: xhci_hcd 0000:00:14.0: Setup ERROR: setup context command for slot 18.
Aug 13 15:18:04 ASUS-JC kernel: usb 3-3: hub failed to enable device, error -22
Aug 13 15:18:04 ASUS-JC kernel: usb 3-3: reset high-speed USB device number 5 using xhci_hcd
Aug 13 15:18:04 ASUS-JC kernel: xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff8800bafa3580
Aug 13 15:18:04 ASUS-JC kernel: xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff8800bafa35c8
3: device notifier select dolphin --> mount immediately
Aug 13 15:18:42 ASUS-JC ntfs-3g[4942]: Version 2014.2.15 external FUSE 29
Aug 13 15:18:42 ASUS-JC ntfs-3g[4942]: Mounted /dev/sdb1 (Read-Write, label "KINGSTON_1", NTFS 3.1)
Aug 13 15:18:42 ASUS-JC ntfs-3g[4942]: Cmdline options: rw,nodev,nosuid,uid=0,gid=0,dmask=0077,fmask=0177,uhelper=udisks2
Aug 13 15:18:42 ASUS-JC ntfs-3g[4942]: Mount options: rw,nodev,nosuid,uhelper=udisks2,allow_other,nonempty,relatime,default_permissions,fsname=/dev/sdb1,blkdev,blksize=4096
Aug 13 15:18:42 ASUS-JC ntfs-3g[4942]: Global ownership and permissions enforced, configuration type 1
Aug 13 15:18:42 ASUS-JC udisksd[1933]: Mounted /dev/sdb1 at /run/media/root/KINGSTON_1 on behalf of uid 0
4: device notifier click eject --> unmount immediately
Aug 13 15:19:40 ASUS-JC udisksd[1933]: Cleaning up mount point /run/media/root/KINGSTON_1 (device 8:17 is not mounted)
Aug 13 15:19:40 ASUS-JC ntfs-3g[4942]: Unmounting /dev/sdb1 (KINGSTON_1)
Aug 13 15:19:40 ASUS-JC udisksd[1933]: Unmounted /dev/sdb1 on behalf of uid 0
Aug 13 15:19:40 ASUS-JC dbus[1035]: [system] Rejected send message, 9 matched rules; type="method_return", sender=":1.21" (uid=0 pid=1933 comm="/usr/lib/udisks2/udisksd --no-debug ") interface="(unset)" member="(unset)" error name="(unset)" requested_reply="0" destination=":1.22" (uid=0 pid=1953 comm="kdeinit4: plasma-desktop [kdeinit] ")
Aug 13 15:20:41 ASUS-JC kernel: usb 3-3: reset high-speed USB device number 5 using xhci_hcd
Aug 13 15:20:41 ASUS-JC kernel: xhci_hcd 0000:00:14.0: Setup ERROR: setup context command for slot 18.
Aug 13 15:20:41 ASUS-JC kernel: usb 3-3: hub failed to enable device, error -22
Aug 13 15:20:41 ASUS-JC kernel: usb 3-3: reset high-speed USB device number 5 using xhci_hcd
Aug 13 15:20:41 ASUS-JC kernel: xhci_hcd 0000:00:14.0: Setup ERROR: setup context command for slot 18.
Aug 13 15:20:41 ASUS-JC kernel: usb 3-3: hub failed to enable device, error -22
Aug 13 15:20:41 ASUS-JC kernel: usb 3-3: reset high-speed USB device number 5 using xhci_hcd
Aug 13 15:20:41 ASUS-JC kernel: xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff8800bafa3580
Aug 13 15:20:41 ASUS-JC kernel: xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff8800bafa35c8
Aug 13 15:21:42 ASUS-JC kernel: usb 3-3: reset high-speed USB device number 5 using xhci_hcd
Aug 13 15:21:42 ASUS-JC kernel: xhci_hcd 0000:00:14.0: Setup ERROR: setup context command for slot 18.
Aug 13 15:21:42 ASUS-JC kernel: usb 3-3: hub failed to enable device, error -22
Aug 13 15:21:42 ASUS-JC kernel: usb 3-3: reset high-speed USB device number 5 using xhci_hcd
Aug 13 15:21:42 ASUS-JC kernel: xhci_hcd 0000:00:14.0: Setup ERROR: setup context command for slot 18.
Aug 13 15:21:42 ASUS-JC kernel: usb 3-3: hub failed to enable device, error -22
Aug 13 15:21:42 ASUS-JC kernel: usb 3-3: reset high-speed USB device number 5 using xhci_hcd
Aug 13 15:21:42 ASUS-JC kernel: xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff8800bafa3580
Aug 13 15:21:42 ASUS-JC kernel: xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff8800bafa35c8
Aug 13 15:21:42 ASUS-JC systemd-udevd[4962]: inotify_add_watch(6, /dev/sdb1, 10) failed: No such file or directory
5 : device notifier disapear @ 15:21:42
6 : unplug
Aug 13 15:22:56 ASUS-JC kernel: usb 3-3: USB disconnect, device number 5
Hi,
I was looking for a solution to my problem, and found this thread. I am afraid I have to report basically the same symptoms as jcdole and other users: after inserting a flash drive, it takes ~ 1 minute to mount. Some details: the USB stick is a 16 GB PNY Micro M3 (USB 3.0). I have access to three diffeerent computers, so I have tried the stick in all, of them, with these results:
Computer 1 (a Fujitsu-Siemens desktop with an intel quad core, with no USB 3.0 ports). Running Tumbleweed. Same behavior as reported by jcdole. After a minute, the “reset high-speed USB device number…” is written to the journal and and the device finally appears in the kde device manager. This is the relevant portion of ‘journalctl -f’:
Sep 17 15:12:00 Apina kernel: usb 2-2.5: new high-speed USB device number 9 using ehci-pci
Sep 17 15:12:01 Apina kernel: usb 2-2.5: New USB device found, idVendor=154b, idProduct=6008
Sep 17 15:12:01 Apina kernel: usb 2-2.5: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Sep 17 15:12:01 Apina kernel: usb 2-2.5: Product: USB 3.0 FD
Sep 17 15:12:01 Apina kernel: usb 2-2.5: Manufacturer: PNY
Sep 17 15:12:01 Apina kernel: usb 2-2.5: SerialNumber: 070D51CF3046BD15
Sep 17 15:12:01 Apina kernel: usb-storage 2-2.5:1.0: USB Mass Storage device detected
Sep 17 15:12:01 Apina kernel: scsi host10: usb-storage 2-2.5:1.0
Sep 17 15:12:01 Apina mtp-probe[8788]: checking bus 2, device 9: "/sys/devices/pci0000:00/0000:00:1d.7/usb2/2-2/2-2.5"
Sep 17 15:12:01 Apina mtp-probe[8788]: bus: 2, device: 9 was not an MTP device
Sep 17 15:12:02 Apina kernel: scsi 10:0:0:0: Direct-Access PNY USB 3.0 FD PMAP PQ: 0 ANSI: 6
Sep 17 15:12:02 Apina kernel: sd 10:0:0:0: Attached scsi generic sg2 type 0
Sep 17 15:12:03 Apina kernel: sd 10:0:0:0: [sdb] 30283008 512-byte logical blocks: (15.5 GB/14.4 GiB)
Sep 17 15:12:03 Apina kernel: sd 10:0:0:0: [sdb] Write Protect is off
Sep 17 15:12:03 Apina kernel: sd 10:0:0:0: [sdb] Mode Sense: 23 00 00 00
Sep 17 15:12:03 Apina kernel: sd 10:0:0:0: [sdb] No Caching mode page found
Sep 17 15:12:03 Apina kernel: sd 10:0:0:0: [sdb] Assuming drive cache: write through
Sep 17 15:12:03 Apina kernel: sdb: sdb1
Sep 17 **15:12:03** Apina kernel: sd 10:0:0:0: [sdb] Attached SCSI removable disk
Sep 17 **15:13:04** Apina kernel: usb 2-2.5: reset high-speed USB device number 9 using ehci-pci
Sep 17 15:13:04 Apina kernel: fuse init (API version 7.23)
Sep 17 15:13:04 Apina ntfs-3g[8828]: Version 2014.2.15 external FUSE 29
Sep 17 15:13:04 Apina ntfs-3g[8828]: Mounted /dev/sdb1 (Read-Write, label "PNY-16G-3.0", NTFS 3.1)
Sep 17 15:13:04 Apina ntfs-3g[8828]: Cmdline options: rw,nodev,nosuid,uid=1000,gid=100,dmask=0077,fmask=0177,uhelper=udisks2
Sep 17 15:13:04 Apina ntfs-3g[8828]: Mount options: rw,nodev,nosuid,uhelper=udisks2,allow_other,nonempty,relatime,default_permissions,fsname=/dev/sdb1,blkdev,blksize=4096
Sep 17 15:13:04 Apina ntfs-3g[8828]: Global ownership and permissions enforced, configuration type 7
Sep 17 15:13:04 Apina udisksd[1785]: Mounted /dev/sdb1 at /run/media/Blackadder/PNY-16G-3.0 on behalf of uid 1000
Computer 2: Similar to Computer 1 (hardware-wise), but running a fresh install of opensuse 13.2 instead of Tumbleweed. Exactly the same behavior. Whatever it is, it affects both versions. No surprise, they are pretty close and the hardware is basically the same in both computers. I am not going to post the logs (they are almost identical to the previous ones).
Computer 3: A small Asrock desktop PC, with USB 3.0 ports and running opensuse 11.3. I cannot post the logs of this one right now (it is at home), but when I plug the stick in a USB 3.0 port the behavior is similar to what is seen in the other two computers (waiting time of ~ 1 minute). From what I saw yesterday, the main difference was that being a USB 3.0 port the system was using the xhci driver and spat error messages that looked exactly like jcdole’s for his USB 3.0 ports, something like this:
xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff8800bafa3580
xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff8800bafa35c8
(the specific hex codes may not be the same, I just copied his).
Since I was at it, I decided to investigate a little further and booted Computer 1 with a couple of “rescue distributions” I had in another USB stick, just to see if different flavors of linux made a difference. The first distribution is just a live CD of opensuse 13.2 (32 bit, while the one installed in the hard drive is the 64 bit), and as expected after booting and inserting the problematic USB stick I can observe the same behavior, a long wait before the bus is finally reset and the device ready to mount. Well, no surprise there, it is still opensuse 13.2 and I was more or less expecting it. The second distribution I tried was Knoppix 7.2 and apparently the stick likes this one much better (finally!). After inserting it, it can be mounted right away without any error messages and without waiting for resets.
I almost forgot: the drive is also mounted immediately in Windows (7 and XP) systems.
I am actually quite puzzled by all this, but I am just a regular user, not an expert. If anybody else can chime in with some advice, I (and I am sure a few others) would appreciate it enormously.
You may wish to check out post#6 in this thread:
https://forums.opensuse.org/showthread.php/507409-KDE4-takes-a-minute-to-recognize-USB3-pendrive?highlight=USB
where a user suggests to downgrade **sg3_utils **to 1.36 version.
I can’t say their approach to downgrade sg3_utils is the best, as I have not looked further into this.
Well, I will be da**ed! It worked!!!
As directed in the post you linked to, I have replaced sg3_utils 1.39 with the 1.36 version (from the opensuse 13.1 repositories) and the flash drive is mounted almost instantaneously now, no bus reset or any other suspect behavior. I’ll check later in the USB 3.0 ports of other computers (I only have USB 2.0 here), but it seems the problem was in the downgraded package. I have locked it in Yast to prevent “upgrading” it again to 1.39 by mistake.
The read/write speed (which is not that great for this particular drive anyway) does not seem to be affected by the package change, either.
Thanks a lot for taking the time to point me to the solution, this silly problem was causing me a lot of grief. I appreciate your help very much!
On 2015-09-17 19:16, Edmund BlackAdder wrote:
>
> Well, I will be da**ed! It worked!!!
>
> As directed in the post you linked to, I have replaced sg3_utils 1.39
> with the 1.36 version (from the opensuse 13.1 repositories) and the
> flash drive is mounted almost instantaneously now, no bus reset or any
> other suspect behavior. I’ll check later in the USB 3.0 ports of other
> computers (I only have USB 2.0 here), but it seems the problem was in
> the downgraded package. I have locked it in Yast to prevent “upgrading”
> it again to 1.39 by mistake.
I think this should be reported in a bugzilla. If it exists, add a “me
too” note
–
Cheers / Saludos,
Carlos E. R.
(from 13.1 x86_64 “Bottle” (Minas Tirith))
??? It clearly has been.
The post in the link I referenced had a clear link to Bugzilla - bug 945094
.
Doing this solved my problem, too!
I confirm for usb 3.0 stick Kingston DT SE9 G2 8Gb, plug in USB 2.0 on OS 13.2 on laptop HP Pavillion DV9500 series.
When I experienced similar delay inserting Kingston 8 & 16GB sticks into my 13.2/KDE system with USB3 hardware, I also tried my Laptop (USB2 only) now running LEAP42.1
and sg3_utils 1.41-6.1 with essentially identical (slow device startup) results.
I guess the good news is, I am not alone.
Bug 957981 Submitted
The bug seems to have stuck…
Oliver Neukum 2016-06-23 15:30:54 UTC
Please provide strace with the working and the failing sg_utils.
Could someone please answer the question… out of my league!
Br Andreas