LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (https://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   USB devices stop detecting (or un-detecting). (https://www.linuxquestions.org/questions/linux-desktop-74/usb-devices-stop-detecting-or-un-detecting-894620/)

Mleahy 07-30-2011 05:50 AM

USB devices stop detecting (or un-detecting).
 
I've had this problem a couple times now, and so far I've only been able to get things working again after a reboot. What happens is the OS stops detecting when I plugin/unplug external USB hard drives.

Let's say I've got two disks (A and B).

Disk A is plugged in, and appears as /dev/sdd

I can mount and use partitions on Disk A.

Now, I plugin Disk B...nothing new appears in /dev

I unplug it, unmount partitions Disk A, and unplug it as well. I now *still* have 'sdd' any previously detected partitions listed in /dev

At this point, I can no longer use either drive. I also will find, if I unplug my USB mouse than plug it back in, the mouse will no longer work.

So...it seems like the USB hardware detection system has just completely stopped.

I checked dmesg, and I do see 1000s of entries that look like this:

[53755.474042] xhci_hcd 0000:07:00.0: WARN: Stalled endpoint

I think this might be related to one of my USB drives that requires an external power source (which I had unplugged, while the device was plugged in but with no partitions mounted). It was also plugged in on a USB 3.0 port.

What I'm wondering is if there is a way to kick things back into gear, or am I just SOL and have to reboot whenever this occurs.

Thanks in advance for any suggestions.

kasl33 07-31-2011 02:08 AM

Ahh you have the insanely wonderful USB 3.0 issue that I tend to have. Here's one way that will help (hopefully) without a reboot:

Try this code in the terminal next time it happens:

Code:

rmmod xhci_hcd
modprobe xhci_hcd

There are issues with USB 3.0 on all kinds of distributions of Linux. I have found very few distributions of Linux that didn't have USB 3.0 issues in the past six months.

Anyway, that should do it. If not, please let me know. If it does help, then don't forget to click the little "helpful" button :)


All times are GMT -5. The time now is 04:15 AM.