root jffs2

Nicolas Pitre nico at cam.org
Wed Jun 13 11:21:49 EDT 2001


On Wed, 13 Jun 2001, Vipin Malik wrote:

> I read the messages where you solved this problem, but let me add a side
> note just for future reference:
>
> JFFS can *NOT* be mounted on a device that has either 1. Not been erased OR
> 2. Not been initialized with
> a JFFS image (using the external tool).
>
> That is why it finds all those "dirty" sectors and no free space.
>
> On the other hand, JFFS2 *can* be mounted on a device that has not been
> initialized. It will detect the
> "dirty" sectors and just format them- resulting in a blank fs the first
> time you mount it.
>
> This also means that if you accidentally mount a JFFS2 fs on a device that
> has an existing JFFS fs on it
> it will format the entire device- without warning!

This behavior was modified recently.  If JFFS2 finds dirty blocks without a
single valid JFFS2 node on the flash it won't erase it and refuse to mount.


Nicolas





More information about the linux-mtd mailing list