Bad Block Handling in jffs2

Thomas Gleixner tglx at
Thu Jan 30 14:16:00 EST 2003

On Thursday 30 January 2003 17:17, Kschoo70C at wrote:
>    In, it is stated that
>    "if you have a bad block on your chip, just skip this block and copy
>    the data to the next block. JFFS2 is able to handle this gap.".
That's correct.

>    So, I write a program to skip the bad block, and copy the data to the
> next block. The missing file seems to appear on the file system now, the
> size looks correct. But when I diff the binary of the file to that of
> original, they are different and the binary failed to execute.
Have you built your fs-image with the correct block size ?

>    I don't know much about jffs2 bad block handling, the only information I
> have is as mentioned above. Am I missing any other information ?

>    Is anyone manage to transfer an image to the nand device that has bad
> blocks without losing any files ?
Yes, I do

linutronix - competence in embedded & realtime linux
mail: tglx at

More information about the linux-mtd mailing list