trying to create and mount a JFFS2 filesystem

From: Robert P. J. Day <rpjday_at_mindspring.com>
Date: Tue, 23 Dec 2003 15:48:32 -0500 (GMT-05:00)

  just for experimental purposes, i'm trying to create (using mkfs.jffs2)
and mount a JFFS2 filesystem on my x86 box. i'm following (in part)
the recipe at http://www.handhelds.org/z/wiki/LoopBack for the mount
part, but every attempt to mount gives me:

   mount: wrong fs type, bad option, bad superblock on /dev/mtdblock0,
       or too many mounted file systems

here's what i've done so far.

  first, i downloaded the MTD tools from www.infradead.org CVS, and
made the "util" directory, which gave me (among other things) mkfs.jffs2
and jffs2dump on my laptop.

  next, i took an arbitrary directory, and ran mkfs.jffs2 to create a JFFS2
image:

  $ mkfs.jffs2 -r . -p -o out.jffs2

and to verify that the image file looked good, i ran "dumpjffs2 -c" against
it. what i got looked like reasonable output, so I'm assuming i have a
healthy jffs2 image. (because of the padding, the final image was
262144 bytes long -- exactly 256K -- with an erase block size default
value of 64KiB according to the command help.)

  now, assuming that the image file is a valid jffs2 image, i just followed
the remaining instructions at the URL above, loading the appropriate
modules. everything worked fine up to the actual mount command
when i got the error message above.

  thoughts? are there other commands i can insert in the middle of all
this for more diagnostics?

rday
Received on Tue Dec 23 2003 - 20:48:34 EST

This archive was generated by hypermail 2.2.0 : Mon Jul 25 2005 - 17:18:08 EDT