Mount failed after clean mount & umount test

Kyungmin Park kyungmin.park at samsung.com
Wed Jan 25 01:32:47 EST 2006


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





More information about the linux-mtd mailing list