From: Kyungmin Park <kyungmin.park@samsung.com>
To: linux-mtd@lists.infradead.org
Subject: Mount failed after clean mount & umount test
Date: Wed, 25 Jan 2006 15:32:47 +0900 [thread overview]
Message-ID: <0ITM009NXY6NSL@mmp2.samsung.com> (raw)
Hi
I have a question about JFFS2
At OneNAND MTD debugging, there's some problem on JFFS2 mount & umount
I write script as following
#!/bin/sh
/mtd-utils/eraseall /dev/mtd4
mount -t jffs2 /dev/mtdblock4 /mnt
umount /mnt
mount -t jffs2 /dev/mtdblock4 /mnt
It printes following message
nr_free_blocks = 0, empty_block = 0, bad_blocks = 0, nr_blocks = 256
Cowardly refusing to erase blocks on filesystem with no valid JFFS2 nodes
empty_blocks 0, bad_blocks 0, c->nr_blocks 256
mount: Mounting /dev/mtdblock4 on /mnt failed: Input/output error
It always failed on OneNAND MTD but in below script there's no problem.
#!/bin/sh
/rfs-utils/eraseall /dev/mtd4
mount -t jffs2 /dev/mtdblock4 /mnt
# add dummy file on JFFS2
touch /mnt/jffs2_filesystem
umount /mnt
mount -t jffs2 /dev/mtdblock4 /mnt
What is the difference between? The only one dummy file is created.
Regards,
Kyungmin Park
next reply other threads:[~2006-01-25 6:33 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-25 6:32 Kyungmin Park [this message]
2006-01-25 11:57 ` Mount failed after clean mount & umount test Jarkko Lavinen
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=0ITM009NXY6NSL@mmp2.samsung.com \
--to=kyungmin.park@samsung.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