public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: Grant Erickson <gerickson@nuovations.com>
To: Josh Boyer <jwboyer@gmail.com>
Cc: "linux-mtd@lists.infradead.org" <linux-mtd@lists.infradead.org>
Subject: Re: Creating an Empty JFFS2 File System
Date: Fri, 07 Mar 2008 12:39:46 -0800	[thread overview]
Message-ID: <C3F6E812.DD80%gerickson@nuovations.com> (raw)
In-Reply-To: <20080307123701.55c3ebf8@weaponx>

On 3/7/08 10:37 AM, Josh Boyer wrote:
> 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:

That technique is a no-go as well:

    # flash_eraseall -q /dev/mtd8
    # mount -t jffs2 /dev/mtdblock8 /mnt
    Cowardly refusing to erase blocks on filesystem with no valid JFFS2
    nodes
    empty_blocks 0, bad_blocks 0, c->nr_blocks 3840
    mount: mounting /dev/mtdblock8 on /mnt failed: Input/output error

Regards,

Grant

  reply	other threads:[~2008-03-07 20:39 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
2008-03-07 20:39   ` Grant Erickson [this message]
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=C3F6E812.DD80%gerickson@nuovations.com \
    --to=gerickson@nuovations.com \
    --cc=jwboyer@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox