[SMAUG] Bad HD?

Raphaël Dorado rdorado@pacbell.net
Fri Aug 17 15:45:02 2001


Hello David,

I wonder if you should not send this material to the kernel
mailing list, it seems appropriate.

If I get it right, ide0 usually handles (hda,hdb) and ide1
handles (hdc,hdd) which seems correct (hdc2->ide1).

What I would try to do is to identify which directory
corresponds to entry #113706, duplicate it's content
into another directory and then exchange the names of
the original and new directories. I would not delete
the old directory since it "uses" the possible bad
sector(s) on the HD.

Still, the best solution is probably to backup the hard
drive, make a low level format (with errors detections),
and restore the data onto the repaired disk.

Good luck,

--Raf


David Correa wrote:
> 
> Hello (again),
> 
> (first) I meant to say "bad sector on the HD" (or something like that) i
> don't think the HD is 100% bad.
> 
> (then) I notice that the syslog mentions "device ide1" but Linux is on /dev/hdc2:
> 
> Aug 17 04:02:04 onix kernel: EXT2-fs error (device ide1(22,2)): ext2_readdir: bad entry in directory #113706: rec_len %% 4 != 0 -
> offset=140, inode=113711, rec_len=25, name_len=13
> Aug 17 04:02:04 onix kernel: EXT2-fs error (device ide1(22,2)): ext2_readdir: bad entry in directory #470537: rec_len %% 4 != 0 -
> 
> the "kernel BUG at exit.c:465!" is interesting, since this happens
> with 2.4.2-2 (rh), 2.4.7 and 2.4.8 (custom .config).
> i fist noticed the problem after i changed to 2.4.8, so i went back to test with the other 2 kernels and the problem
> still happens. The total effect is the computer freezes with no response form keyboard or pings.
> 
> Aug 17 04:02:26 onix kernel: Code: 89 08 eb 2c 90 8d 74 26 00 8b 46 08 8b 51 04 8b 58 04 8b 01
> Aug 17 04:02:28 onix kernel: kernel BUG at exit.c:465!
> Aug 17 04:02:28 onix kernel: invalid operand: 0000
> Aug 17 04:02:28 onix kernel: CPU:    0
> Aug 17 04:02:28 onix kernel: EIP:    0010:[do_exit+541/560]
> Aug 17 04:02:28 onix kernel: EIP:    0010:[<c0118a3d>]
> Aug 17 04:02:28 onix kernel: EFLAGS: 00010282
> Aug 17 04:02:28 onix kernel: eax: 0000001a   ebx: 00000000   ecx: fffffffe   edx: 00000000
> Aug 17 04:02:28 onix kernel: esi: dffda000   edi: 0000000b   ebp: 86f02020   esp: dffdbe24
> Aug 17 04:02:28 onix kernel: ds: 0018   es: 0018   ss: 0018
> Aug 17 04:02:28 onix kernel: Process kswapd (pid: 4, stackpage=dffdb000)
> Aug 17 04:02:28 onix kernel: Stack: c020abbb c020ad12 000001d1 86f02020 c010952a c02031b7 c02032ed c012a82a
> Aug 17 04:02:28 onix kernel:        c0209180 00000000 c011323e 0000000b dffdbf20 00000002 c02090fd 86f02020
> Aug 17 09:09:30 onix syslogd 1.4-0: restart.
> 
> Thanks in advance for any feed back.
> 
> David Correa RHCE CCNA
> http://www.linux-tech.com
> 
> _______________________________________________
> SMAUG mailing list
> SMAUG@lists.svlug.org
> http://lists.svlug.org/lists/listinfo/smaug