public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* Mount failed after clean mount & umount test
@ 2006-01-25  6:32 Kyungmin Park
  2006-01-25 11:57 ` Jarkko Lavinen
  0 siblings, 1 reply; 2+ messages in thread
From: Kyungmin Park @ 2006-01-25  6:32 UTC (permalink / raw)
  To: linux-mtd

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-01-25 11:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-25  6:32 Mount failed after clean mount & umount test Kyungmin Park
2006-01-25 11:57 ` Jarkko Lavinen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox