EXT2-fs error and geometry walk ... ???

From: Andre Hedrick (andre@linux-ide.org)
Date: Mon Sep 18 2000 - 06:50:55 EST


Please not that all of this is the same boot.

Disregard the weird device major:minor

Sep 18 04:22:20 cascade kernel: EXT2-fs error (device ide2(33,1)):
ext2_readdir: bad entry in directory #2: rec_len % 4 != 0 - offset=0, inode=2, rec_len=14, name_len=1
Sep 18 04:22:20 cascade kernel: EXT2-fs error (device ide2(33,17)):
ext2_readdir: bad entry in directory #2: rec_len % 4 != 0 - offset=0, inode=2, rec_len=14, name_len=1
Sep 18 04:22:20 cascade kernel: EXT2-fs error (device ide2(33,33)):
ext2_readdir: bad entry in directory #2: rec_len % 4 != 0 - offset=0, inode=2, rec_len=14, name_len=1
Sep 18 04:22:20 cascade kernel: EXT2-fs error (device ide2(33,49)):
ext2_readdir: bad entry in directory #2: rec_len % 4 != 0 - offset=0, inode=2, rec_len=14, name_len=1

This did not happen in the past.

cat /proc/partitions
<snip>
  33 0 15087744 ide/host2/bus0/target0/lun0/disc
  33 1 15085003 ide/host2/bus0/target0/lun0/part1
  33 16 7543872 ide/host2/bus0/target1/lun0/disc
  33 17 7542486 ide/host2/bus0/target1/lun0/part1
  33 32 7543872 ide/host2/bus0/target2/lun0/disc
  33 33 7542486 ide/host2/bus0/target2/lun0/part1
  33 48 15087744 ide/host2/bus0/target3/lun0/disc
  33 49 15085003 ide/host2/bus0/target3/lun0/part1

cat /proc/ide/hde*/geometry
physical 29936/16/63
logical 1878/255/63
physical 14968/16/63
logical 939/255/63
physical 14968/16/63
logical 939/255/63
physical 29936/16/63
logical 1878/255/63

I need to know what is going on in ext2 that now makes this error.

What is causing the geometry walk?

Disk /dev/hdea: 255 heads, 63 sectors, 1878 cylinders
Units = cylinders of 16065 * 512 bytes

    Device Boot Start End Blocks Id System
/dev/hdea1 9 1895 15150539+ 83 Linux

Disk /dev/hdeb: 255 heads, 63 sectors, 939 cylinders
Units = cylinders of 16065 * 512 bytes

    Device Boot Start End Blocks Id System
/dev/hdeb1 9 948 7542486 83 Linux
Partition 1 has different physical/logical beginnings (non-Linux?):
     phys=(0, 1, 3) logical=(8, 41, 33)
Partition 1 has different physical/logical endings:
     phys=(938, 254, 63) logical=(947, 40, 32)

Disk /dev/hdec: 255 heads, 63 sectors, 939 cylinders
Units = cylinders of 16065 * 512 bytes

    Device Boot Start End Blocks Id System
/dev/hdec1 9 948 7542486 83 Linux
Partition 1 has different physical/logical beginnings (non-Linux?):
     phys=(0, 1, 3) logical=(8, 41, 33)
Partition 1 has different physical/logical endings:
     phys=(938, 254, 63) logical=(947, 40, 32)

Disk /dev/hded: 255 heads, 63 sectors, 1878 cylinders
Units = cylinders of 16065 * 512 bytes

    Device Boot Start End Blocks Id System
/dev/hded1 9 1895 15150539+ 83 Linux

Sep 18 04:36:21 cascade kernel: /dev/ide/host2/bus0/target3/lun0: p1 p2 p3 p4
Sep 18 04:37:04 cascade kernel: /dev/ide/host2/bus0/target2/lun0: p1 p2 p3 p4
Sep 18 04:37:06 cascade kernel: /dev/ide/host2/bus0/target2/lun0: p1 p2 p3 p4
Sep 18 04:37:22 cascade kernel: /dev/ide/host2/bus0/target1/lun0: p1 p2 p3 p4
Sep 18 04:41:19 cascade kernel: /dev/ide/host2/bus0/target0/lun0: p1 p2 p3 p4

Expert command (m for help): p

Disk /dev/hdea: 255 heads, 63 sectors, 1878 cylinders

Nr AF Hd Sec Cyl Hd Sec Cyl Start Size ID
 1 00 0 0 0 0 0 0 0 0 00
 2 00 0 2 0 0 2 0 131072 131072 00
 3 00 0 2 0 0 2 0 131072 131072 00
 4 00 0 2 0 0 2 0 131072 131072 00

out of expert mode and delete all 4 bogus partitions.
back in expert mode

Expert command (m for help): p

Disk /dev/hdea: 255 heads, 63 sectors, 1878 cylinders

Nr AF Hd Sec Cyl Hd Sec Cyl Start Size ID
 1 00 0 0 0 0 0 0 0 0 00
 2 00 0 0 0 0 0 0 0 0 00
 3 00 0 0 0 0 0 0 0 0 00
 4 00 0 0 0 0 0 0 0 0 00

cat /proc/partitions
  33 0 15087744 ide/host2/bus0/target0/lun0/disc
  33 1 65536 ide/host2/bus0/target0/lun0/part1
  33 2 65536 ide/host2/bus0/target0/lun0/part2
  33 3 65536 ide/host2/bus0/target0/lun0/part3
  33 4 65536 ide/host2/bus0/target0/lun0/part4
  33 16 7543872 ide/host2/bus0/target1/lun0/disc
  33 17 65536 ide/host2/bus0/target1/lun0/part1
  33 18 65536 ide/host2/bus0/target1/lun0/part2
  33 19 65536 ide/host2/bus0/target1/lun0/part3
  33 20 65536 ide/host2/bus0/target1/lun0/part4
  33 32 7543872 ide/host2/bus0/target2/lun0/disc
  33 33 65536 ide/host2/bus0/target2/lun0/part1
  33 34 65536 ide/host2/bus0/target2/lun0/part2
  33 35 65536 ide/host2/bus0/target2/lun0/part3
  33 36 65536 ide/host2/bus0/target2/lun0/part4
  33 48 15087744 ide/host2/bus0/target3/lun0/disc
  33 49 65536 ide/host2/bus0/target3/lun0/part1
  33 50 65536 ide/host2/bus0/target3/lun0/part2
  33 51 65536 ide/host2/bus0/target3/lun0/part3
  33 52 65536 ide/host2/bus0/target3/lun0/part4

This is not a funky mirror there are truly four drives on this channel.

Last funky message

Sep 18 04:33:28 cascade kernel: EXT2-fs: unsupported inode size: 130

Andre Hedrick
The Linux ATA/IDE guy

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Sep 23 2000 - 21:00:17 EST