You are not logged in.

#1 2013-08-10 11:23:25

marcelof
Member
Registered: 2009-01-08
Posts: 6

USB stick listed in /dev only after 4 minutes, won't automout [SOLVED]

This is happening with the three USB sticks I have at hand now. They are working normally on windows.
The behaviour is: I plug the stick and I get it detected correctly, I check with dmesg and there seems to be no problem:

 
[ 8月11 05:08] usb 2-3: new high-speed USB device number 2 using ehci-pci
[  +0.125760] usb-storage 2-3:1.0: USB Mass Storage device detected
[  +0.000063] scsi7 : usb-storage 2-3:1.0
[  +1.001429] scsi 7:0:0:0: Direct-Access     SKYMEDI  USB Drive             PQ:
[  +0.001981] sd 7:0:0:0: [sdc] 3926016 512-byte logical blocks: (2.01 GB/1.87 G
[  +0.001099] sd 7:0:0:0: [sdc] Write Protect is off
[  +0.000004] sd 7:0:0:0: [sdc] Mode Sense: 23 00 00 00
[  +0.000643] sd 7:0:0:0: [sdc] No Caching mode page present
[  +0.000003] sd 7:0:0:0: [sdc] Assuming drive cache: write through

one minute passes and I get some reset messages:

[ 8月11 05:09] usb 2-3: reset high-speed USB device number 2 using ehci-pci
[ +31.066630] usb 2-3: reset high-speed USB device number 2 using ehci-pci
[ 8月11 05:10] usb 2-3: reset high-speed USB device number 2 using ehci-pci
[ +31.040002] usb 2-3: reset high-speed USB device number 2 using ehci-pci
[  +0.128019] sd 7:0:0:0: [sdc] No Caching mode page present
[  +0.000007] sd 7:0:0:0: [sdc] Assuming drive cache: write through
[ 8月11 05:11] usb 2-3: reset high-speed USB device number 2 using ehci-pci
[ +30.986694] usb 2-3: reset high-speed USB device number 2 using ehci-pci

As you can see, every minute the same, with random "Caching" info. But after 5 minutes:

[ 8月11 05:12] usb 2-3: reset high-speed USB device number 2 using ehci-pci
[ +31.039571] usb 2-3: reset high-speed USB device number 2 using ehci-pci
[  +0.337783]  sdc: sdc1
[  +0.242360] sd 7:0:0:0: [sdc] No Caching mode page present
[  +0.000008] sd 7:0:0:0: [sdc] Assuming drive cache: write through

this

[  +0.337783]  sdc: sdc1

is the magic. After I see this, I can see my device at /dev and mount it manually, but why does it take so long? I'm puzzled.

Note: I do this after a reboot, I'm aware of the needed reboot after a kernel upgrade and this doesn't seem to be the case.

This is the output of lsmod:

Module                  Size  Used by
coretemp                6038  0 
joydev                  9663  0 
pcspkr                  2027  0 
kvm                   376394  0 
iTCO_wdt                5407  0 
iTCO_vendor_support     1929  1 iTCO_wdt
microcode              13172  0 
acer_wmi               23814  0 
psmouse                85132  0 
serio_raw               5041  0 
arc4                    2000  2 
iwldvm                171906  0 
mac80211              454883  1 iwldvm
evdev                   9880  10 
i2c_i801               11237  0 
snd_hda_codec_realtek    35549  1 
i915                  572227  2 
snd_hda_intel          35309  0 
snd_hda_codec         147474  2 snd_hda_codec_realtek,snd_hda_intel
lpc_ich                12849  0 
drm_kms_helper         35438  1 i915
snd_hwdep               6332  1 snd_hda_codec
snd_pcm                77765  2 snd_hda_codec,snd_hda_intel
drm                   231168  3 i915,drm_kms_helper
iwlwifi               136579  1 iwldvm
cfg80211              406112  3 iwlwifi,mac80211,iwldvm
acpi_cpufreq           10502  0 
snd_page_alloc          7234  2 snd_pcm,snd_hda_intel
snd_timer              18718  1 snd_pcm
snd                    58950  6 snd_hda_codec_realtek,snd_hwdep,snd_timer,snd_pcm,snd_hda_codec,snd_hda_intel
i2c_algo_bit            5391  1 i915
tg3                   153198  0 
i2c_core               23720  5 drm,i915,i2c_i801,drm_kms_helper,i2c_algo_bit
intel_agp              10872  1 i915
ac                      3324  0 
ptp                     8180  1 tg3
pps_core                8857  1 ptp
libphy                 20100  1 tg3
ideapad_laptop          9961  0 
sparse_keymap           3114  2 acer_wmi,ideapad_laptop
rfkill                 15666  4 cfg80211,acer_wmi,ideapad_laptop
wmi                     8283  1 acer_wmi
mperf                   1267  1 acpi_cpufreq
thermal                 8620  0 
soundcore               5418  1 snd
intel_gtt              12664  3 i915,intel_agp
battery                 6893  0 
processor              27755  3 acpi_cpufreq
button                  4669  1 i915
video                  11328  2 i915,acer_wmi
ext4                  456123  1 
crc16                   1359  1 ext4
mbcache                 5866  1 ext4
jbd2                   81946  1 ext4
sr_mod                 14898  0 
sd_mod                 30730  4 
cdrom                  34848  1 sr_mod
ums_realtek             7423  0 
usb_storage            47847  2 ums_realtek
ahci                   22792  2 
libahci                21169  1 ahci
libata                171016  2 ahci,libahci
scsi_mod              127740  4 usb_storage,libata,sd_mod,sr_mod
uhci_hcd               24595  0 
ehci_pci                4120  0 
ehci_hcd               47640  1 ehci_pci
usbcore               177151  5 uhci_hcd,ums_realtek,usb_storage,ehci_hcd,ehci_pci
usb_common              1648  1 usbcore

Last edited by marcelof (2013-08-13 16:22:54)

Offline

#2 2013-08-13 09:53:35

Gunslinger
Member
From: Germany
Registered: 2013-01-05
Posts: 6

Re: USB stick listed in /dev only after 4 minutes, won't automout [SOLVED]

Hi marcelof,

I seem to have the same issue. The problem occured after updating. I'm now on Kernel 3.10.5-1 which shows this problem. Please check the thread https://bbs.archlinux.org/viewtopic.php?id=167705. There are several users discussing the problem.

Cheers
Robert


The man in black fled across the desert, and the gunslinger followed.

Offline

#3 2013-08-13 09:58:23

rufus
Banned
From: san francisco
Registered: 2013-04-20
Posts: 153

Re: USB stick listed in /dev only after 4 minutes, won't automout [SOLVED]

USB sticks have a limited lifespan and the kernal needs to find blocks that are up to snuff.....
    they just get old ...."flash" and theyre gone after a while.......


end ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     'the machine is not the end to the means., we are. In history, in board rooms and politic the greatest  decision and effort
        evolves from passion, lust for life, and a common sense of humanity. Never forget what you are and why'.         -me

Offline

#4 2013-08-13 10:50:20

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: USB stick listed in /dev only after 4 minutes, won't automout [SOLVED]

The patch in gunslinger's linked thread works, so you can either patch your kernel, or downgrade to 3.10.2 and wait for the upstream merge.

rufus - fyi, that's not relevant at all here.

Offline

#5 2013-08-13 15:38:29

Lekensteyn
Member
From: Netherlands
Registered: 2012-06-19
Posts: 192
Website

Re: USB stick listed in /dev only after 4 minutes, won't automout [SOLVED]

Wait for linux 3.10.6-2, that contains the patch to fix the USB issue.

Last edited by Lekensteyn (2013-08-13 15:39:56)

Offline

#6 2013-08-13 16:19:37

marcelof
Member
Registered: 2009-01-08
Posts: 6

Re: USB stick listed in /dev only after 4 minutes, won't automout [SOLVED]

I just confirmet it's fixed.
Thank you all for your help!

Offline

Board footer

Powered by FluxBB