Fail to mount ubifs

Artem Bityutskiy dedekind1 at gmail.com
Tue Jan 12 16:37:14 EST 2010


On Tue, 2010-01-12 at 07:07 -0500, Jon Ringle wrote:
> On Mon, Jan 11, 2010 at 11:50 PM, Artem Bityutskiy <dedekind1 at gmail.com> wrote:
> > Hi,
> >
> > On Mon, 2010-01-11 at 19:20 -0500, Jon Ringle wrote:
> >> I should be able to mount an empty ubi volume as ubifs right?
> >> But I get this on a freshly made volume:
> >> UBIFS error (pid 1493): check_lpt_crc: invalid crc in LPT node: crc
> >> cbcb calc cbfb
> >>
> >> I'm not sure what to try now...
> >
> > As this entry suggests:
> > http://www.linux-mtd.infradead.org/doc/ubifs.html#L_how_send_bugreport
> >
> > - validate your flash/driver with the MTD tests - looks like you have a
> > problem there.
> 
> I will try the tests today and report back.
> 
> >> (initramfs) ubinfo -a
> >> UBI version:                    1
> >> Count of UBI devices:           1
> >> UBI control device major/minor: 10:60
> >> Present UBI devices:            ubi0
> >>
> >> ubi0
> >> Volumes count:                           2
> >> Logical eraseblock size:                 130944 bytes, f KiB
> >
> > Hmm, this f KiB looks weird.
> 
> Why is it weird? It is 128 bytes less than my PEB size of 0x20000.

Because "f" is strange, I did not expect this.
The print is:
	printf("%s%.1f KiB", p, (double)bytes / 1024);

see ubiutils_print_bytes() in mtd-utils/ubi-utils/src/common.c

Not sure why it prints "f KiB" on your system.

-- 
Best Regards,
Artem Bityutskiy (Артём Битюцкий)




More information about the linux-mtd mailing list