[Bug 16351] USB memory stick takes very long to automount
bugzilla-daemon at bugzilla.ubuntu.com
bugzilla-daemon at bugzilla.ubuntu.com
Fri Oct 7 18:33:51 UTC 2005
Please do not reply to this email. You can add comments at
http://bugzilla.ubuntu.com/show_bug.cgi?id=16351
Ubuntu | linux
------- Additional Comments From linux2k at gmail.com 2005-10-07 19:33 UTC -------
(In reply to comment #14)
> Thanks for the debugging output.
No problem! Thank you for your support... This seems like the only way that I
can give something back to the community.
> From what I can tell from the HAL log, hal
> immediately saw the USB device itself (the USB driver and the storage device),
> but never saw the actual mountable volume (which appears three minutes later).
> Can you manually mount the stick after these three minutes with
>
> pmount /dev/sda1
>
> ? Check if /media/sda1 contains your USB stick data afterwards.
I did what you asked me to try... "pmount" did work and I was able to browse
through the /media/sda1 location. GREAT!
> I also evaluated your kernel log:
>
> [4294798.315000] usb 5-6: new high speed USB device using ehci_hcd and address 2
>
> that's the time when you inserted the stick, I assume.
>
> [4294803.890000] SCSI device sda: 512000 512-byte hdwr sectors (262 MB)
>
> (5 seconds later) the kernel saw the raw storage device (hal sees it at that time)
>
> [4294889.962000] usb 5-6: reset high speed USB device using ehci_hcd and address 2
>
> This operation takes 1 minute and 26 seconds.
>
> [4294977.257000] sda: assuming drive cache: write through
> [4294977.257000] /dev/scsi/host2/bus0/target0/lun0: p1
>
> another minute and 26 seconds later the kernel finally recognizes the partitions.
>
> These delays seem to match the three minutes you described.
>
> One question: are you sure that you rebooted? An uptime of 4294977 seconds means
> 49.7 days! Maybe there is another bug in here?
Hhehe... I do reboot this PC at least once a day :) And that means total
power-off. So there could be a bug in the Kernel ?? :)
> Can you please also try another thing? Remove the stick, do
>
> sudo rmmod ehci-hcd
>
> and try again. This will remove the USB 2.0 kernel driver and use the slower,
> but maybe more robust 1.1 driver.
NOW this was an excellent suggestion! Right after I unloaded the module
ehci-hcd, I inserted USB stick. This time it was detected and mounted within 5
seconds or so! HUGE improvement... I wish that this was the default behavior. I
guess when dealing with a device such as USB stick, the difference between
USB1.1 and USB2.0 is not that crucial. This could be a problem when connecting
external HDs or some other devices. It would be great if USB2.0 worked just as
good as the USB1.1 kernel driver. Maybe it will get fixed one day...(are you in
touch with the people responsible for ehci-hcd... maybe a little better
explanation would help solving this weird problem?) I can live with what you
suggested. Is there a way to automatically unload ehci-hcd module on boot
(without typing this each time I reboot?).
> Thanks!
YOU ARE THE MAN !
Thanks for everything...
--
Configure bugmail: http://bugzilla.ubuntu.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.
More information about the desktop-bugs
mailing list