Newest kernel on Precise or Saucy causes USB to take 5-min to mount

Bug #1207934 reported by vmc
38
This bug affects 8 people
Affects Status Importance Assigned to Milestone
linux-lts-raring (Fedora)
New
Undecided
Unassigned
linux-lts-raring (Ubuntu)
Fix Released
Undecided
Cory Walker

Bug Description

Using mainline kernels I installed kernel-3.2.37-030237-generic, and the problem was resolved.
Using kernel-3.8.0-28-generic on either Precise or Saucy and mounting any USB flash stick takes 5-6 minutes to mount.

SYSLOG example:

"Aug 2 09:04:10 u kernel: [ 168.632651] usb 1-8: new high-speed USB device number 8 using ehci-pci"
...
Aug 2 09:08:50 u kernel: [ 448.048817] usb 1-8: reset high-speed USB device number 8 using ehci-pci
Aug 2 09:08:53 u AptDaemon: INFO: Quitting due to inactivity
Aug 2 09:08:53 u AptDaemon: INFO: Quitting was requested
Aug 2 09:09:20 u udevd[1998]: timeout '/sbin/blkid -o udev -p /dev/sdb'
Aug 2 09:09:21 u kernel: [ 478.953591] usb 1-8: reset high-speed USB device number 8 using ehci-pci
Aug 2 09:09:21 u udevd[1998]: timeout: killing '/sbin/blkid -o udev -p /dev/sdb' [2070]
Aug 2 09:09:52 udevd[1998]: last message repeated 30 times
Aug 2 09:09:52 u kernel: [ 509.922247] usb 1-8: reset high-speed USB device number 8 using ehci-pci
Aug 2 09:09:52 u udevd[1998]: timeout: killing '/sbin/blkid -o udev -p /dev/sdb' [2070]
Aug 2 09:10:23 udevd[1998]: last message repeated 30 times
Aug 2 09:10:23 u kernel: [ 540.890890] usb 1-8: reset high-speed USB device number 8 using ehci-pci
Aug 2 09:10:23 u udevd[1998]: '/sbin/blkid -o udev -p /dev/sdb' [2070] terminated by signal 9 (Killed)
Aug 2 09:10:23 u kernel: [ 541.025401] sd 8:0:0:0: [sdb] Attached SCSI removable disk
"Aug 2 09:10:23 u udevd[1998]: timeout 'udisks-part-id /dev/sdb'"

Right after last message, the USB was mounted

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: linux-image-3.8.0-28-generic 3.8.0-28.41~precise1 [modified: boot/vmlinuz-3.8.0-28-generic]
ProcVersionSignature: Ubuntu 3.8.0-28.41~precise1-generic 3.8.13.5
Uname: Linux 3.8.0-28-generic x86_64
ApportVersion: 2.0.1-0ubuntu17.4
Architecture: amd64
Date: Fri Aug 2 18:46:34 2013
GvfsMonitorLog: Monitoring events. Press Ctrl+C to quit.
HotplugNewDevices:

HotplugNewMounts:

InstallationMedia: Ubuntu 12.04.2 LTS "Precise Pangolin" - Release amd64 (20130801)
MarkForUpload: True
ProcEnviron:
 TERM=xterm
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: linux-lts-raring
Symptom: storage
UdisksMonitorLog: Monitoring activity from the disks daemon. Press Ctrl+C to cancel.
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
vmc (vmclark) wrote :
Revision history for this message
vmc (vmclark) wrote :

I'm seeing this bug from various distros now, not just Ubuntu. I tried reporting to kernel.org, and have just received to responses.
I have since installed kernel-3.5.0.38. Its the last one that works, which is from quantel The raring kernel-3.8.0.28, is the one that breaks USB.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in linux-lts-raring (Ubuntu):
status: New → Confirmed
Revision history for this message
vmc (vmclark) wrote :

I found the solution to this problem. There's a patch out from
http://www.spinics.net/lists/stable/msg16448.html :

diff --git a/drivers/scsi/scsi.c b/drivers/scsi/scsi.c
index 3b1ea34..eaa808e 100644
--- a/drivers/scsi/scsi.c
+++ b/drivers/scsi/scsi.c
@@ -1031,6 +1031,9 @@ int scsi_get_vpd_page(struct scsi_device *sdev, u8 page, unsigned char *buf,
 {
  int i, result;

+ if (sdev->skip_vpd_pages)
+ goto fail;
+
  /* Ask for all the pages supported by this device */
  result = scsi_vpd_inquiry(sdev, buf, 0, buf_len);
  if (result)

Hopefully it gets out to Ubuntu's kernels soon.

Changed in linux-lts-raring (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
vmc (vmclark) wrote :

The latest Saucy build has the kernel fix installed:

linux-image-3.11.0-999-generic_3.11.0-999.201308150422

I installed it in my Ubuntu 12.04 Precise and it too now works.

Revision history for this message
Mark Fraser (launchpad-mfraz) wrote :

I can confirm this bug in linux-image-3.8.0-29 as installed in Raring with a Sony Hi-MD recorder, but sometimes it still won't mount even after 5 minutes.

Revision history for this message
Mark Fraser (launchpad-mfraz) wrote :

This is now fixed in the latest kernel for 13.04.

Revision history for this message
Brian Burch (brian-pingtoo) wrote :

Agreed. Working nicely again under 3.8.0-30-generic.

Not sure if it is relevant, but I noticed earlier releases that were taking a long time to mount my camera and several usb sticks were able to mount the file system properly for my android 4 phone. I had given up trying to get this feature to work last year, and got into the habit of using adb to transfer files. I was pleasantly surprised to see android working, although this coincided with the annoying 10 minute mounts for devices that had worked fine for ever!

One of the suspicious syslog messages was "mtp-probe: bus: 1, device: 2 was not an MTP device", but that message still appears on the new kernel. I wonder whether fixing android usb originally broke mounting of older device types?

Cory Walker (walker-cj3)
Changed in linux-lts-raring (Ubuntu):
assignee: nobody → Cory Walker (walker-cj3)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.