LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 01-14-2008, 10:41 AM   #1
1N4148
LQ Newbie
 
Registered: Jun 2006
Distribution: Gentoo
Posts: 22

Rep: Reputation: 15
Random read hangs with USB-HDD [solved]


Hi,
I've got a problem with my Maxtor 500GB USB2.0 external harddrive containing one big ReiserFS partition. This drive is fixed, so I can only attach it via USB. Power is pulled from an external brick.

Writing to this disk does not pose any problems. Reading however results in strange behavior.
After I copied a few hundred MB, sometimes a few ten MB or even GB off it, copying completely stops for almost exactly 60 seconds only to resume again afterwards. It just sits there fiddling thumbs and waiting for a timeout of some kind (presumably).
<data(random duration)> - <60 sec pause> - <data(random duration)> - <60 sec pause> etc.

This causes a few services like Samba to time out, making copying off that drive from another PC a pain in the butt.

My board is an Asus A7V333-X using the latest BIOS with the device attached to this onboard USB controller
Code:
#lspci
00:10.3 USB Controller: VIA Technologies, Inc. USB 2.0 (rev 82)
The harddrive:
Code:
#lsusb
Bus 001 Device 004: ID 0d49:3200 Maxtor
I'm using Gentoo running on the 2.6.23-gentoo-r3 kernel. 2.6.22-gentoo-r8, which I used before, displayed the same issue.

This device is said to work flawlessly (See here and here)

This comes up regarding this disk during boot
Code:
#dmesg
scsi 3:0:0:0: Direct-Access     Maxtor   3200             0344 PQ: 0 ANSI: 4
sd 3:0:0:0: [sdg] 976773168 512-byte hardware sectors (500108 MB)
sd 3:0:0:0: [sdg] Write Protect is off
sd 3:0:0:0: [sdg] Mode Sense: 17 00 00 00
sd 3:0:0:0: [sdg] Assuming drive cache: write through
sd 3:0:0:0: [sdg] 976773168 512-byte hardware sectors (500108 MB)
sd 3:0:0:0: [sdg] Write Protect is off
sd 3:0:0:0: [sdg] Mode Sense: 17 00 00 00
sd 3:0:0:0: [sdg] Assuming drive cache: write through
 sdg: sdg1
sd 3:0:0:0: [sdg] Attached SCSI disk
and during mount
Code:
#dmesg
ReiserFS: sdg1: found reiserfs format "3.6" with standard journal
ReiserFS: sdg1: using ordered data mode
ReiserFS: sdg1: journal params: device sdg1, size 8192, journal first block 18, max trans len 1024, max batch 900, max commit age 30, max trans age 30
ReiserFS: sdg1: checking transaction log (sdg1)
ReiserFS: sdg1: Using r5 hash to sort names
These messages pop up at the beginning and end of the 60 sec period:
Code:
#dmesg
usb 1-6: reset high speed USB device using ehci_hcd and address 4
I searched for that error on different forums/Google. I found others having the same problem. Many suggested to do this
Code:
echo 64 >/sys/block/sdg/device/max_sectors
I did to no avail. Other values didn't work either
Another suggestion was to mount the drive using the sync option. This also did not work for me

Any ideas?

Last edited by 1N4148; 01-14-2008 at 12:20 PM.
 
Old 01-14-2008, 12:20 PM   #2
1N4148
LQ Newbie
 
Registered: Jun 2006
Distribution: Gentoo
Posts: 22

Original Poster
Rep: Reputation: 15
Solved it.
After adding a third stick of RAM, the mem as a whole was running out of spec. I had to downclock it from 320 MHz to 306 MHz. Now it's running stable without any problems reading from that disk
 
  


Reply



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 hdd mounting read-only BCarey Linux - Hardware 2 11-24-2006 05:13 PM
ext. usb HDD mounts read only for non root accounts logname Linux - Hardware 14 02-27-2006 04:17 PM
USB External HDD Read Only!!! Mandriva 2005 LE ivancauso Linux - Newbie 4 12-01-2005 05:13 AM
USB HDD only working read-only. landfill Linux - Hardware 14 06-17-2005 02:53 PM
my dvd is read as hdd and my ide cd-rw is read as scsi??? spyghost Linux - Hardware 11 07-16-2003 04:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 10:20 PM.

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
Open Source Consulting | Domain Registration