LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-14-2002, 02:02 PM   #1
JimKyle
Member
 
Registered: Dec 2001
Location: Oklahoma City, OK, USA
Distribution: Xubuntu 16.04 LTS
Posts: 214
Blog Entries: 1

Rep: Reputation: 39
Question Intermittent drive error


From time to time, I get a burst of four error messages within 1 to 2 seconds, always the same problem and always on /dev/hda. Here's one such burst from my kernel.warnings log:

Mar 12 22:01:45 JKP200 kernel: hda: timeout waiting for DMA
Mar 12 22:01:45 JKP200 kernel: ide_dmaproc: chipset supported ide_dma_timeout func only: 14
Mar 12 22:01:45 JKP200 kernel: hda: status error: status=0x58 { DriveReady SeekComplete DataRequest }
Mar 12 22:01:45 JKP200 kernel: hda: drive not ready for command

This drive is a fairly new Maxtor 20-GB 7200 RPM unit, that's partitioned to all be in vfat format (it was originally the Win95 drive in a dual-boot setup but I subsequently dumped Windows entirely from that box; hdc is my Linux drive, another 20-GB but only 5400 RPM). I'm guessing that the rotation speed has something to do with it, and that the driver is simply missing a signal somewhere. So far as I can tell no data corruption is taking place, but I sometimes have to try twice to open a file instead of having success on the first try.

My question is simply how can I cure this situation? I've used hdparm to enable DMA and unmask the IRQs, to try to take full advantage of the drive's speed, but I was getting these same errors before I did that tweak. I'm also running SMART on both drives, and it's reporting "no errors" on both. Any ideas, anyone? Incidentally I'm familiar with device interfacing at the ATA register level, having worked for years with the plant that's now Seagate but which began as General Electric's Peripherals Department...
 
Old 03-14-2002, 02:33 PM   #2
jbanafato
Newbie
 
Registered: Mar 2002
Posts: 28

Rep: Reputation: 15
Well, I've never worked in a fab plant, so you probably know more about this than I do, but I'll tell you what I'd do if it were me...

1) Use the Maxtor PowerMax (http://www.maxtor.com/softwaredownload/default.htm) to check the drive. SMART isn't the best technology, as it sometimes does not report correctable drive errors (bad sectors that can be disabled, etc.). The software has a large array of tests and seems to be very complete. If the full scale test comes back clean you probably have a good drive.

2) If you're still running a FAT filesystem, you could try Steve Gibson's SpinRite utility (www.grc.com). I haven't used it in years, but apparently it's still a very useful program, and there's a lot of detailed information for you to read.

3) Now that that the diagnostics are done, try playing with hdparm. This program allows you to test and set all sorts of drive parameters. Like anything else, the disclaimer says it has the potential to corrupt data, but I've used it for a long time to enable UDMA (UDMA settings could be important in your case) on my drives and I've never had a problem. There's an article on some of it's uses here: http://linux.oreillynet.com/pub/a/li...9/hdparm.html.

So, if worse comes to worse and the drive is defective, you can count on Maxtor to replace it for free without any haggling. Otherwise, it's probably something that you can tweak with hdparm. I run a 20GB 7200 Maxtor on one of my systems without any special configurations (other than enabling UDMA with hdparm), and several other 7200 drives from various vendors in other systems.

I hope something here helps. Again, I'm not an expert in this particular field, so please excuse anything that may come off as trivial. Good luck...

-Joe
 
Old 03-14-2002, 03:15 PM   #3
JimKyle
Member
 
Registered: Dec 2001
Location: Oklahoma City, OK, USA
Distribution: Xubuntu 16.04 LTS
Posts: 214

Original Poster
Blog Entries: 1

Rep: Reputation: 39
Thanks for the ideas! I've downloaded the PowerMax package per your link and will run it next time I take down the Linux box (which is my firewall-router-FTP server for my business; the hda drive is the file server). I already have SpinRite 5 and find it quite useful; hadn't thought of using it!

The situation could well be a bad sector; it could equally well be something in the vfat driver. I really should offload all the data I have on that drive and convert it over to ext2 or ext3 filesystem since I no longer run Windows at all on that machine. A third possibility could be that my CPU there (a Pentium 200 MMX dating from 1997 or so) isn't fast enough to keep up with things.

I've considered switching from the current DMA2 interface on this drive, to UDMA; "hdparm -i" reports that it has UDMA-66 capability. Since the error seems to be DMA-related that might take care of it all by itself!
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Hard drive failure error? (sense key Medium error) Arodef Linux - Hardware 2 11-02-2004 12:39 PM
Intermittent Segfaulting (once a weekish) canterburyman Linux - Hardware 1 10-18-2004 05:47 AM
Intermittent HTTP problems jandersen78 Linux - Networking 5 09-28-2004 10:08 AM
Intermittent connection errors aidanmcgowran Linux - Wireless Networking 0 06-29-2004 08:16 AM
Intermittent logging out!!!!!!! Mrinmoy Linux - Software 1 04-29-2003 11:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:58 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
Open Source Consulting | Domain Registration