Bug 457941

Summary: USB hard disk not recognized
Product: [openSUSE] openSUSE 11.1 Reporter: Javier Llorente <javier>
Component: KernelAssignee: Oliver Neukum <oneukum>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Major    
Priority: P3 - Medium CC: andreas.traupe, forgotten_w4XUsT47_R, hvogel, kojot350, me, novell1208.17.schad, rasmus, ronartos, silviu_marin-caea, tvrtko, vidyashankar.mv
Version: Final   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: lsusb -v
dmesg

Description Javier Llorente 2008-12-10 11:04:45 UTC
I get the "sense key/no sense" messages when I plug in a USB hard disk on openSUSE 11.1 RC 1. The same USB hard disk works perfectly on openSUSE 11.0


Dec  9 18:39:37 linux-6yz1 kernel: usb 1-2: new high speed USB device using
ehci_hcd and address 3                                                          
Dec  9 18:39:37 linux-6yz1 kernel: usb 1-2: configuration #1 chosen from 1
choice                                                                          
Dec  9 18:39:37 linux-6yz1 kernel: scsi3 : SCSI emulation for USB Mass Storage
devices                                                                         
Dec  9 18:39:37 linux-6yz1 kernel: usb 1-2: New USB device found,
idVendor=059b, idProduct=0178                                                   
Dec  9 18:39:37 linux-6yz1 kernel: usb 1-2: New USB device strings: Mfr=1,
Product=2, SerialNumber=3                                                       
Dec  9 18:39:37 linux-6yz1 kernel: usb 1-2: Product: Desktop Hard Drive         
Dec  9 18:39:37 linux-6yz1 kernel: usb 1-2: Manufacturer: IOMEGA                
Dec  9 18:39:37 linux-6yz1 kernel: usb 1-2: SerialNumber: 7800000000040D6F      
Dec  9 18:39:37 linux-6yz1 kernel: usb-storage: device found at 3               
Dec  9 18:39:37 linux-6yz1 kernel: usb-storage: waiting for device to settle
before scanning                                                                 
Dec  9 18:39:38 linux-6yz1 kernel: scsi 3:0:0:0: Direct-Access     ST340014 A  
             3.04 PQ: 0 ANSI: 0                                                 
Dec  9 18:39:38 linux-6yz1 kernel: sd 3:0:0:0: [sdb] 78165361 512-byte hardware
sectors: (40.0GB/37.2GiB)                                                       
Dec  9 18:39:38 linux-6yz1 kernel: sd 3:0:0:0: [sdb] Write Protect is off       
Dec  9 18:39:38 linux-6yz1 kernel: sd 3:0:0:0: [sdb] Mode Sense: 03 00 00 00    
Dec  9 18:39:38 linux-6yz1 kernel: sd 3:0:0:0: [sdb] Assuming drive cache:
write through                                                                   
Dec  9 18:39:38 linux-6yz1 kernel: sd 3:0:0:0: [sdb] 78165361 512-byte hardware
sectors: (40.0GB/37.2GiB)                                                       
Dec  9 18:39:38 linux-6yz1 kernel: sd 3:0:0:0: [sdb] Write Protect is off       
Dec  9 18:39:38 linux-6yz1 kernel: sd 3:0:0:0: [sdb] Mode Sense: 03 00 00 00    
Dec  9 18:39:38 linux-6yz1 kernel: sd 3:0:0:0: [sdb] Assuming drive cache:
write through                                                                   
Dec  9 18:39:38 linux-6yz1 kernel:  sdb: sdb1                                   
Dec  9 18:39:38 linux-6yz1 kernel: sd 3:0:0:0: [sdb] Attached SCSI disk         
Dec  9 18:39:38 linux-6yz1 kernel: sd 3:0:0:0: Attached scsi generic sg2 type 0 
Dec  9 18:39:38 linux-6yz1 kernel: usb-storage: device scan complete            
Dec  9 18:39:39 linux-6yz1 kernel: sd 3:0:0:0: [sdb] Sense Key : No Sense
[current]                                                                       
Dec  9 18:39:39 linux-6yz1 kernel: sd 3:0:0:0: [sdb] Add. Sense: No additional
sense information                                                               
Dec  9 18:39:39 linux-6yz1 kernel: sd 3:0:0:0: [sdb] Sense Key : No Sense
[current]    

The last two lines are repeated forever.


When I unplug the USB hard disk I get:

Dec  9 18:39:42 linux-6yz1 kernel: usb 1-2: USB disconnect, address 3
Dec  9 18:39:42 linux-6yz1 kernel: scsi 3:0:0:0: [sdb] Result:
hostbyte=DID_NO_CONNECT driverbyte=DRIVER_OK,SUGGEST_OK
Dec  9 18:39:42 linux-6yz1 kernel: end_request: I/O error, dev sdb, sector
78165360
Dec  9 18:39:42 linux-6yz1 kernel: __ratelimit: 181 callbacks suppressed
Dec  9 18:39:42 linux-6yz1 kernel: Buffer I/O error on device sdb, logical
block 78165360
Dec  9 18:39:42 linux-6yz1 kernel: scsi 3:0:0:0: [sdb] Result:
hostbyte=DID_NO_CONNECT driverbyte=DRIVER_OK,SUGGEST_OK
Dec  9 18:39:42 linux-6yz1 kernel: end_request: I/O error, dev sdb, sector 32
Dec  9 18:39:42 linux-6yz1 kernel: Buffer I/O error on device sdb, logical
block 32
Dec  9 18:39:42 linux-6yz1 kernel: Buffer I/O error on device sdb, logical
block 33

then same thing with block 34, 35, etc.
Comment 1 Javier Llorente 2008-12-10 11:07:26 UTC
Created attachment 259137 [details]
lsusb -v
Comment 3 Oliver Neukum 2008-12-11 15:47:00 UTC
Please test the kernel found at
http://beta.suse.com/private/oneukum/457941
Comment 4 Javier Llorente 2008-12-11 19:26:16 UTC
Could you please provide rpms for my 32-bit system.
I couldn't try building the rpms myself because there was no src.rpm.
Comment 6 Oliver Neukum 2008-12-15 05:53:55 UTC
Please test the new 32 bit kernel at the old place.
Comment 7 Javier Llorente 2008-12-15 20:31:42 UTC
Now it works! Thanks a lot :)
Comment 8 Oliver Neukum 2008-12-15 20:38:56 UTC
Could you attach dmesg?
Would you also test an alternative patch?
Comment 9 Javier Llorente 2008-12-16 15:12:13 UTC
Created attachment 260349 [details]
dmesg
Comment 10 Javier Llorente 2008-12-16 15:19:53 UTC
Sure, just tell me the location of that alternative patch and I'll test it.
Comment 11 Andreas Traupe 2009-01-05 16:14:39 UTC
Bug 462557 says the same bug is still there in 11.1 final. Will the patch be made available for users?
Comment 12 Oliver Neukum 2009-01-07 08:15:22 UTC
*** Bug 462557 has been marked as a duplicate of this bug. ***
Comment 14 Oliver Neukum 2009-01-07 09:00:48 UTC
*** Bug 456526 has been marked as a duplicate of this bug. ***
Comment 15 B Schad 2009-01-07 09:16:57 UTC
Priority copied from duplicate.
Comment 16 B Schad 2009-01-07 09:17:38 UTC
(In reply to comment #15 from B Schad)
> Priority copied from duplicate.
> 
No, severity copied from duplicate.
Comment 17 Oliver Neukum 2009-01-07 10:27:26 UTC
Tvrtko,

could you test the kernel to be found at:

http://beta.suse.com/private/oneukum/457941/
Comment 18 kojot 350 2009-01-10 15:58:46 UTC
I've just tested you patch 
http://beta.suse.com/private/oneukum/457941/

And it works for me :) (Nokia 6300)
Comment 19 Oliver Neukum 2009-01-12 08:23:59 UTC
Backport from mainline tested and found working
Comment 20 rasmus mogensen 2009-01-12 15:57:20 UTC
I think it is super that the problem is resovled ... but i can't install the rpm. it opens in yast and then closes nothing happens ... 

so i must be doing something wrong. but what. how to do it?

/rasmus
Comment 22 rasmus mogensen 2009-01-12 17:26:39 UTC
but isent that for 64 bit? i have a 32 bit.
Comment 23 rasmus mogensen 2009-01-12 17:33:23 UTC
i see oliver is refers to a old place for a 32 bit .... but no link
Comment 24 kojot 350 2009-01-12 18:04:46 UTC
ups... ;P

ask Oliver for 32-bit version :)

You can always experiment with stuff like:
http://download.opensuse.org/repositories/Kernel:/HEAD/openSUSE_Factory/i586/
or some other cutting edge kernel from
http://software.opensuse.org/search?baseproject=openSUSE:11.1
but ONLY if you know what you are doing, some of them are definitely unstable. 

Good Luck.
Comment 25 Tvrtko Ursulin 2009-01-12 18:15:14 UTC
(In reply to comment #17)
> Tvrtko,
> 
> could you test the kernel to be found at:
> 
> http://beta.suse.com/private/oneukum/457941/

Unfortunately I decommissioned that enclosure. Actually I don't have a 2.5" HDD to put into it any more so I am unable to test this now, sorry. Is this a different fix than the one I tested from http://beta.suse.com/private/oneukum/456526?
Comment 26 rasmus mogensen 2009-01-12 21:27:07 UTC
hello 

not to 'bitch' but i had made a bug report Bug 462557  and it was marked as duplicate, and the resolved ... but it is not resolved. 

i still need the fix for 32 bit and not the 64 bit as this thread is ...

Oliver i see u talking about a 'old' place for a 32 bit kernel in #6, but how can i find that on if that is the fix for me.?

Im not that 'hardcore' so i can mess around with stuff mentioned at #24

my point is if my original thread is marked as resolved then where is the fix? 

:D

/Rasmus
Comment 27 Vidyashankar Vellal 2009-01-13 17:52:30 UTC
Hello

Oliver, can you please provide us the link for the 32-bit kernel?
Comment 28 Oliver Neukum 2009-01-13 18:57:09 UTC
Due to popular demand build kernel kalman-oneukum-55
Comment 29 Oliver Neukum 2009-01-14 12:16:37 UTC
@Tvrtko

Yes, it is different
Comment 30 Oliver Neukum 2009-01-14 12:18:11 UTC
A 32 bit kernel has been put into the same source mentioned in comment #25
The fix has been incorporated in the SuSE kernel. The next kernel update will include it.
Comment 31 rasmus mogensen 2009-01-14 16:03:05 UTC
will this update also come as a -pae   ???
Comment 32 Oliver Neukum 2009-01-14 16:16:41 UTC
The fix will be released in all flavors.
Comment 33 ronald artos 2009-01-15 06:11:40 UTC
and hope you include a kernel-source too
Comment 34 Michel Filipe 2009-01-19 02:19:58 UTC
Hi! I find out a solution for this problem:

1 step: sudo cp /lib/udev/rules.d/60-persistent-storage.rules /etc/udev/rules.d/60-persistent-storage.rules
2 step: vi /etc/udev/rules.d/60-persistent-storage.rules
3 step: change line 62 from: KERNEL!="sr*", IMPORT{program}="vol_id --export $tempnode"
to: KERNEL!="sr*", ENV{DEVTYPE}=="partition", IMPORT{program}="vol_id --export
$tempnode"

This solution is at https://bugzilla.redhat.com/show_bug.cgi?id=473017
Comment 35 Oliver Neukum 2009-01-19 06:26:02 UTC
That would break RAID detection. Unless the fixed kernel still gets you an error, this is a bad idea.
Comment 36 ronald artos 2009-01-19 06:45:17 UTC
(In reply to comment #17)
> Tvrtko,
> 
> could you test the kernel to be found at:
> 
> http://beta.suse.com/private/oneukum/457941/

Is there a kernel-source package for this?
Comment 37 Oliver Neukum 2009-01-19 12:24:29 UTC
Could you please use the kernel source package of the KOTD?
If that's not sufficient, tell me so and I'll recreate the source rpms.
Comment 38 Hu Jiaqi 2009-01-21 13:32:08 UTC
*** Bug 456393 has been marked as a duplicate of this bug. ***
Comment 39 Forgotten User w4XUsT47_R 2009-01-28 08:59:12 UTC
I see this bug is closed as fixed, but my system is patched up to date and I still have the issue. When will the fix be generally available ?
Comment 40 Oliver Neukum 2009-01-28 10:41:59 UTC
At the next kernel update for OpenSuse 11.1
Does the kernel I put on ftp not do the job for you?
Comment 41 Michel Filipe 2009-01-31 03:40:51 UTC
Thanks Oliver Neukum! Your kernel package works for me.