ext2_lookup() and i_count
Alexander Larsson
alex at cendio.se
Thu May 11 10:16:52 EDT 2000
On Thu, 11 May 2000, David Woodhouse wrote:
>
> scote1 at Matrox.COM said:
> > Btw, is there any document indicating how to use the mtdram.o module
> > ? Now I can insert every module without a glitch, including jffs, and
> > I'm ready for testing!
>
> You load it and it behaves just like a normal flash device. You presumably
> stick an empty JFFS filesystem on it with something like
> 'jffs_format /dev/mtd0', then 'mount /dev/mtdblock0 /mnt/jffs -tjffs'
Almost.
First create your to be filesystem in a directory (call it e.g. img_dir),
then run "mkfs.jffs img_dir > fs.jffs", this creates an image fs.jffs that
you can copy to your flash (in the case of an mtdram flash, just do "cat
fs.jffs > /dev/mtd0". Then mount the flash "mount -t jffs /dev/mtdblock0
/mnt/jffs".
Then just go to /mnt/jffs and play around with the filesystem. Not
everything works well right now, rename isn't implemented, and unlink
seems to have some problems.
Also note that the default size of the mtdram device is 2 meg, if you want
a different size you have to change a define in the mtdram.c code.
/ Alex
To unsubscribe, send "unsubscribe mtd" to majordomo at infradead.org
More information about the linux-mtd
mailing list