Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Forum Archive > Main Support Categories > Hardware & Laptops
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.

Hardware & Laptops
Problems with hardware & laptops not being detected or supported during or after install.

 
 
Thread Tools Display Modes
Old April 21st, 2006   #1
ubusarah
First Cup of Ubuntu
 
Join Date: Mar 2006
Beans: 7
Ubuntu 6.06
Disk Hangs; reset high speed USB device using ehci_hcd and address 2

Hi,

I have Breezy Badger installed and working fine... except...

I have /home and /usr/local mounted to an external 2.5" bus-powered USB Drive, both filesystems are formatted as ext3, and I am *not* trying to hot plug the drive. Usually, this setup works just fine.

However, a couple times a day, as I'm working with it, periodically the whole machine just seems to "lock up" for a little while, oh, maybe 10-30 seconds. By fiddling, examining logs, and watching carefully, I was able to discover that apparently what happens is that disk access will hang for a little while, and then finally, the message:

usb 3-1: reset high speed USB device using ehci_hcd and address 2

gets written into /var/log/kern.log, and then everything goes back to normal. Until it happens again.

What's going on? Should I be worried? Can I fix this? Hardware problem? Software problem? Bug?

I'm thinking about switching from the little laptop drive to an IDE drive caddy to get rid of this problem, but it's not my first choice.

Oh, and I mostly access this machine remotely using MacOS X X11 and gig ethernet. The box itself is a Shuttle SS56GV2 with a 2.8gig celeron and 2gig ram, with two internal IDE drives that hold everything except /home and /usr/local. No USB hub. iptables is configured for a very tight firewall.

Thanks,

Sarah
ubusarah is offline  
Old April 21st, 2006   #2
z_diver
Gee! These Aren't Roasted!
 
z_diver's Avatar
 
Join Date: Nov 2005
Location: Mochima, Venezuela
Beans: 189
Ubuntu 8.10 Intrepid Ibex
Send a message via AIM to z_diver Send a message via Yahoo to z_diver
Re: Disk Hangs; reset high speed USB device using ehci_hcd and address 2

Quote:
Originally Posted by ubusarah
I have /home and /usr/local mounted to an external 2.5" bus-powered USB Drive, both filesystems are formatted as ext3, and I am *not* trying to hot plug the drive. Usually, this setup works just fine.
By bus-powered do you mean it's plugged into usb for I/O transactions and ps2 for power?

I have a collection of these devices and I've never been able to get them to work properly. I don't know what it is about them but I have had much better luck using firewire(on Mac) and ac/dc powered usb enclosures with on/off switches for Linux/Win/Mac.
z_diver is offline  
Old April 21st, 2006   #3
ubusarah
First Cup of Ubuntu
 
Join Date: Mar 2006
Beans: 7
Ubuntu 6.06
Re: Disk Hangs; reset high speed USB device using ehci_hcd and address 2

Quote:
Originally Posted by z_diver
By bus-powered do you mean it's plugged into usb for I/O transactions and ps2 for power?

I have a collection of these devices and I've never been able to get them to work properly. I don't know what it is about them but I have had much better luck using firewire(on Mac) and ac/dc powered usb enclosures with on/off switches for Linux/Win/Mac.
No, I mean powered entirely from the USB bus. Which is why I don't, for instance, have them plugged into a passive hub. Not enough power.

There's clearly enough power for it to work... and these particular enclosures have been reliable for me in the past, plugged into other hardware, but... hmm... I wonder if, for instance, the drive is being spun down, and when it spins back up it doesn't *quite* have enough power? The transient voltage drop might cause the drive controller to reset which would confuse the driver, which would eventually time out... and issue a reset? It could also be that the ports on the Shuttle box don't provide quite as much power as my other hardware does.

It might also have to do with the drive in the enclosure being a somewhat older drive. It probably consumes a bit more power than a more modern one.

Hmm, yes, you might be right. It could be a power issue. I'll fiddle with it when I get a chance. I do have some external firewire enclosures that use AC power; I could use one of those instead.
ubusarah is offline  
Old August 3rd, 2007   #4
fritztcat
First Cup of Ubuntu
 
Join Date: Mar 2007
Beans: 1
Re: Disk Hangs; reset high speed USB device using ehci_hcd and address 2

Even if this thread is a bit dated by now, I post what worked for me to solve this problem with feisty:

The max_sector was set too high for the usb harddisk.

Code:
cat /sys/block/sda/device/max_sectors
reported 240 sectors (assuming the usbdisk is /dev/sda). Setting it to 128 with

Code:
echo 128 >/sys/block/sda/device/max_sectors
did the trick for me, as this is the maximum number of sectors the hdd can read/write at once. For some drives the optimal value could be 64.

- Fritz
fritztcat is offline  
Old September 9th, 2007   #5
cberthe
First Cup of Ubuntu
 
Join Date: May 2006
Beans: 1
Re: Disk Hangs; reset high speed USB device using ehci_hcd and address 2

I exactly have the same problem using Mac OS X to access shared USB discs on my ubuntu ...
Reducing the max_sectors to 64 do not solve the problem for me ...

This problem only occurs with Mac OS X accessing samba shares ...

I do not understand why ...

Does anyone have a solution to this problem ?

Thank you !
cberthe is offline  
Old January 24th, 2008   #6
Nephiel
5 Cups of Ubuntu
 
Join Date: Jan 2006
Beans: 20
Re: Disk Hangs; reset high speed USB device using ehci_hcd and address 2

I have exactly the same problem.
dmesg says this:
Code:
[43385993.110000] usb 4-6: new high speed USB device using ehci_hcd and address 7
[43385993.260000] scsi4 : SCSI emulation for USB Mass Storage devices
[43385993.260000] usb-storage: device found at 7
[43385993.260000] usb-storage: waiting for device to settle before scanning
[43385998.260000]   Vendor: SanDisk   Model: U3 Cruzer Micro   Rev: 4.05
[43385998.260000]   Type:   Direct-Access                      ANSI SCSI revision: 02
[43385998.260000] SCSI device sda: 8027789 512-byte hdwr sectors (4110 MB)
[43385998.260000] sda: Write Protect is off
[43385998.260000] sda: Mode Sense: 03 00 00 00
[43385998.260000] sda: assuming drive cache: write through
[43385998.270000] SCSI device sda: 8027789 512-byte hdwr sectors (4110 MB)
[43385998.270000] sda: Write Protect is off
[43385998.270000] sda: Mode Sense: 03 00 00 00
[43385998.270000] sda: assuming drive cache: write through
[43385998.270000]  sda: sda1
[43385998.270000] sd 4:0:0:0: Attached scsi removable disk sda
[43385998.270000] sd 4:0:0:0: Attached scsi generic sg0 type 0
[43385998.270000] usb-storage: device scan complete
After reading files from the disk for a few seconds, the disk hangs and these lines pop up in dmesg:
Code:
[43386170.030000] usb 4-6: reset high speed USB device using ehci_hcd and address 7
[43386171.150000] usb 4-6: device descriptor read/64, error -71
I'm using Ubuntu 6.06 Server (LTS) with the latest kernel and updates.
The USB disk is a 4GB Sandisk Cruzer Micro that works fine under Windows.

Is there something I could do?
Nephiel is offline  
Old March 9th, 2008   #7
fsu8
First Cup of Ubuntu
 
Join Date: Mar 2008
Beans: 1
Re: Disk Hangs; reset high speed USB device using ehci_hcd and address 2

Try this:

modprobe -r ehci_hcd

My laptop works after this. It then uses uhci_hcd driver which is USB1.0 speed (very slow). A post (http://lists.debian.org/debian-amd64.../msg00139.html) said this:

"Try a different cable. If the UHCI controller can operate the device, but the EHCI controller cannot, you either have a broken kernel build (unlikely) or the electrical connection cannot maintain the 480 megabit performance. "

Either it's a power/hardware issue or a bug in ehci_hcd.
fsu8 is offline  
Old March 14th, 2008   #8
Nephiel
5 Cups of Ubuntu
 
Join Date: Jan 2006
Beans: 20
Re: Disk Hangs; reset high speed USB device using ehci_hcd and address 2

Still having this problem after updating to the latest Dapper LTS kernel (2.6.15-51-386-i686). It's really frustrating.

Happens on both my desktop and my laptop, with different USB mass storage devices (a Sandisk Cruzer Micro 4GB, a Iomega 3.5" enclosure with external power supply, a Conceptronic 3.5" enclosure also with external power, and even an iPod in disk mode). All of these devices work fine under Windows on my laptop.

Unloading ehci_hcd works, but USB 1 is too slow for large transfers of files (backups and syncs).

Tried different PCI-to-USB adapter cards on my desktop PC, with different chipsets (VIA and Ali) and neither worked well.

Also tried disabling the athcool daemon on my desktop PC, just in case. Still no luck.

Bad wiring? The Sandisk Cruzer plugged directly into the rear USB ports of the motherboard also has this problem. And the iPod is using the bundled cable, which works fine (and fast) under Windows.
Power issue? I don't think so; both of the hard drive enclosures I've used have external power supplies, and the same thing happens to them.

It seems this bug has been around for quite a while. I've seen lots of web pages, forum posts and bug reports about what seems to be the same issue, and no solution yet
Nephiel is offline  
Old March 30th, 2008   #9
Nephiel
5 Cups of Ubuntu
 
Join Date: Jan 2006
Beans: 20
Re: Disk Hangs; reset high speed USB device using ehci_hcd and address 2

Seems to be related to this bug:
https://bugs.launchpad.net/ubuntu/+s....20/+bug/88746

No solution yet
Nephiel is offline  
Old April 23rd, 2008   #10
CrazyGuy123
Gee! These Aren't Roasted!
 
Join Date: Jun 2007
Beans: 205
Re: Disk Hangs; reset high speed USB device using ehci_hcd and address 2

this is a 2+ year old bug, which still happens in the latest hardy release candidate.

It should have higher priority, as really it is a blocker to using ubuntu in some situations.

In case you need another test case, it also occurs with a 4GB "Super-Talent" USB2.0 flash disk on an hp nx6125 laptop. Changing bios usb settings has no effect. I don't have the experience or equipment required to start debugging usb bus problems.
CrazyGuy123 is offline  
 

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:35 PM.


vBulletin ©2000 - 2010, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry