All of lore.kernel.org
 help / color / mirror / Atom feed
From: Josh Boyer <jwboyer@gmail.com>
To: Grant Erickson <gerickson@nuovations.com>
Cc: "linux-mtd@lists.infradead.org" <linux-mtd@lists.infradead.org>
Subject: Re: Creating an Empty JFFS2 File System
Date: Fri, 7 Mar 2008 12:37:01 -0600	[thread overview]
Message-ID: <20080307123701.55c3ebf8@weaponx> (raw)
In-Reply-To: <C3F6C181.DD74%gerickson@nuovations.com>

On Fri, 07 Mar 2008 09:55:13 -0800
Grant Erickson <gerickson@nuovations.com> wrote:

> Is creating an empty JFFS2 file system supported or is this a deprecated
> capability? The following steps seem to be incorrect or failing:
> 
>     # flash_eraseall -q -j /dev/mtd9
>     # mount -t jffs2 /dev/mtdblock9 /mnt
>     Cowardly refusing to erase blocks on filesystem with no valid JFFS2
>     nodes
>     empty_blocks 0, bad_blocks 0, c->nr_blocks 3840
> 
> Or, is the only way to accomplish this to create a NULL JFFS2 image with
> mkfs.jffs2 and then nandwrite it?

Just erase it completely without the -j option and mount.  JFFS2 will go
through and erase them all again and add the cleanmarkers itself.

josh

  reply	other threads:[~2008-03-07 18:37 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-07 17:55 Creating an Empty JFFS2 File System Grant Erickson
2008-03-07 18:37 ` Josh Boyer [this message]
2008-03-07 20:39   ` Grant Erickson
2008-08-23 15:34     ` Grant Erickson
2008-03-07 18:50 ` Markus Franke

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=20080307123701.55c3ebf8@weaponx \
    --to=jwboyer@gmail.com \
    --cc=gerickson@nuovations.com \
    --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 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.