Error whe mounting ubifs volume

Patrick kpa_info at yahoo.fr
Tue Feb 21 11:57:10 EST 2012


Dear mailing-list,

I am using UBI and UBIFS for the first time on a custom board that use a SLC NAND. We use the 3.0.21 kernel with UBI and UBIFS enabled.
I use mkfs.ubifs to generate a ubifs image of my rootfs with the following arguments: -m 2048 -e 129024 -c 4060


I the use the following sequence to flash this image and mount it:

flash_eraseall /dev/mtd4
ubiformat /dev/mtd4
ubiattach -p /dev/mtd4
ubimkvol /dev/ubi0 -N volume_name -s 128MiB
ubiupdatevol /dev/ubi0_0 my_rootfs.ubifs
mount -t ubifs ubi0:volume_name /media/test

Everything works well but when doing the mount I have the following error:

mount: wrong fs type, bad option, bad superblock on /dev/ubi0_0,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so


On the kernel log I have the following error:

 UBIFS error (pid 397): ubifs_read_node: bad node type (0 but expected 6)
 UBIFS error (pid 397): ubifs_read_node: bad node at LEB 0:0, LEB mapping status 1


I am probably doing something wrong but I am not able to point what's the problem.

Any help is welcome. Thanks in advance

Patrick




More information about the linux-mtd mailing list