All of lore.kernel.org
 help / color / mirror / Atom feed
From: Semih Hazar <semih.hazar@indefia.com>
To: Jonathan Kotta <jpkotta@gmail.com>
Cc: linux-mtd@lists.infradead.org
Subject: Re: trouble with mounting ext2/jffs2
Date: Wed, 23 May 2007 11:23:45 +0300	[thread overview]
Message-ID: <4653FA11.7090403@indefia.com> (raw)
In-Reply-To: <47c31da80705221208g11463f3bpdba6bea4fbd9747a@mail.gmail.com>

Jonathan Kotta wrote:
> # mount -t jffs2 /dev/mtdblock0 /mnt
> Cowardly refusing to erase blocks on filesystem with no valid JFFS2 nodes
> empty_blocks 0, bad_blocks 10, c->nr_blocks 2048
> mount: mounting /dev/mtdblock0 on /mnt failed
>   
Can you try to mount /dev/mtdblock0 after doing flash_eraseall /dev/mtd0 
(without -j)
As far as I see jffs2 doesn't like an empty flash with cleanmarkers. But 
it works fine with an all-empty flash. I think cleanmarkers are written 
as data is written.

Another (and maybe better ?) way to go is
* create a jffs2 image with mkfs.jffs2
* erase the flash with -j so that cleanmarkers are written
* and then use nandwrite to write your image to mtd.

Regards,
-- 
Semih Hazar

  reply	other threads:[~2007-05-23  8:23 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-22 19:08 trouble with mounting ext2/jffs2 Jonathan Kotta
2007-05-23  8:23 ` Semih Hazar [this message]
2007-05-23 21:23   ` Jonathan Kotta

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=4653FA11.7090403@indefia.com \
    --to=semih.hazar@indefia.com \
    --cc=jpkotta@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 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.