Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Hardware
User Name
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?


  Search this Thread
Old 10-03-2010, 07:01 PM   #1
Registered: Oct 2003
Location: In a Cave on Mars
Posts: 52

Rep: Reputation: 15
can't access USB disk now and then

Every now and then my USB disk drops out and I get the following errors in dmesg
[247288.114545] EXT3-fs error (device sdb1): ext3_find_entry: reading directory #2 offset 0

But when I unplug it, and plug it back in do dmesg | tail, it doesn't pick it or any other usb storage device up (nothing comes out of dmesg this time).

So I tried to reload the module:
eteck@naavi:~$ sudo lsmod | grep usb
usbhid 36110 0
hid 67032 1 usbhid
usb_storage 39425 1

eteck@naavi:~$ sudo rmmod -f usb_storage
ERROR: Removing 'usb_storage': Resource temporarily unavailable

But as you can see I get the above error message.

They only think that works is a computer reboot (YUK!).

Any ideas:
* how to determine who is using it?
* force remove it
* solve my main issue of usb dropping out.
Old 10-04-2010, 01:50 PM   #2
Registered: Mar 2004
Location: Canada
Distribution: Slackware current
Posts: 728
Blog Entries: 2

Rep: Reputation: 43
The "lsof" command can be used to see who is using a file, so depending on your configuration you might be able to run something like:
lsof /dev/sdb1
Then you can end whatever processes are listed, and then maybe it will revive the USB stack.

I've used the following in the past when doing some USB work on a development platform:

It works fairly well, but doesn't recover from all conditions of course.

The main issue might be something in a kernel module, or the device. It would require a lot more analysis to work it all out.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
usb disk access gone wonky patostevens Slackware 4 06-01-2010 10:24 AM
access usb hard disk through commands iandroul Linux - Hardware 1 10-05-2007 10:34 AM
Remote Windows access Linux USB disk 1kyle SUSE / openSUSE 1 02-06-2007 04:18 PM
USB Falsh Disk access in different ways zillah Linux - Hardware 3 12-15-2005 01:48 PM
apache can not access my usb hard disk diffraction Linux - General 5 11-14-2005 02:28 AM > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 11:53 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration