usb storage(LG KU380) didn't mount automatically

Bug #367484 reported by thorsten chien
56
This bug affects 6 people
Affects Status Importance Assigned to Milestone
Linux
Invalid
High

Bug Description

after upgraded from 8.10 to 9.04, when i connected LG KU380 mobilephone to my pc by usbcable , nothing happened. in 8.10 a window will pop-up asking what to do and a disk icon will show up on desktop.

here is what log says.

Apr 27 02:15:56 Paparik kernel: [ 8493.168059] usb 2-2: new full speed USB device using uhci_hcd and address 12
Apr 27 02:15:56 Paparik kernel: [ 8493.372887] usb 2-2: configuration #1 chosen from 1 choice
Apr 27 02:15:56 Paparik kernel: [ 8493.418585] usb-storage: probe of 2-2:1.0 failed with error -5

but when i turn KU380's usb connection mode into Data Service, it can work as a 3g modem just fine. i test the phone on other windows-os pc the usb mass storage is working.

Revision history for this message
trav (travisshrewsbury) wrote :

I have an LG shine and have the same problem. Here is my log

[ 3379.656027] usb 5-1: new full speed USB device using ohci_hcd and address 2
[ 3379.899060] usb 5-1: configuration #1 chosen from 1 choice
[ 3379.942288] usb-storage: probe of 5-1:1.0 failed with error -5

Revision history for this message
ivan (ivanalejandro20) wrote :

the same is happening to me, i have a huawei e176(3g) , it works perfect as a modem but is not working as storage device.
These are the lines from mesagess

  2 20:58:19 ivanb-laptop kernel: [ 1952.765546] usb 1-2: USB disconnect, address 3
Jun 2 20:58:19 ivanb-laptop kernel: [ 1952.766296] option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
Jun 2 20:58:19 ivanb-laptop kernel: [ 1952.766314] option 1-2:1.0: device disconnected
Jun 2 20:58:19 ivanb-laptop kernel: [ 1952.766514] option1 ttyUSB1: GSM modem (1-port) converter now disconnected from ttyUSB1
Jun 2 20:58:19 ivanb-laptop kernel: [ 1952.766528] option 1-2:1.1: device disconnected
Jun 2 20:58:20 ivanb-laptop kernel: [ 1953.000079] Clocksource tsc unstable (delta = -141161842 ns)
Jun 2 20:58:31 ivanb-laptop kernel: [ 1964.104104] usb 1-1: new high speed USB device using ehci_hcd and address 4
Jun 2 20:58:31 ivanb-laptop kernel: [ 1964.247773] usb 1-1: configuration #1 chosen from 1 choice
Jun 2 20:58:31 ivanb-laptop kernel: [ 1964.257029] usb-storage: probe of 1-1:1.0 failed with error -1
Jun 2 20:58:31 ivanb-laptop kernel: [ 1964.277319] scsi13 : SCSI emulation for USB Mass Storage devices
Jun 2 20:58:31 ivanb-laptop kernel: [ 1964.277724] usb 1-1: USB disconnect, address 4
Jun 2 20:58:36 ivanb-laptop kernel: [ 1969.864145] usb 1-1: new high speed USB device using ehci_hcd and address 5
Jun 2 20:58:37 ivanb-laptop kernel: [ 1970.008464] usb 1-1: configuration #1 chosen from 1 choice
Jun 2 20:58:37 ivanb-laptop kernel: [ 1970.010095] usb-storage: probe of 1-1:1.0 failed with error -5
Jun 2 20:58:37 ivanb-laptop kernel: [ 1970.010113] option 1-1:1.0: GSM modem (1-port) converter detected
Jun 2 20:58:37 ivanb-laptop kernel: [ 1970.010259] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB0
Jun 2 20:58:37 ivanb-laptop kernel: [ 1970.013700] usb-storage: probe of 1-1:1.1 failed with error -5
Jun 2 20:58:37 ivanb-laptop kernel: [ 1970.013722] option 1-1:1.1: GSM modem (1-port) converter detected
Jun 2 20:58:37 ivanb-laptop kernel: [ 1970.013843] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB1
Jun 2 20:58:37 ivanb-laptop kernel: [ 1970.014469] usb-storage: probe of 1-1:1.2 failed with error -1
Jun 2 20:58:37 ivanb-laptop kernel: [ 1970.020746] usb-storage: probe of 1-1:1.3 failed with error -1

Revision history for this message
Jae Stutzman (jaebird) wrote :

I have a Samsung A767 Propel that is doing the same thing:

[243731.168022] usb 7-1: new full speed USB device using uhci_hcd and address 7
[243731.391143] usb 7-1: configuration #1 chosen from 1 choice
[243731.401182] usb-storage: probe of 7-1:1.0 failed with error -5

Also appears to be the same bug over here: https://bugs.launchpad.net/ubuntu/+bug/375419

Revision history for this message
Jae Stutzman (jaebird) wrote :

Don't know if this info is helpful, but a listing of lsusb shows:

Mass Storage Mode: ID 05c6:1000 Qualcomm, Inc.
PC Studio Mode: ID 04e8:6601 Samsung Electronics Co., Ltd Z100 Mobile Phone
Media Player Mode: ID 04e8:5a0f Samsung Electronics Co., Ltd MTP Device

The problem relates to the Mass storage mode...the other two modes work fine.

Revision history for this message
Tiede (marcarthur) wrote :

The same exact bug is noticed here too.
I've looked everywhere for a workaround, and am currently following a lead on disabling ehci_hcd (or ohci_hcd or even uhci_hcd, depending on the case) and loading it manually. will update here if it turns out to be good and reliable.
Either case, i think it's safe to now mark this as confirmed...

Changed in ubuntu:
status: New → Confirmed
Revision history for this message
Tiede (marcarthur) wrote :
Download full text (3.8 KiB)

This bug should be filed against usb-storage, since it's the crashing module (as noted in the other report...) maybe on should be the duplicate of the other?

output of dmesg after unloading/reloading the culprit driver (sudo rmmod usb_storage && sudo modprobe usb-storage):

marc@tuxed:~$ dmesg
[15895.587509] Initializing USB Mass Storage driver...
[15895.587765] ------------[ cut here ]------------
[15895.587772] WARNING: at /build/buildd/linux-2.6.28/fs/proc/generic.c:551 proc_register+0x10b/0x1e0()
[15895.587778] proc_dir_entry 'scsi/usb-storage' already registered
[15895.587783] Modules linked in: usb_storage(+) ppp_deflate zlib_deflate bsd_comp ppp_async crc_ccitt cdc_acm binfmt_misc ppdev input_polldev video output nls_iso8859_1 nls_cp437 vfat fat sisfb lp parport joydev snd_intel8x0 snd_ac97_codec ac97_bus snd_pcm_oss snd_mixer_oss snd_pcm snd_seq_dummy snd_seq_oss snd_seq_midi snd_rawmidi snd_seq_midi_event snd_seq snd_timer snd_seq_device sis_agp pcmcia psmouse snd soundcore amd64_agp k8temp shpchp serio_raw i2c_sis96x snd_page_alloc led_class agpgart ndiswrapper yenta_socket rsrc_nonstatic pcmcia_core pcspkr sis900 mii vesafb fbcon tileblit font bitblit softcursor [last unloaded: usb_storage]
[15895.587926] Pid: 12832, comm: modprobe Tainted: P W 2.6.28-11-generic #42-Ubuntu
[15895.587932] Call Trace:
[15895.587944] [<c0139ab0>] warn_slowpath+0x60/0x80
[15895.587956] [<c02c66c2>] ? idr_get_empty_slot+0xe2/0x270
[15895.587964] [<c02c695f>] ? ida_get_new_above+0x10f/0x1c0
[15895.587972] [<c02c695f>] ? ida_get_new_above+0x10f/0x1c0
[15895.587979] [<c02c6b3d>] ? idr_pre_get+0x3d/0x70
[15895.587988] [<c01ff7fb>] proc_register+0x10b/0x1e0
[15895.587997] [<c01ffaa3>] proc_mkdir_mode+0x33/0x50
[15895.588043] [<c01ffacf>] proc_mkdir+0xf/0x20
[15895.588053] [<c0370e56>] scsi_proc_hostdir_add+0x46/0x80
[15895.588061] [<c0365108>] scsi_host_alloc+0x2b8/0x2d0
[15895.588069] [<c0368a90>] ? scsi_error_handler+0x0/0x120
[15895.588087] [<f80f51c7>] storage_probe+0x47/0x860 [usb_storage]
[15895.588097] [<c020c036>] ? sysfs_addrm_finish+0x36/0xf0
[15895.588104] [<c020b7e3>] ? sysfs_add_one+0x13/0x50
[15895.588112] [<c020b87b>] ? sysfs_addrm_start+0x5b/0xa0
[15895.588119] [<c0501a4b>] ? mutex_lock+0xb/0x20
[15895.588127] [<c03bb2f4>] ? usb_autopm_do_device+0x64/0xf0
[15895.588139] [<c03bb942>] usb_probe_interface+0xa2/0x130
[15895.588147] [<c020c692>] ? sysfs_create_link+0x12/0x20
[15895.588161] [<c034f096>] really_probe+0xe6/0x180
[15895.588168] [<c03bada1>] ? usb_match_id+0x41/0x60
[15895.588184] [<c034f16e>] driver_probe_device+0x3e/0x50
[15895.588195] [<c034f209>] __driver_attach+0x89/0x90
[15895.588205] [<c034e943>] bus_for_each_dev+0x53/0x80
[15895.588215] [<c034eec9>] driver_attach+0x19/0x20
[15895.588222] [<c034f180>] ? __driver_attach+0x0/0x90
[15895.588228] [<c034e317>] bus_add_driver+0x1c7/0x240
[15895.588247] [<c034f3a9>] driver_register+0x69/0x140
[15895.588258] [<c02c0020>] ? as_init_queue+0x60/0xd0
[15895.588275] [<c03bbc0c>] usb_register_driver+0x7c/0x100
[15895.588282] [<c020b280>] ? sysfs_ilookup_test+0x0/0x20
[15895.588294] [<f8024000>] ? usb_stor_init+0x0/0x4d [usb_storage]
[15895.588308] [<f...

Read more...

Changed in linux:
status: Unknown → Confirmed
Revision history for this message
ozstriker78 (ozstriker78) wrote :

I figured out a way to access the SD device... copy and paste this as root...

rmmod option
rmmod usbserial
rmmod usb_storage
sleep 2
modprobe option
sleep 2
modprobe usb-storage

if that doesn't work, then try it a few more times. it eventually does.
Also, i've posted a bug with the kernel developers, the are working on a fix. here is the bug...

http://bugzilla.kernel.org/show_bug.cgi?id=13496

can somebody try the patch that the developer has posted? I don't have time at the moment.

good luck!

Revision history for this message
ozstriker78 (ozstriker78) wrote :

here is a better script...

===== cut ========
rmmod usb_storage
rmmod option
rmmod usbserial
echo "sleeping for 2 seconds to let the drivers unload...." && sleep 2
modprobe option
echo "sleeping for 2 seconds to make usb_storage detect the storage device..."
&& sleep 2 && echo "done sleeping"
modprobe usb_storage
===== cut ========

Revision history for this message
Ramdidan (klaus-storch) wrote :

My LG HB620T had the same problem: The usb-storage module failed with error -5. The script from ozstriker78 didn't work for me. After reading

http://kerneltrap.org/mailarchive/linux-usb/2009/5/21/5776813/thread

about the problems with the usb id 05c6:1000, i tried adding the line

usb-storage option_zero_cd=2

to /etc/modules and it worked fine. Drawback of this workaround: modems with a emulated windows driver cd won't work.

Revision history for this message
Andre LeBlanc (andrepleblanc) wrote :

Samsung Propel a766 here. Same issue. neither of those scripts, nor the entry in /etc/modules were able to stop the -5 errors.

Revision history for this message
iav (iav) wrote :

Same with USB 3G modem Huawei E1750, contain MicroSD card reader. After insertion sd card in reader and virtual cd with windowsdrivers available, after swiching to modem all storages lost:
Insert:
Sep 16 04:17:49 eee kernel: [29420.528191] usb 5-2: new high speed USB device using ehci_hcd and address 72
Sep 16 04:17:50 eee kernel: [29420.663431] usb 5-2: configuration #1 chosen from 1 choice
Sep 16 04:17:50 eee kernel: [29420.665391] scsi128 : SCSI emulation for USB Mass Storage devices
Sep 16 04:17:50 eee kernel: [29420.666664] scsi129 : SCSI emulation for USB Mass Storage devices
Sep 16 04:17:55 eee kernel: [29425.666345] scsi 128:0:0:0: CD-ROM HUAWEI Mass Storage 2.31 PQ: 0 ANSI: 2
Sep 16 04:17:55 eee kernel: [29425.666468] scsi 129:0:0:0: Direct-Access HUAWEI SD Storage 2.31 PQ: 0 ANSI: 2
Sep 16 04:17:55 eee kernel: [29425.692381] sr0: scsi-1 drive
Sep 16 04:17:55 eee kernel: [29425.692885] sr 128:0:0:0: Attached scsi generic sg3 type 5
Sep 16 04:17:55 eee kernel: [29425.760681] sd 129:0:0:0: [sdd] Attached SCSI removable disk
Sep 16 04:17:55 eee kernel: [29425.760903] sd 129:0:0:0: Attached scsi generic sg4 type 0
Sep 16 04:18:27 eee kernel: [29458.144537] sd 129:0:0:0: [sdd] 122624 512-byte hardware sectors: (62.7 MB/59.8 MiB)
Sep 16 04:18:27 eee kernel: [29458.145425] sd 129:0:0:0: [sdd] Write Protect is off
Sep 16 04:18:27 eee kernel: [29458.147327] sd 129:0:0:0: [sdd] 122624 512-byte hardware sectors: (62.7 MB/59.8 MiB)
Sep 16 04:18:27 eee kernel: [29458.148082] sd 129:0:0:0: [sdd] Write Protect is off
Sep 16 04:18:27 eee kernel: [29458.148138] sdd:

now run usb_modeswitch:

Sep 16 04:19:35 eee kernel: [29526.517978] usb 5-2: USB disconnect, address 72
Sep 16 04:19:40 eee kernel: [29531.372176] usb 5-2: new high speed USB device using ehci_hcd and address 73
Sep 16 04:19:40 eee kernel: [29531.507581] usb 5-2: configuration #1 chosen from 1 choice
Sep 16 04:19:40 eee kernel: [29531.513746] usb-storage: probe of 5-2:1.0 failed with error -5
Sep 16 04:19:40 eee kernel: [29531.513788] option 5-2:1.0: GSM modem (1-port) converter detected
Sep 16 04:19:40 eee kernel: [29531.514363] usb 5-2: GSM modem (1-port) converter now attached to ttyUSB0
Sep 16 04:19:40 eee kernel: [29531.525668] usb-storage: probe of 5-2:1.1 failed with error -5
Sep 16 04:19:40 eee kernel: [29531.525706] option 5-2:1.1: GSM modem (1-port) converter detected
Sep 16 04:19:40 eee kernel: [29531.525917] usb 5-2: GSM modem (1-port) converter now attached to ttyUSB1
Sep 16 04:19:40 eee kernel: [29531.535068] usb-storage: probe of 5-2:1.2 failed with error -1
Sep 16 04:19:40 eee kernel: [29531.537194] usb-storage: probe of 5-2:1.3 failed with error -1

# uname -a
Linux eee 2.6.29-1-netbook #0array1 SMP Mon Feb 23 15:02:03 MST 2009 i686 GNU/Linux

Revision history for this message
malev (marcosvanetta) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. You reported this bug a while ago and there hasn't been any activity in it recently. We were wondering if this is still an issue for you. Can you try with the latest Ubuntu release? Thanks in advance.

Revision history for this message
Ramdidan (klaus-storch) wrote :

As I have written earlier: Under Jaunty the usb-storage option_zero_cd=2 workaround did it for me. But after the upgrade to karmic, my device doesn't work at all. See https://bugs.launchpad.net/ubuntu/+source/linux/+bug/477031

Revision history for this message
bclintbe (bclintbe) wrote :

Same thing on my LG Shine on Ubuntu 9.10 64-bit. I'm not too thrilled about having to run a script to get the USB connection to work, so I have not tried that as a fix.

Revision history for this message
Mohamed Amine Ilidrissi (ilidrissi.amine) wrote :

Can you test if the issue still occurs in Lucid or Maverick? Thanks!

affects: ubuntu → linux (Ubuntu)
Changed in linux (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Ramdidan (klaus-storch) wrote :

- Under Jaunty the bug transforms into the problem described under https://bugs.launchpad.net/ubuntu/+source/usb-modeswitch/+bug/477031 A workaround exists.

- Under Lucid this transformed problem persists.

- Both bugs seem to be fixed in Maverick thanks to usb-modeswitch. At least this is stated in the comments of the linked bug, I didn't try the new packages because the workarounds do it for me.

Changed in linux:
importance: Unknown → High
Revision history for this message
freacert (erik-grtz) wrote :

Same under 10.04 64 bit. Trying to connect a LG KU380.

Changed in linux:
status: Confirmed → Invalid
thorsten chien (shiresn)
no longer affects: linux (Ubuntu)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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