LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 05-20-2008, 06:35 PM   #1
Deomanh
LQ Newbie
 
Registered: Jul 2005
Posts: 3

Rep: Reputation: 0
Ext3 partition read/write hickups


Greets

So, where to begin... I have a debian etch powered ARM architecture Linksys NSLU2 with an external 500GB USB Western Digital Elements drive. The little slugger serves my home network 24/7 with a handful of common services, including network storage. The drive is split up in 3 partitions, being sda1 for swap, sda2 an ext3 with the system, and sda3 an ext3 for storage with most of the drive's space. Bought all of it at, at most, two months ago, and it's been running flawlessly up until a couple of weeks ago, when it locked up and I had to hard shutdown the NSLU2 by physically cutting the power.

What happens since then is that the sda3 partition gets read/write (mostly read) errors frequently, apparently at random, and I've had to "fsck -y" it about 4-5 times already in about a week. A ton of things get fixed and the partition gets marked clean, but the read/write errors continue. I'm hoping it's not a hardware problem, but I can't be sure. The problems seem to be focused solely on the sda3 partition. Also, I haven't tried checking for bad blocks yet because it would take about 35 hours or more to complete the scan.

Specifically, when there's a prolonged read operation going on, such as having a network computer play a video stored in the device, the video hangs often for about 3-5 seconds at random intervals. The video file itself is not corrupted, as I've copied it to another computer and it checked ok, no hangs, no errors, nothing. Immediately after a hang stops, I get this kernel message:

May 21 00:11:02 nslu2 kernel: sda: Current: sense key=0x0
May 21 00:11:02 nslu2 kernel: ASC=0x0 ASCQ=0x0
May 21 00:11:02 nslu2 kernel: Info fld=0x0

...which, according to a google search, doesn't mean much. I also get consecutively, albeit rarely, this type of message:

May 20 06:19:10 nslu2 kernel: attempt to access beyond end of device
May 20 06:19:10 nslu2 kernel: sda3: rw=0, want=1199311376, limit=967964445

...when reading or writing to disk. Maybe some metadata got screwed, but shouldn't fsck fix that too? Currently, the partition is marked clean and I'm getting these messages practically everytime I read/write something exclusively to sda3, be it large or small files. One effect I found strange while playing MP3 files was that it seemed to skip forwards and/or backwards for a couple of seconds, after which it resumed exactly where it left off.

I've tune2fs it to remount-ro when an error occurs, but actual errors, unlike those shown by the above quoted messages, when they happen, warrant an fsck sweep which everytime fixes tens if not hundreds of things, even requiring several fsck iterations. Needless to say, the lost+found directory is crawling with stuff, even though there don't seem to be almost any (noticeable) corrupted user files.

What can I do about this, short of scrapping the partition or drive? What's going on? Any hints?
Thanks
 
Old 05-21-2008, 12:36 PM   #2
ronlau9
Senior Member
 
Registered: Dec 2007
Location: In front of my LINUX OR MAC BOX
Distribution: Mandriva 2009 X86_64 suse 11.3 X86_64 Centos X86_64 Debian X86_64 Linux MInt 86_64 OS X
Posts: 2,369

Rep: Reputation: Disabled
In the old days by a hard shut down the disk can get damaged ,because the head touch the disk but I think this problem is solve. Computer retailer has a utility to do a deep down format.
If nothing helps maybe you can borough such a utility

al the best
 
Old 06-02-2008, 12:16 PM   #3
Kaste
LQ Newbie
 
Registered: Jun 2008
Posts: 5

Rep: Reputation: 0
If you happen to dual boot you should try the tools your manufacturer provides for these cases. I think the ones you are looking for are locatedt here: http://support.wdc.com/product/downl...&sid=3&lang=en
 
  


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
Accessing ext3 formated Linux partition from Windows in read/write mode. paragkalra Linux - Software 2 05-14-2008 06:35 AM
how to enable normal user to read/write ext3 partition hottdogg Linux - General 5 08-30-2007 06:11 AM
Mount ext3 partition in /home/USER/Documents with read/write/execute acces for USER anonymous234 Linux - Hardware 2 01-12-2007 12:23 PM
How can i read and write to a ext3 partition from windows saini_mw Linux - Software 6 04-19-2006 02:07 AM
Read/Write access ext3 partition st00 *BSD 5 06-28-2004 08:46 PM

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

All times are GMT -5. The time now is 08:38 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