public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: "Nikhil" <nikhils@cdac.in>
To: <linux-mtd@lists.infradead.org>
Subject: MKFS.JFFS2 util
Date: Tue, 22 Nov 2005 12:55:05 +0530 (IST)	[thread overview]
Message-ID: <twig.1132644305.54050@cdac.in> (raw)

hi all,

I am a bit confused whether i need to use mkfs.jffs2 when i need to save
data files on flash in jffs2 format, or is it fine to just mount flash
partition as jffs2 and simply copy the file from another storage(e.g. hard
disk)

i had a txt file on /home/mydir/test.txt which i need to have it on flash
in JFFS2 format. 

i followed the following steps.
1) mount the partition as JFFS2 (mount -t jffs2 /dev/mtdblock0 /mnt/cf)
and 
2) then copy the file (cp /home/mydir/test.txt /mnt/cf/) or 

1) i can MKFS.JFFS2 on the dir (mkfs.jffs2 -d /home/mydir/ -o myimage) 
2) then dd it to flash (dd if=myimage of=/dev/mtdblock0)
3) and then mount it (mount -t jffs2 /dev/mtdblock0 /mnt/cf/)

is the first method the correct way of implementation, as i am getting the
same results either way but i need not use mkfs.jffs2. if yes, then when
shud i use mkfs.jffs2 utility 




-- 
Thanks & Regards

Nikhil Shirodkar
Project Engineer
NISG, CDAC

             reply	other threads:[~2005-11-22  7:25 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-22  7:25 Nikhil [this message]
2005-11-22 13:35 ` MKFS.JFFS2 util Ferenc Havasi

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=twig.1132644305.54050@cdac.in \
    --to=nikhils@cdac.in \
    --cc=linux-mtd@lists.infradead.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox