Skip to contentSkip to conversation

more on e2fsck

DISCUSSION Steve Rossi 3 participants 3 messages May 17, 2000

lore
Share & tools
lore
#0 lore raw

when I run mke2fs /dev/sda2 it creates a file system just fine. Then I fun e2fsck on the newly created filesystem and it reports that its clean.
next I mount the new filesystem and the kernel reports the following:

EXT2-fs error (device sd(8,2)): ext2_check_blocks_bitmap: Wrong free blocks count for group 18, stored = 32260 counted = 32256 EXT2-fs error (device sd(8,2)): ext2_check_blocks_bitmap: Wrong free blocks count in super block, stored = 2198781 counted = 2198777

then I un-mount it and run e2fsck again and I get the message that I reported
before - filesystem has errors and e2fsck seg faults

is there possibly some disparity between the kernel's ext2 fs code and what
mke2fs and e2fsck are doing? if anyone has any further thoughts on this I would appreciate it.

Steve

--
-------------------------------------------------------
Steven K. Rossi [email protected]
Staff Engineer
Multimedia Communications Research Laboratory
Motorola Labs
-------------------------------------------------------

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

#1 lore raw

Hello, Steve!

Quoted 4 lines

is there possibly some disparity between the kernel's ext2 fs code and what
mke2fs and e2fsck are doing? if anyone has any further thoughts on this I would appreciate it.

"ulimit -c unlimited" will enable coredumps. Note that "ulimit" is a bash builtin. Then run on a PowerPC (or use a cross-debugger)
gdb e2fsck -core core
(gdb) where

You will need unstripped e2fsck. Try to figure out what's going on. Send a bug report if you feel it's needed.

Regards,
Pavel Roskin

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

#2 lore raw
In reply to Steve Rossi
Quoted 1 line · Steve Rossi

when I run mke2fs /dev/sda2 it creates a file system just fine.

Oh, I'll just make a wild guess here.....SCSI disks on 8xx.....:-). How many pieces of untested hardware (and software) are in this path?

Have you written a simple program to make sure you can read/write sectors on the disk without errors? I, like the others, have e2fsck working on PCMCIA "disk" devices. The sources compile just fine. I suppose someone could compile and test something for you to verify it works. I don't have anything handy at the moment, but I will add it to my list.

	-- Dan

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/