* Error whe mounting ubifs volume
@ 2012-02-21 16:57 Patrick
2012-03-08 12:12 ` Artem Bityutskiy
0 siblings, 1 reply; 2+ messages in thread
From: Patrick @ 2012-02-21 16:57 UTC (permalink / raw)
To: linux-mtd@lists.infradead.org
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Error whe mounting ubifs volume
2012-02-21 16:57 Error whe mounting ubifs volume Patrick
@ 2012-03-08 12:12 ` Artem Bityutskiy
0 siblings, 0 replies; 2+ messages in thread
From: Artem Bityutskiy @ 2012-03-08 12:12 UTC (permalink / raw)
To: Patrick; +Cc: linux-mtd@lists.infradead.org
On Tue, 2012-02-21 at 16:57 +0000, Patrick wrote:
> 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
Looks like you did not flash your image properly.
Does it work if you just mount an empty volume, then unmount, then mount
again?
--
Best Regards,
Artem Bityutskiy
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-03-08 12:09 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-21 16:57 Error whe mounting ubifs volume Patrick
2012-03-08 12:12 ` Artem Bityutskiy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox