Mouting JFFS2 parition

Josh Boyer jdub at us.ibm.com
Thu Aug 19 14:08:34 EDT 2004


On Thu, 2004-08-19 at 12:35, Raghav K wrote:
> Greetings all,
> 
> Hi, I'm a novice at using flash chips and MTD, so please bear with me if this is a trivial 
> question.
> 
> I am able to mount my completely erased parition, "without" copying an image on to it.
> The memory dump of the partition after umounting the same, shows some data being
> written to this parition.  I have a couple of questions in this regard.
> 
> Is it a necessary to copy an JFFS2 image to an MTD parition before using the same? 
> Is this an acceptable way of using the parition? 

As long as the partition is "empty" (i.e. freshly erased) on the _first_
mount, you do not need to copy a JFFS2 image to it.  Subsequent mounts
on that partition will also work because JFFS2 will have written valid
data to it during it's mount lifetime (eraseblock headers, etc).

Seems to be perfectly valid to use the partition this way, if you are
going to just use it as storage.  Cases like using JFFS2 as a root
filesystem would require writing an image to it before hand (obviously).

And that was a pretty good question for a novice ;).

josh





More information about the linux-mtd mailing list