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: dd image without flash_eraseall
Date: Thu, 24 Nov 2005 12:14:04 +0530 (IST)	[thread overview]
Message-ID: <twig.1132814644.42779@cdac.in> (raw)
In-Reply-To: <twig.1132813909.78363@cdac.in>

On Thu, Nov 24, 2005, Nikhil <nikhils@cdac.in> said:

 Hi all,
 
 I just wanted some clarity on some of the results i am geting by 'dd'ing
 on compact flash without flash_eraseall
 
 I did the following
 1) Made an image of some directory with 40 odd files usking mkfs.jffs2
 2) dd if=image of=/dev/mtdblock0
 3) mount -t jffs2 /dev/mtdblock0 /mnt/cf
 4) checked the contents by ls then removed around 19 files by rm.
 5) unmounted
 6) dd the same image again
 7) mounted  and checked by ls
 
 i was expecting to get all the files but the files which were removed by
 rm were not present. i understand that doing flash_eraseall will overcome
 this problem but the following expt makes things confusing.
 
 In this expt. i did the same step from the above 1-5.  Now instead of
 dd'ing the same image, I dd some different image.  Now this image is
 overwritten onto the flash (without me explicitly using flash_eraseall).
 
 If dd'ing a new image overwrites the flash (without flash_eraseall),
 shouldn't the same be true when I dd the same image?
  
 -- 
 Thanks & Regards
 
 Nikhil Shirodkar
 Project Engineer
 NISG, CDAC

           reply	other threads:[~2005-11-24  6:44 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <twig.1132813909.78363@cdac.in>]

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.1132814644.42779@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