[1+1=2]
OneAndOneIs2

Wed, Dec 12, 2007

[Link][Icon]You have to be amazingly smart

...to be this stupid.

I have a 40GB USB hard drive. Huge amounts of stuff are on it - all my coursework for university, for starters. I plugged it to my desktop to get something off it, and nothing happened. Other than the power light lighting up, no icon on the desktop, no window showing the file contents.. nothing.

Uh-oh.

But hey. I'm a geek, let's not panic. This is probably a software glitch, not hardware failure. And they can be dealt with.. let's see what dmesg has to say.

[175513.646532] usb 1-3: new full speed USB device using ohci_hcd and address 7
[175513.830370] usb 1-3: device descriptor read/64, error -62
[175514.106104] usb 1-3: device descriptor read/64, error -62
[175514.381851] usb 1-3: new full speed USB device using ohci_hcd and address 8
[175514.565682] usb 1-3: device descriptor read/64, error -62
[175514.853410] usb 1-3: device descriptor read/64, error -62
[175515.133150] usb 1-3: new full speed USB device using ohci_hcd and address 9
[175515.540767] usb 1-3: device not accepting address 9, error -62
[175515.716603] usb 1-3: new full speed USB device using ohci_hcd and address 10
[175516.124229] usb 1-3: device not accepting address 10, error -62

Yep. Software. No problem.

If this were Windows, it'd be the ubiquitous solution: Shut everything down, reboot, and it'll be fixed.

But it isn't, it's Linux. The USB drivers are modules, so just reload the modules and they're "rebooted" without losing anything else.

I've done this exact thing before, when I was trying to get suspend-to-RAM working and it broke USB. rmmod, modprobe, and boom, it's back up.

So off we go:
rmmod ohci_hcd

So far so good
modprobe ohci_hcd

Umm...

modpr...
mod...
m
mmmmmmmmmm

Oh, for...

What had I forgotten?

Go on, guess.

Yep. I had forgotten that my keyboard and mouse are both plugged in via USB. Which I had just disabled. And couldn't re-enable without typing a command..

Catch-22. Bugger. This is why I hate USB mice and keyboards. The PS/2 ports are there for a REASON!

Okay, we can fix this: My desktop is still running SSH, just connect from my laptop and reload the module remotely.

Only.. I don't know the IP address on my new home LAN. How to find out where I'm SSH-ing to?

Let's try the Trinity approach: nmap

nmap -sP 192.168.1.1-255

Ah, there it is! Right. SSH time at last, and modprobe ohci_hcd

And my keyboard lives again!

And, at long last, I plug in my hard drive and it opens.

Sigh.

Five minutes to fix something as simple as a slightly-buggy driver. Next time, remind me to use the "&&" operator or something..

3 comments • Categories: Omni, FOSS, Technology, My Life

Comments:

Comment from: BlackNight [Visitor] Email · http://www.linux-geek.org
I've been in a situation similar to this one: I was installing Asterisk on my router, from a remote location. And from I don't know remember what reason I decided to reestablish the PPPoE connection to my ISP... "ifdown wan"... I had to wait about 4 hours for someone to reboot it.
PermalinkPermalink 12/12/07 @ 18:57
Comment from: sinn3r [Member] Email · http://sinn3r.org/
okay... you're the real geek.

i would used the main powerswitch and reboot... :-]


... but i do *not* use windows and the win-like methods, eh? :)
PermalinkPermalink 12/12/07 @ 22:19
Comment from: kqrdeb [Visitor] Email
Why don't just plug in a PS/2-keyboard meanwhile?... :P
Anyway funny reading! ^^,
PermalinkPermalink 19/03/08 @ 12:49

Leave a comment:

Your email address will not be displayed on this site.
Your URL will be displayed.

Allowed XHTML tags: <p, ul, ol, li, dl, dt, dd, address, blockquote, ins, del, span, bdo, br, em, strong, dfn, code, samp, kdb, var, cite, abbr, acronym, q, sub, sup, tt, i, b, big, small>
(Line breaks become <br />)
(Set cookies for name, email and url)
(Allow users to contact you through a message form (your email will NOT be displayed.))

Categories

August 2008
Mon Tue Wed Thu Fri Sat Sun
 << <   > >>
        1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31

Search

Misc

XML Feeds

What is this?
eXTReMe Tracker

Valid XHTML 1.0 Transitional

Valid CSS!

[Valid RSS feed]

powered by
b2evolution

blank