LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 11-02-2003, 12:44 AM   #1
larrystorch
LQ Newbie
 
Registered: Mar 2003
Location: Reading, PA
Distribution: Slackware
Posts: 27

Rep: Reputation: 15
Question IDE errors: Bad HD or Kernel problem


I just started having the following errors on my WD 80gig HD since upgrading to Slackware 9.1 and compiling a custom kernel for it. I've had the drive for about a year and have not had a problem with it till now.

Code:
kernel: hda: write_intr error1: nr_sectors=8, stat=0x51
kernel: hda: write_intr: status=0x51 { DriveReady SeekComplete
kernel: hda: write_intr: error=0x10 { SectorIdNotFound }, LBAsect=78157001, sector=776
kernel: hda: write_intr error1: nr_sectors=8, stat=0x51
kernel: hda: write_intr: status=0x51 { DriveReady SeekComplete
kernel: hda: write_intr: error=0x10 { SectorIdNotFound }, LBAsect=78157001, sector=776
kernel: hda: write_intr error1: nr_sectors=8, stat=0x51
kernel: hda: write_intr: status=0x51 { DriveReady SeekComplete
kernel: hda: write_intr: error=0x10 { SectorIdNotFound }, LBAsect=78157001, sector=776
kernel: hda: write_intr error1: nr_sectors=8, stat=0x51
kernel: hda: write_intr: status=0x51 { DriveReady SeekComplete
kernel: hda: write_intr: error=0x10 { SectorIdNotFound }, LBAsect=78157001, sector=776    
kernel: ide0: reset: success
Is this a sign that the drive is failing or a kernel config problem?
Here is some info to help out:

Code:
hdparm -iI /dev/hdc
/dev/hdc:
 
 Model=WDC WD800JB-00CRA1, FwRev=17.07W17, SerialNo=WD-WMA8E4200547
 Config={ HardSect NotMFM HdSw>15uSec SpinMotCtl Fixed DTR>5Mbs FmtGapReq }
 RawCHS=16383/16/63, TrkSize=57600, SectSize=600, ECCbytes=40
 BuffType=DualPortCache, BuffSize=8192kB, MaxMultSect=16, MultSect=16
 CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=156301488
 IORDY=on/off, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120}
 PIO modes:  pio0 pio1 pio2 pio3 pio4
 DMA modes:  mdma0 mdma1 mdma2
 UDMA modes: udma0 udma1 udma2 udma3 udma4 *udma5
 AdvancedPM=no WriteCache=enabled
 Drive conforms to: device does not report version:  1 2 3 4 5


 xfermode to 69 (UltraDMA mode5)
 multcount    = 16 (on)
 IO_support   =  3 (32-bit w/sync)
 unmaskirq    =  1 (on)
 using_dma    =  1 (on)
These are the settings I have been using for a long time, So I don't think they would be the culprit.
 
Old 11-02-2003, 12:51 AM   #2
exodist
Senior Member
 
Registered: Aug 2003
Location: Portland, Oregon
Distribution: Gentoo
Posts: 1,372

Rep: Reputation: 46
I have had this before to, what kernel did you use/what ide options (noteable ones) did you use?
 
Old 11-02-2003, 03:26 AM   #3
crashmeister
Senior Member
 
Registered: Feb 2002
Distribution: t2 - trying to anyway
Posts: 2,541

Rep: Reputation: 47
If you still got warranty on the hdd head over to http://sourceforge.net/projects/va-ctcs/ install it,read the warning and run the hdd test for about a day or two.I had the same warning various times on one hdd about a year ago and also got data corruption but after I changed file systems it worked fine.
 
Old 11-02-2003, 12:55 PM   #4
larrystorch
LQ Newbie
 
Registered: Mar 2003
Location: Reading, PA
Distribution: Slackware
Posts: 27

Original Poster
Rep: Reputation: 15
Here's some more info:

ext3 filesystem
Albatron KX-400-8X mobo (VIA KT-400 chipset)

Kernel:

Code:
# IDE, ATA and ATAPI Block devices
#
CONFIG_BLK_DEV_IDE=y
# CONFIG_BLK_DEV_HD_IDE is not set
# CONFIG_BLK_DEV_HD is not set
CONFIG_BLK_DEV_IDEDISK=y
CONFIG_IDEDISK_MULTI_MODE=y
# CONFIG_IDEDISK_STROKE is not set
# CONFIG_BLK_DEV_IDECS is not set
CONFIG_BLK_DEV_IDECD=y
# CONFIG_BLK_DEV_IDETAPE is not set
# CONFIG_BLK_DEV_IDEFLOPPY is not set
CONFIG_BLK_DEV_IDESCSI=m
# CONFIG_IDE_TASK_IOCTL is not set
CONFIG_BLK_DEV_CMD640=y
# CONFIG_BLK_DEV_CMD640_ENHANCED is not set
# CONFIG_BLK_DEV_ISAPNP is not set
CONFIG_BLK_DEV_IDEPCI=y
# CONFIG_BLK_DEV_GENERIC is not set
CONFIG_IDEPCI_SHARE_IRQ=y
CONFIG_BLK_DEV_IDEDMA_PCI=y
# CONFIG_BLK_DEV_OFFBOARD is not set
# CONFIG_BLK_DEV_IDEDMA_FORCED is not set
CONFIG_IDEDMA_PCI_AUTO=y
# CONFIG_IDEDMA_ONLYDISK is not set
CONFIG_BLK_DEV_IDEDMA=y
CONFIG_BLK_DEV_VIA82CXXX=y
.......
# CONFIG_IDE_CHIPSETS is not set
CONFIG_IDEDMA_AUTO=y
# CONFIG_IDEDMA_IVB is not set
# CONFIG_DMA_NONPCI is not set
CONFIG_BLK_DEV_IDE_MODES=y
Looking over this config, it looks like I should try and compile a new kernel and clean up the IDE section abit (lose CMD640, etc)
 
Old 11-02-2003, 08:38 PM   #5
larrystorch
LQ Newbie
 
Registered: Mar 2003
Location: Reading, PA
Distribution: Slackware
Posts: 27

Original Poster
Rep: Reputation: 15
This just popped up in my log:
Code:
Nov  2 18:31:47 storchnet kernel: journal_bmap: journal block not found at offset 3084 on ide1(22,2)
Nov  2 18:31:47 storchnet kernel: Aborting journal on device ide1(22,2).
Nov  2 18:31:50 storchnet kernel: ext3_abort called.
Nov  2 18:31:50 storchnet kernel: EXT3-fs abort (device ide1(22,2)): ext3_journal_start: Detected aborted journal
Nov  2 18:31:50 storchnet kernel: Remounting filesystem read-only
Nov  2 18:32:35 storchnet kernel: EXT3-fs error (device ide1(22,2)) in start_transaction: Journal has aborted
So it seems that my ext3 journal is borked. Any idea on how to fix it?.....off to google it
 
Old 11-02-2003, 11:42 PM   #6
larrystorch
LQ Newbie
 
Registered: Mar 2003
Location: Reading, PA
Distribution: Slackware
Posts: 27

Original Poster
Rep: Reputation: 15
Ok, a kernel recompile (2.4.22) did nothing as did a fsck for bad blocks.

Is this ext3 related, hard drive or possibly the IDE on the motherboard

TIA guys and gals
 
Old 11-03-2003, 08:19 PM   #7
larrystorch
LQ Newbie
 
Registered: Mar 2003
Location: Reading, PA
Distribution: Slackware
Posts: 27

Original Poster
Rep: Reputation: 15
Ok, I think I found a few things that might have been causing the errors, but as far as which exact one, I'll never know.

1. ext3: I'm mounting the partitions as ext2 to avoid the corrupt journal. Trying to figure out how to fix it.
2. I have $CFLAGS and $CXXFLAGS sourced at login. They might have borked up the kernel.
3. ACPI: I did have it working with 2.4.19 and had to dump it when moving to 2.4.21. I re-enabled it for 2.4.22, and it seemed to make my system flaky.

Lessons:
1. Switching to a different journaling filesystem at next hardware upgrade. Ext3 worked good for a few years, but I can't afford to lose my /home partition, too much valuable info. (yes I back up, but one day can really screw me).
2. Compile flags will be exported only when I actually compile a program, not at login.
3 ACPI is nice, but not too stable at this point, hopefully 2.6 will make it more solid.

Thanks for the help guys. Off to search the forums about journaling FS opinions.

Last edited by larrystorch; 11-03-2003 at 08:20 PM.
 
Old 03-09-2004, 09:45 PM   #8
taran
Member
 
Registered: Jul 2003
Distribution: Red Hat
Posts: 35

Rep: Reputation: 15
larrystorch, did you ever figure out how to fix the problem? I think I am having the same issue but I don't know how to fix it.
 
Old 03-10-2004, 11:47 AM   #9
larrystorch
LQ Newbie
 
Registered: Mar 2003
Location: Reading, PA
Distribution: Slackware
Posts: 27

Original Poster
Rep: Reputation: 15
In the end, the hard drive was on it's last leg. It was a Maxtor that was only 2 years old. I bought a new Western Digital, and was able to copy over my important data before taking a sldgehammer to the Maxtor.

For some reason, I have had 3 Maxtor drives of different sizes and purchased at different times all die prematurely. On the other hand, some of my friends have never had a problem with Maxtor.

If you have another hard drive around, hook it up to the same IDE channel to see if it's kernel or IDE channel giving you problems. I went thru a bunch of kernel, IDE channel and drive combos till I was certain it was hard drive.

Good luck
 
Old 03-10-2004, 12:31 PM   #10
taran
Member
 
Registered: Jul 2003
Distribution: Red Hat
Posts: 35

Rep: Reputation: 15
Hmm...my hdd is only about 6mo old. Arg...I'll see if I can find another HDD somewhere and test it out.
 
Old 03-22-2004, 08:57 AM   #11
trade14u
LQ Newbie
 
Registered: Mar 2004
Posts: 14

Rep: Reputation: 0
I'm having the same problem - except my drive is a week old.
 
Old 03-23-2004, 03:11 PM   #12
taran
Member
 
Registered: Jul 2003
Distribution: Red Hat
Posts: 35

Rep: Reputation: 15
I ended up re-installing RH and haven't had the problem reoccur since (its been about a week and a half). It was a pain but i was tired of pulling my hair out trying to fix it.
 
  


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
bad shutdown + tons of errors = bad hdd? Red Squirrel Linux - Hardware 3 11-09-2004 04:48 PM
dvdrecord + kernel 2.6 (suse 9.1) - ide-scsi = bad eccles23 Linux - Software 2 11-03-2004 04:50 PM
Bad installed kernel problem! THX1138 Linux - Newbie 7 11-02-2003 02:57 PM
bad dmesg output when using ide-scsi boot parameter for IDE CD/DVD-ROM Locura Slackware 7 09-29-2003 02:36 AM
i hate kernel ide errors bstempi Linux - General 2 04-16-2003 10:11 PM


All times are GMT -5. The time now is 11:43 AM.

Main Menu
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