All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kenneth Johansson <kenneth.johansson@etx.ericsson.se>
To: sriramneelakandan@yahoo.com
Cc: Mtd <linux-mtd@lists.infradead.org>
Subject: Re: MTD copy on JFFS2
Date: 02 Oct 2002 14:37:01 +0200	[thread overview]
Message-ID: <1033562222.1600.66.camel@spawn> (raw)
In-Reply-To: <20021001131221.26804.qmail@web14906.mail.yahoo.com>

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

  reply	other threads:[~2002-10-02 21:12 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-01 13:12 MTD copy on JFFS2 Sriram Neelakandan Iyer
2002-10-02 12:37 ` Kenneth Johansson [this message]
2002-10-03  1:19 ` Jörn Engel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1033562222.1600.66.camel@spawn \
    --to=kenneth.johansson@etx.ericsson.se \
    --cc=linux-mtd@lists.infradead.org \
    --cc=sriramneelakandan@yahoo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.