Re: How to mount a jffs2 image
On Fri, 2005-10-28 at 10:11 +0800, ext rosetta wrote:
> Hi all
> I have make a jffs2 image by mkfs.jffs2.
> I want to mount this image file, but the mount command does not
> support the jffs2 file system.
I usually mount jffs2 images using bldmtd:
if [ ! -b /dev/mtdblock0 ] ; then
mknod /dev/mtdblock0 b 31 0 || exit 1
JFFSIMG=$1 # jffs image
LOOP="/dev/loop1" # loop device
MP="/mnt/jfss" # mount po
losetup $LOOP $JFFSIMG || exit 1
modprobe blkmtd device=$LOOP || exit 1
mount -t jffs2 /dev/mtdblock0 $MP || exit 1
It works for me on Debian testing just fine.