LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
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?

Notices

Reply
 
Search this Thread
Old 04-04-2007, 04:39 PM   #1
ultrasawblade
LQ Newbie
 
Registered: Apr 2007
Distribution: Debian
Posts: 15

Rep: Reputation: 0
USB hard drives seem to self-disconnect for no apparent reason


Some background information:

I have two external hard drives connected to my Linux box running Debian Etch (kernel 2.6.19.1)

The two hard drives are 1) a Seagate 160GB external with built-in usb interface and 2) Western Digital 250GB attached to a Dynex usb interface (lsusb reports it is a "Cypress Semiconductor Corp.")

They are attached to a Belkin USB 2.0 PCI interface (NEC chipset according to lspci).

The problem:

This has happened twice, when I'm copying a large amount of data (first attempt was during a 50GB copy and second during a 100GB copy). During the copy, the operation will fail at some point with numerous errors, an I/O error among them. According to kern.log, the numerous errors are due to a "dead device", similar to what would happen if you unplugged the drive while I/O was in progress.

So, it seems as though at some point the drives are being disconnected. Only thing is, they aren't. I didn't touch them; they are still physically connected! lsusb at this point shows nothing connected, even if i disconnect and reconnect the drives. A reboot seems to fix it.

The earliest usb-related error in the log since my last reboot is this:

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

That appears about four times and then

usb 1-3: device descriptor read/64, error -71

First message appears four times, then it goes back and forth in the logs between the first and second messages. Then:

usb 1-3: USB disconnect, address 2

Then the flood of errors and "rejected I/O due to device being removed" and "Buffer I/O error" and "EXT2-fs error" and "I can't find my inodes" and "You're fscked now" and all that good stuff that happens when a drive is suddenly pulled during I/O.

Funny thing is, I can't access neither hard drive. It's like the PCI USB card dies after that or something.

This never happened when I only had one drive hooked up. Any ideas what could be causing this?
 
Old 04-04-2007, 05:21 PM   #2
jiml8
Senior Member
 
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 115Reputation: 115
Insufficient power?

Maybe the HD is really going bad?
 
Old 04-05-2007, 03:31 AM   #3
ultrasawblade
LQ Newbie
 
Registered: Apr 2007
Distribution: Debian
Posts: 15

Original Poster
Rep: Reputation: 0
If the HD is going bad then why does it seemingly knock out both drives at the same time? When this happens, I can't access either drive through the USB.

Both external HD's are externally powered. Inside the box is a 350w PSU, running a 500Mhz Celeron CPU, 2 NICs, the PCI USB card, and two HDs. I don't think I'm taxing the PSU in the box.

Maybe my USB card is going bad, or it could be an external power issue...maybe...
 
Old 04-05-2007, 03:38 AM   #4
r00tb33r
Member
 
Registered: Feb 2007
Distribution: Vector
Posts: 318

Rep: Reputation: 31
What filesystems you got on those drives? Could be a limitation in the filesystem driver, such as filesize limitation. I ran into all kinds of nasty errors because of that in the past.
How big is the stuff you are trying to copy?
Are you doing it through SMB by any chance?
...
This thread might be of your interest... Apparently there is such thing as a mount timeout. Never knew there was such thing.
http://www.linuxquestions.org/questi...d.php?t=543097

Last edited by r00tb33r; 04-05-2007 at 04:16 AM.
 
Old 04-05-2007, 08:05 AM   #5
ultrasawblade
LQ Newbie
 
Registered: Apr 2007
Distribution: Debian
Posts: 15

Original Poster
Rep: Reputation: 0
By the way, thank you both (and anyone else who might respond) for your quick replies and helpfulness. Even if I can't solve this problem here, I appreciate your help.

Filesystems: fat32 on the 160gb, ext2fs on the 320gb

The first time i was trying to copy via smb. I was copying a large 50gb set of files from my WinXPSP2 box to the 320gb drive. I had smb shares pointed to the symlinks usbmount makes in /var/run/usbmount.

Eventually after a couple of fscks I got those copied. My next task is to copy a 95GB set of files from the 160gb to the 320gb. This task is where my second and third mysterious disconnects happened.

The third time I was doing it (which was about 4 hours ago) was not through samba, but directly on the debian box via a cp command (as root), but still through those symlinks. I'm about to try it with the drives manually mounted.

Wouldn't a filesystem error/crash leave something in the logs before a usb disconnect message? And that doesn't explain why it seems that both drives are disconnected and the entire bus is deactivated.

Mount timeout, hmm, didn't know about that either. But, I'm getting no timeout messages in my logs...
 
Old 04-05-2007, 01:55 PM   #6
r00tb33r
Member
 
Registered: Feb 2007
Distribution: Vector
Posts: 318

Rep: Reputation: 31
By default samba is limited to 2gb max per file... There is an option that disables the limitation.
 
Old 04-05-2007, 03:41 PM   #7
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 172Reputation: 172
All PSUs are not created equal. An iffy 350 on your setup could produce lots of unusal problems and be very difficult to diagnose.

If the drives use wall warts I would also suspect these.
 
  


Reply


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
fedora server shuts down for no apparent reason jordanthompson Linux - General 9 09-10-2005 02:54 PM
Eth0 interface dead... for no apparent reason in suse 9.1. any ideas? GD_19 Linux - Networking 1 10-16-2004 03:19 AM
Fedora Core II locking for no apparent reason k41184 Linux - Software 1 09-11-2004 12:47 PM
xorg hanging for no apparent reason Covel Linux - Software 6 06-06-2004 04:59 AM
X drops back to 640x480 for no apparent reason Griffon26 Linux - Software 2 06-24-2002 01:55 PM


All times are GMT -5. The time now is 08:42 AM.

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