Bug 456393

Summary: Cannot use Nokia 5200 as USB storage anymore
Product: [openSUSE] openSUSE 11.1 Reporter: Silviu Marin-Caea <silviu_marin-caea>
Component: KernelAssignee: E-mail List <kernel-maintainers>
Status: RESOLVED DUPLICATE QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: bgn66922, Johanndrees, kojot350, mitykov, ronartos
Version: FinalFlags: ronartos: SHIP_STOPPER?
Target Milestone: ---   
Hardware: x86-64   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: part of /var/log/messages

Description Silviu Marin-Caea 2008-12-04 11:41:13 UTC
I have a Nokia 5200 phone that has a microSD card inside.  If I connect the phone to the computer with an USB cable, I can see the microSD as an USB storage device.  That was in 11.0, before 11.1RC1.  With 11.1RC1, the phone just displays "Transferring data" forever, after being plugged in.  This is the message that appears when I read/write files on it with 11.0.
Comment 1 Lubos Lunak 2008-12-10 10:49:26 UTC
Does this problem show only when using KDE, does it work correctly when using something else?
Comment 2 Silviu Marin-Caea 2008-12-12 10:24:23 UTC
I tried with a Gnome LiveCD of RC1.  It does the same "Transferring data" forever.  So it's not a KDE problem.  What are the other subsystems that can be faulty?
Comment 3 Silviu Marin-Caea 2009-01-03 19:10:01 UTC
The phone is identified by lsusb as this:

Bus 003 Device 002: ID 0421:04bd Nokia Mobile Phones

I've marked two more bugs reports that are duplicates.
Comment 4 Silviu Marin-Caea 2009-01-03 19:10:26 UTC
*** Bug 462658 has been marked as a duplicate of this bug. ***
Comment 5 Silviu Marin-Caea 2009-01-03 19:11:02 UTC
*** Bug 463246 has been marked as a duplicate of this bug. ***
Comment 6 Silviu Marin-Caea 2009-01-03 19:17:26 UTC
I have tried on my computer at home, in addition to the one at work.  On both of them I could see the microSD as mass storage in 11.0.  In 11.1 final and 11.2alpha0 (factory) doesn't work anymore.

lsusb lists the device
Comment 7 Silviu Marin-Caea 2009-01-05 06:42:33 UTC
Ronald, this is not a ship stopper bug.  You shouldn't abuse bugzilla flags trying to speed up a bugfix.  Providing as much helpful information as possible or a patch is the right way to go.
Comment 8 Hu Jiaqi 2009-01-09 12:01:42 UTC
Same with my Nokia 5300 phone.

Bus 007 Device 006: ID 0421:04b9 Nokia Mobile Phones

Comment 9 Hu Jiaqi 2009-01-10 04:40:45 UTC
*** Bug 463482 has been marked as a duplicate of this bug. ***
Comment 10 Hu Jiaqi 2009-01-10 05:26:12 UTC
Created attachment 264277 [details]
part of /var/log/messages

It keeps outputting such messages as

Jan 10 13:01:26 hu-desktop kernel: sd 10:0:0:0: [sdb] Sense Key : No Sense [current] 
Jan 10 13:01:26 hu-desktop kernel: sd 10:0:0:0: [sdb] Add. Sense: No additional sense information

until the phone is rejected

/dev/sdb is not created
Comment 11 kojot 350 2009-01-10 13:22:40 UTC
The same with Nokia 6300 on
Linux 2.6.27.7-9-default #1 SMP 2008-12-04 18:10:04 +0100

loop:
sd 4:0:0:0: [sdb] Sense Key : No Sense [current]
sd 4:0:0:0: [sdb] Add. Sense: No additional sense information
...

I think it's upstream issue with kernel's udev...

Related links:
https://bugzilla.redhat.com/show_bug.cgi?id=473035

https://bugs.launchpad.net/ubuntu/+source/udev/+bug/221983

https://bugs.launchpad.net/ubuntu/+source/udev/+bug/221983

There are proposed fixes for redhat and ubuntu, but I don't know if thy apply to openSUSE.

Comment 12 kojot 350 2009-01-10 14:13:12 UTC
usb 1-2: New USB device found, idVendor=0421, idProduct=04fa                                                                                                        
usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3                                                                                                   
usb 1-2: Product: Nokia 6300                                                                                                                                        
usb 1-2: Manufacturer: Nokia                                                                                                                                        
usb 1-2: SerialNumber: 359317022897214                                                                                                                              
scsi 6:0:0:0: Direct-Access     Nokia    Nokia 6300       0000 PQ: 0 ANSI: 4                                                                                        
sd 6:0:0:0: [sdb] 990977 512-byte hardware sectors: (507MB/483MiB)                                                                                                  
sd 6:0:0:0: [sdb] Write Protect is off                                                                                                                              
sd 6:0:0:0: [sdb] Mode Sense: 03 00 00 00                                                                                                                           
sd 6:0:0:0: [sdb] Assuming drive cache: write through                                                                                                               
sd 6:0:0:0: [sdb] 990977 512-byte hardware sectors: (507MB/483MiB)                                                                                                  
sd 6:0:0:0: [sdb] Write Protect is off                                                                                                                              
sd 6:0:0:0: [sdb] Mode Sense: 03 00 00 00                                                                                                                           
sd 6:0:0:0: [sdb] Assuming drive cache: write through                                                                                                               
 sdb:                                                                                                                                                               
sd 6:0:0:0: [sdb] Attached SCSI removable disk                                                                                                                      
sd 6:0:0:0: Attached scsi generic sg2 type 0                                                                                                                        
usb-storage: device scan complete                                                                                                                                   
sd 6:0:0:0: [sdb] Sense Key : No Sense [current]                                                                                                                    
sd 6:0:0:0: [sdb] Add. Sense: No additional sense information
...


I think this is related bug report on kernel.org

http://bugzilla.kernel.org/show_bug.cgi?id=11843#c26


I followed Comment #2 and #3 on 
https://bugzilla.redhat.com/show_bug.cgi?id=473017

"In FC10 you have to:

sudo cp /lib/udev/rules.d/60-persistent-storage.rules
/etc/udev/rules.d/60-persistent-storage.rules

edit: /etc/udev/rules.d/60-persistent-storage.rules

change line 62 from: KERNEL!="sr*", IMPORT{program}="vol_id --export $tempnode"
to: KERNEL!="sr*", ENV{DEVTYPE}=="partition", IMPORT{program}="vol_id --export
$tempnode"

So it works with kernel 2.6.27.5-117.fc10.i686."

but it does not work for me
Comment 14 kojot 350 2009-01-10 16:00:18 UTC
I've just tested patch from Oliver Neukum

to be found at:

http://beta.suse.com/private/oneukum/457941/

It works for me (Nokia 6300)

Comment 15 Hu Jiaqi 2009-01-21 13:32:08 UTC
Duplicat of 457941

*** This bug has been marked as a duplicate of bug 457941 ***
Comment 16 Oliver Johanndrees 2009-04-18 18:59:49 UTC
I've got the same problem using a Sony-Ericsson C905 Handy with 2Gb-MSCard.
Testing on openSUSE 11.0 works fine, tests on 11.1 failed with same messages like above.
My solution:
Copying the both files: /etc/udev/rules.d/50-udev-default.rules an 60-persistent-storage.rules from Version 11.0 to the rules.d-directory of 11.1.
USB-detecting of my C905 now works fine!

Why these files were removed for Version 11.1 is unclear. Replacement suggested?