Creating an Empty JFFS2 File System

Josh Boyer jwboyer at gmail.com
Fri Mar 7 13:37:01 EST 2008


On Fri, 07 Mar 2008 09:55:13 -0800
Grant Erickson <gerickson at nuovations.com> wrote:

> Is creating an empty JFFS2 file system supported or is this a deprecated
> capability? The following steps seem to be incorrect or failing:
> 
>     # flash_eraseall -q -j /dev/mtd9
>     # mount -t jffs2 /dev/mtdblock9 /mnt
>     Cowardly refusing to erase blocks on filesystem with no valid JFFS2
>     nodes
>     empty_blocks 0, bad_blocks 0, c->nr_blocks 3840
> 
> Or, is the only way to accomplish this to create a NULL JFFS2 image with
> mkfs.jffs2 and then nandwrite it?

Just erase it completely without the -j option and mount.  JFFS2 will go
through and erase them all again and add the cleanmarkers itself.

josh



More information about the linux-mtd mailing list