LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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-13-2002, 01:53 AM   #1
Postalbunny
LQ Newbie
 
Registered: Nov 2002
Location: Houston/TX
Distribution: Rh
Posts: 13

Rep: Reputation: 0
HDD Problem


I just got a new maxtor 30gb HD to slap into an old celeron computer and use as a router. I installed and noticed this msg in the logs today.

Nov 13 01:46:13 bunnymafia kernel: hda: dma_intr: status=0x51 { DriveReady SeekComplete Error }
Nov 13 01:46:13 bunnymafia kernel: hda: dma_intr: error=0x40 { UncorrectableError }, LBAsect=17510397, sector=17301552
Nov 13 01:46:13 bunnymafia kernel: end_request: I/O error, dev 03:02 (hda), sector 17301552
Nov 13 01:46:13 bunnymafia kernel: EXT3-fs error (device ide0(3,2)): ext3_get_inode_loc: unable to read inode block - inode=1077162, block=2162694
Nov 13 01:46:18 bunnymafia kernel: hda: dma_intr: status=0x51 { DriveReady SeekComplete Error }
Nov 13 01:46:18 bunnymafia kernel: hda: dma_intr: error=0x40 { UncorrectableError }, LBAsect=4665341, sector=4456496
Nov 13 01:46:18 bunnymafia kernel: end_request: I/O error, dev 03:02 (hda), sector 4456496
Nov 13 01:46:18 bunnymafia kernel: EXT3-fs error (device ide0(3,2)): ext3_get_inode_loc: unable to read inode block - inode=277488, block=557062
Nov 13 01:46:22 bunnymafia sshd(pam_unix)[1634]: session opened for user root by (uid=0)
Nov 13 01:46:24 bunnymafia kernel: hda: dma_intr: status=0x51 { DriveReady SeekComplete Error }
Nov 13 01:46:24 bunnymafia kernel: hda: dma_intr: error=0x40 { UncorrectableError }, LBAsect=13316085, sector=13107240
Nov 13 01:46:24 bunnymafia kernel: end_request: I/O error, dev 03:02 (hda), sector 13107240
Nov 13 01:46:24 bunnymafia kernel: EXT3-fs error (device ide0(3,2)): ext3_get_inode_loc: unable to read inode block - inode=816028, block=1638405

The HD is auto-detected, so is it decting the wrong LBA or is the HD bad... or is linux freaking out over a misconfiguration?
 
Old 11-13-2002, 01:56 AM   #2
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 56
Check the IDE cable, I used to get errors like this and it was a bad cable.
 
Old 11-14-2002, 01:41 AM   #3
Postalbunny
LQ Newbie
 
Registered: Nov 2002
Location: Houston/TX
Distribution: Rh
Posts: 13

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by Aussie
Check the IDE cable, I used to get errors like this and it was a bad cable.
Thanks, i'll give that a shot. It is a really old IDE cable, i'm taking the HDD back as well just because I bought it 2 days ago and they won't have any problems taking it back and swapping it out. I've sense ran a fsck -v -c on it and it comes up with more bad blocks every day. It's up to 817 bad blocks now, and comes up with short reads when I try to access certain files. I've tried other cables that are udma that are even older and they give same errors in same spots, and seem to work fine with other drives from my other computer. Hopefully it's not the the HDD controler on the motherboard
 
Old 11-14-2002, 04:18 AM   #4
dnar
Member
 
Registered: Feb 2002
Location: Perth, Australia
Distribution: FC5 ::: Coyote ::: SCO Unixware :::
Posts: 201

Rep: Reputation: 30
I have the same problem, Maxtor 40GB on a Gigabyte GA-7VAXP (KT400 & 8235 chipset). If I turn off DMA, the problem goes away...

Still looking around, it appears to be a problem with VIA & the kernel...
 
Old 11-14-2002, 05:57 AM   #5
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 56
What kernel version are you running dnar?
 
Old 11-14-2002, 06:08 AM   #6
dnar
Member
 
Registered: Feb 2002
Location: Perth, Australia
Distribution: FC5 ::: Coyote ::: SCO Unixware :::
Posts: 201

Rep: Reputation: 30
2.4.19 plain vanilla.
 
Old 11-14-2002, 06:50 AM   #7
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 56
Ok, from a quick search of the LKML it seems that support for the kt400 is in the 2.5.xx kernel and a patch for 2.4.xx is in the works. You best bet is to upgrade as soon as support arives, probably in 2.4.21pre*.
 
Old 11-14-2002, 07:59 AM   #8
dnar
Member
 
Registered: Feb 2002
Location: Perth, Australia
Distribution: FC5 ::: Coyote ::: SCO Unixware :::
Posts: 201

Rep: Reputation: 30
Snap, found that just a while ago too. I have turned off DMA on this drive, but man I miss it...

Thanks for the help.

Brisvegas LOL...

BTW, I did a little touring of Qld, mostly Fortitude Valley in the mid-80's with a rock band...
 
Old 11-14-2002, 08:13 AM   #9
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 56
Yeah, I've been waiting for support for this chipset before I upgrade my 1g tbird and kt7a, built it in jan 00 and it was a killer then....bit old now, but it still works well.
Mid 80's....I was living down near Byron Bay untill 87, then at New Farm for a few years.
 
Old 11-14-2002, 08:33 AM   #10
dnar
Member
 
Registered: Feb 2002
Location: Perth, Australia
Distribution: FC5 ::: Coyote ::: SCO Unixware :::
Posts: 201

Rep: Reputation: 30
I reluctantly upgraded a 1000 Tbird (running 1450) and EPoX 8KTA3/PC150 rig last week... I was burned with KT133a problems and just expected the KT400 to be an improvement. In reality, it look slike the VT8235 SouthBridge is the issue here. I have looked at ide-via.c and notice "future" support for the 8235 chip in the chipset table structure, but cant find the where the conditional test would be defined (so I asume its not). I dont feel like "breaking" my filesystems one more time this week, so I will leave DMA off and wait patiently for a new kernel...

Byron, very cool...
 
Old 11-14-2002, 01:28 PM   #11
Postalbunny
LQ Newbie
 
Registered: Nov 2002
Location: Houston/TX
Distribution: Rh
Posts: 13

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by dnar
I have the same problem, Maxtor 40GB on a Gigabyte GA-7VAXP (KT400 & 8235 chipset). If I turn off DMA, the problem goes away...

Still looking around, it appears to be a problem with VIA & the kernel...
I tried turing off DMA but it was after fsck already marked 800 bad blocks on the disk... so the data kept giving "short reads". I went ahead and toook the whole thing back because it did it when I slapped it into my other machine (diff cbls and chipset). It's not a fast computer or antyhing, old sis chipset with ulta66 and a celeron 500 CPU /w 128mb pc100 sdram (doest go 133... just 100). I think it was the HDD, i got a 60gb 7200rpm maxtor because the 30gb we're not on sale ($54 @ frys... 60gb was $89).

One more thing about the prob, when i ran fsck -c -y it would go through but ask if it wanted ot "ignore" a short read or error and fix some of them that were bad blocks etc... then reboot and find "inconsistancies" and force fsck again and reboot etc... was that just because the filesystem got corrupted or because the HDD was bad and kept giving different responses?
 
Old 11-14-2002, 01:33 PM   #12
Postalbunny
LQ Newbie
 
Registered: Nov 2002
Location: Houston/TX
Distribution: Rh
Posts: 13

Original Poster
Rep: Reputation: 0
I got anyone quick question while I got someone on the line. When I try hdparm -t /dev/hda or -T it never seems to get 66mb/s which I thought ulta66 would do correct? Even playing with the params I can only get up to 5Megs a second, and it's about 4-5 with default settings... am I missing something or is this a readout different from something? I did buy a new ultraDMA cbl just in case that was it... seems like 5mb instead of 66 (and the drive is Ultra133) is a LOT slower.
 
Old 11-14-2002, 02:06 PM   #13
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 56
Do 'hdparm -i /dev/hda" to see what the drive is set to, eg;
Code:
bern@grendel bern$ su -c "hdparm -i /dev/hda"
Password:

/dev/hda:

 Model=QUANTUM FIREBALLlct08 08, FwRev=A05.0X00, SerialNo=692936152914
 Config={ HardSect NotMFM HdSw>15uSec Fixed DTR>10Mbs }
 RawCHS=16383/16/63, TrkSize=32256, SectSize=21298, ECCbytes=4
 BuffType=DualPortCache, BuffSize=418kB, MaxMultSect=16, MultSect=1
 CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=16514064
 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
 AdvancedPM=no WriteCache=enabled
 Drive conforms to: ATA/ATAPI-4 T13 1153D revision 15:  1 2 3 4
 
Old 11-14-2002, 05:18 PM   #14
dnar
Member
 
Registered: Feb 2002
Location: Perth, Australia
Distribution: FC5 ::: Coyote ::: SCO Unixware :::
Posts: 201

Rep: Reputation: 30
If you get "short reads" while doing an "e2fsck" - I can guarrantee that the errors reported will be bogus and the fixups will not be right. Instead, abort out and do "e2fsck -c" to find and mark bad blocks.
 
Old 11-15-2002, 02:52 AM   #15
dnar
Member
 
Registered: Feb 2002
Location: Perth, Australia
Distribution: FC5 ::: Coyote ::: SCO Unixware :::
Posts: 201

Rep: Reputation: 30
I hand patched the via82cxxx.c from version 3.34 (2.4.19 kernel) to 3.35 - this adds support for the VIA VT8235 Southbridge. This appears to have solved the problem, but I will not be 100% confident until I it's run for a few days. I am watching the kernel logs like a hawk.

BTW, the RedHat 8.0 kernel (2.4.18-14) appears to be patched already. The reason I updated to 2.4.19 was that I run Win4Lin and require a patched kernel, and patches for RedHat 8 kernel where not initially available, yet patches for the plain 2.4.19 where. So, if your running the RedHat 8 kernel, you should be ok.
 
  


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
Trying to add a third hard drive (hdd) and get Unable to open /dev/hdd MikeyCarter Linux - Hardware 4 12-26-2005 10:27 PM
Dual HDD Interface Problem, Linux on SATA, NTFS Part on IDE HDD LILO Not Loading Blade44 Linux - Hardware 2 02-01-2005 06:56 PM
How to make mirror image of linux partion to one1 HDD TO 2 HDD raj_1 Linux - General 2 11-04-2004 01:45 AM
HDD problem, scancode problem and grub EJ_INSIDE Debian 2 07-15-2004 09:36 AM
How to format & mount 2nd hdd after FedCor1 has been installed on 1st hdd? clay394 Fedora 1 05-18-2004 01:50 PM


All times are GMT -5. The time now is 07:17 PM.

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