Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 257952 - kernel 2.6.27 regression - unable to mount iomega usb drive - usb-storage / unusual_devs.h?
Summary: kernel 2.6.27 regression - unable to mount iomega usb drive - usb-storage / u...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-06 21:53 UTC by Javier
Modified: 2009-03-26 12:39 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
dmesg output (log,61.42 KB, text/plain)
2009-02-06 21:55 UTC, Javier
Details
kernel config file (kernel-config-x86-2.6.27-gentoo-r8,49.25 KB, text/plain)
2009-02-06 21:57 UTC, Javier
Details
contents of /proc/bus/usb/devices with iomega drive attached (proc_bus_usb_devices,3.58 KB, text/plain)
2009-02-23 19:30 UTC, Javier
Details
output of lsusb -v with iomega drive attached (lsusb-v,16.91 KB, text/plain)
2009-02-23 19:31 UTC, Javier
Details
patch for iomega portable hdd (iomega-portable-hdd-unusual-devs.patch,624 bytes, patch)
2009-02-24 15:16 UTC, Mike Pagano
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Javier 2009-02-06 21:53:06 UTC
When connecting the Iomega HDD to the USB port, it is detected and after a stabilization period lots of error messages are produced. Eventually I have to remove (unplug) the device.

With my previous kernel (2.6.25 series) the same device would mount in the same hub with no problem.  

This bug is identical to Bugzilla Bug 250789, only that it is for a different external device.

Reproducible: Always

Steps to Reproduce:
1.plug device...
2.check dmesg
3.

Actual Results:  
Lots of errors are reported and no /dev/sd entry is created. The messages look like:

Feb  6 18:17:38 panda sd 11:0:0:0: [sdb] Sense Key : 0x0 [current]
Feb  6 18:17:38 panda sd 11:0:0:0: [sdb] ASC=0x0 ASCQ=0x0

repeated hundreds of times.

Expected Results:  
Device mounted as /dev/sdb1

I am attaching a dmesg log of the current kernel compiled with CONFIG_USB_DEBUG=y
and CONFIG_USB_STORAGE_DEBUG=y

I am also attaching the kernel config file.

emerge --info

Portage 2.1.6.4 (default/linux/x86/2008.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.27-gentoo-r8 i686)
=================================================================
System uname: Linux-2.6.27-gentoo-r8-i686-Intel-R-_Pentium-R-_4_CPU_3.40GHz-with-glibc2.0
Timestamp of tree: Fri, 06 Feb 2009 02:00:01 +0000
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7-r1, 2.1.6-r1
dev-lang/python:     2.4.4-r13, 2.5.2-r7
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=pentium4 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.mirrors.easynews.com/linux/gentoo/ http://gentoo.mirror.solnet.ch ftp://ftp.solnet.ch/mirror/Gentoo"
LANG="en_US"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/data/tmp/"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="   "
USE="3dnow R X Xaw3d a52 aalib acl acpi alsa apache2 asf berkdb blas bluetooth branding bzip2 bzlib cairo cdr cli cracklib crypt cups dbus directfb djvu doc dri dvd dvdr dvdread eds emacs emboss encode esd evo exif fam flac foomaticdb fortran gdbm gif gimp gnome gpgme gpm gstreamer gtk hal iconv imap ipv6 isdnlog jpeg lapack latex lcms ldap libnotify logrotate mad mbox midi mikmod mmx mp3 mpeg mudflap ncurses nls nptl nptlonly ogg opengl openmp oss pam pcre pdf perl png ppds pppd python qt3 qt3support qt4 quicktime readline reflection samba sdl session silc skey speex spell spl sse sse2 ssl startup-notification svg sysfs tcpd tetex tiff tk truetype unicode usb vorbis win32codecs x86 xml xorg xulrunner xv zlib" ALSA_CARDS="emu10k1" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="fglrx vesa vga"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Javier 2009-02-06 21:55:13 UTC
Created attachment 181197 [details]
dmesg output
Comment 2 Javier 2009-02-06 21:57:32 UTC
Created attachment 181199 [details]
kernel config file
Comment 3 Mike Pagano gentoo-dev 2009-02-22 01:53:52 UTC
Can I see /proc/bus/usb/devices with your device plugged and the output of lsusb -v
Comment 4 Javier 2009-02-23 19:28:40 UTC
(In reply to comment #3)
> Can I see /proc/bus/usb/devices with your device plugged and the output of
> lsusb -v
> 

I'm attaching the two things now...
Comment 5 Javier 2009-02-23 19:30:34 UTC
Created attachment 182934 [details]
contents of /proc/bus/usb/devices with iomega drive attached
Comment 6 Javier 2009-02-23 19:31:36 UTC
Created attachment 182936 [details]
output of lsusb -v with iomega drive attached
Comment 7 Mike Pagano gentoo-dev 2009-02-24 15:00:47 UTC
Is there a more descriptive name of this device?

Some examples are "Zip 100" or "Digital Camera EX-20 DSC"
Comment 8 Mike Pagano gentoo-dev 2009-02-24 15:16:39 UTC
Created attachment 183019 [details, diff]
patch for iomega portable hdd

Can you apply this patch against your gentoo-sources-2.6.27-r8 and let me know if this helps at all?

you can apply this patch by going into your /usr/src/linux directory and typing:
patch -p1 < iomega-portable-hdd-unusual-devs.patch
Comment 9 Mike Pagano gentoo-dev 2009-03-11 00:46:11 UTC
Feel free to reopen with the requested test results
Comment 10 Javier 2009-03-11 15:49:43 UTC
(In reply to comment #9)
> Feel free to reopen with the requested test results
> 

Sorry for the dealy. I had compiled the kernel + patch. Compilation OK but system froze when rebooted (problem seemed to be related to video driver). After some days trying to fix the issue (eventually reinstalled). Notice that I cannot blame the patch for the troubles because we had a serious power problem a day before and a few machines had problems afterward.

In any case, I have just now recompiled kernel + patch (no problem), rebooted (no problem) but the problem with the iomega hdd seems to remain unchanged. After the stabilization period, I get a stream of 

sd 5:0:0:0: [sdd] Sense Key : 0x0 [current] 
sd 5:0:0:0: [sdd] ASC=0x0 ASCQ=0x0

That seems to continue forever. The details (no debugging info here)

usb 1-8: new high speed USB device using ehci_hcd and address 5
usb 1-8: configuration #1 chosen from 1 choice
scsi5 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 5
usb-storage: waiting for device to settle before scanning
scsi 5:0:0:0: Direct-Access     IC25N060 ATMR04-0         MO3O PQ: 0 ANSI: 0
sd 5:0:0:0: [sdd] 117210241 512-byte hardware sectors (60012 MB)
sd 5:0:0:0: [sdd] Write Protect is off
sd 5:0:0:0: [sdd] Mode Sense: 03 00 00 00
sd 5:0:0:0: [sdd] Assuming drive cache: write through
sd 5:0:0:0: [sdd] 117210241 512-byte hardware sectors (60012 MB)
sd 5:0:0:0: [sdd] Write Protect is off
sd 5:0:0:0: [sdd] Mode Sense: 03 00 00 00
sd 5:0:0:0: [sdd] Assuming drive cache: write through
 sdd: sdd1
sd 5:0:0:0: [sdd] Attached SCSI disk
sd 5:0:0:0: Attached scsi generic sg5 type 0
usb-storage: device scan complete
sd 5:0:0:0: [sdd] Sense Key : 0x0 [current] 
sd 5:0:0:0: [sdd] ASC=0x0 ASCQ=0x0
sd 5:0:0:0: [sdd] Sense Key : 0x0 [current] 
sd 5:0:0:0: [sdd] ASC=0x0 ASCQ=0x0
sd 5:0:0:0: [sdd] Sense Key : 0x0 [current] 
sd 5:0:0:0: [sdd] ASC=0x0 ASCQ=0x0

Notice that the device is now sdd due to a shift in the way devices are named after reinstall.

Please let me know what further information you need.
Comment 11 Daniel Drake (RETIRED) gentoo-dev 2009-03-15 00:45:50 UTC
It's failing on the last sector. This should be adequately worked around in the latest gentoo-sources-2.6.28 release, please could you test?
Comment 12 Mike Pagano gentoo-dev 2009-03-26 12:39:59 UTC
Please feel free to reopen with test results as per comment #11