* MTD copy on JFFS2
@ 2002-10-01 13:12 Sriram Neelakandan Iyer
2002-10-02 12:37 ` Kenneth Johansson
2002-10-03 1:19 ` Jörn Engel
0 siblings, 2 replies; 3+ messages in thread
From: Sriram Neelakandan Iyer @ 2002-10-01 13:12 UTC (permalink / raw)
To: linux-mtd
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: MTD copy on JFFS2
2002-10-01 13:12 MTD copy on JFFS2 Sriram Neelakandan Iyer
@ 2002-10-02 12:37 ` Kenneth Johansson
2002-10-03 1:19 ` Jörn Engel
1 sibling, 0 replies; 3+ messages in thread
From: Kenneth Johansson @ 2002-10-02 12:37 UTC (permalink / raw)
To: sriramneelakandan; +Cc: Mtd
On Tue, 2002-10-01 at 15:12, Sriram Neelakandan Iyer wrote:
> 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)
So what you want is to change the partition layout on a live system and
that is not possible as the same flash block would for a period end up
in two partitions.
> 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.
Could work. but why not.
1. copy from old partition to ramdisk
2. change to new partition layout
3. erase and mount new partition
4. copy files from ramdisk to new partition.
--
Kenneth Johansson
Ericsson AB Tel: +46 8 404 71 83
Borgafjordsgatan 9 Fax: +46 8 404 72 72
164 80 Stockholm kenneth.johansson@etx.ericsson.se
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: MTD copy on JFFS2
2002-10-01 13:12 MTD copy on JFFS2 Sriram Neelakandan Iyer
2002-10-02 12:37 ` Kenneth Johansson
@ 2002-10-03 1:19 ` Jörn Engel
1 sibling, 0 replies; 3+ messages in thread
From: Jörn Engel @ 2002-10-03 1:19 UTC (permalink / raw)
To: Sriram Neelakandan Iyer; +Cc: linux-mtd
On Tue, 1 October 2002 06:12:21 -0700, Sriram Neelakandan Iyer wrote:
> 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.
Should work, as long as both partitions have the same erase block
size, the target partition is not smaller and was erased before 3.
> Will jffs2 be able to mount the second partition
> without trouble?
On first mount you will get some messages about missing erase markers,
jffs2 will erase all new blocks. About as dangerous as a collision in
ethernet. :)
Jörn
--
Good warriors cause others to come to them and do not go to others.
-- Sun Tzu
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-10-03 1:19 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-10-01 13:12 MTD copy on JFFS2 Sriram Neelakandan Iyer
2002-10-02 12:37 ` Kenneth Johansson
2002-10-03 1:19 ` Jörn Engel
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.