JFFS2 Corruption.

David Woodhouse dwmw2 at infradead.org
Tue Mar 16 11:14:48 EST 2004


On Tue, 2004-03-09 at 15:33 +0000, Simon Haynes wrote:
> -bash-2.05b# mount -t jffs2 /dev/ram1 /smc
> Cowardly refusing to erase blocks on filesystem with no valid JFFS2 nodes
> empty_blocks 2047, bad_blocks 0, c->nr_blocks 2048
> mount: wrong fs type, bad option, bad superblock on /dev/ram1,
>        or too many mounted file systems

This I believe we put down to user error?

> After 5 reboots the new SMC gave this magic bitmask failure.
> 
> jffs2: Erase block size too small (16KiB). Using virtual blocks size (32KiB) 
> instead
> ofs 0x000a8400 has already been seen. Skipping, jeb 0xa8000, sector size 
> 0x8000
> saved ofs 0x000a8000, previous 0xa7fff, buf_len 0x7c00, scanned 0x0
> jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000a8408: 0x273c 
> instead, 0x0

That was a bug in the scanning code. Should be fixed in v1.58 of scan.c
in CVS. Please could you try that and let me know if it works?

-- 
dwmw2




More information about the linux-mtd mailing list