MTD copy on JFFS2

Sriram Neelakandan Iyer sriramneelakandan at yahoo.com
Tue Oct 1 09:12:21 EDT 2002


hi list,
i have 2 jffs2 partitions(over mtd) used for storing
config files.
I need to copy all the files from one partition to
another, and the destination mtd partition is larger
than the source mtd partition.(i cannot mount the
second partition as jffs2 before the data is copied)

As of now i run mkfs.jffs2 over the source jffs2
directory and copy to ramfs and then erase the
destination partition and i do a mtd-write over the
destination partition.

But mkfs.jffs2 needs libz and both of them occupy
about 87K of space.

So i plan to do a plain mtd-copy ,i.e 
1. first unmount source jffs2,
2. read over the source mtd-char-device and 
3. dump it back to the second mtd-partition. 

Will jffs2 be able to mount the second partition
without trouble?  (or) must i do a mkfs.jffs2 always
to have a jffs2 mountable partition.

regards
sriram.


__________________________________________________
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com




More information about the linux-mtd mailing list