can't mount ubifs on volume smaller than 265 LEBs/32MiB

Artem Bityutskiy dedekind at infradead.org
Fri Apr 4 01:06:19 EDT 2008


On Fri, 2008-04-04 at 15:12 +1100, Hamish Moffatt wrote:
> With a LEB size of 126kb, any file system < 265 LEBs won't mount,
> failing in validate_sb.
Hmm...

> # ubimkvol /dev/ubi0 -N config -S 264
> Volume ID 2, size 264 LEBs (34062336 bytes, 32.5 MiB), LEB size 129024 bytes (126.0 KiB), dynamic, name "config", alignment 1
> # mount /rw
> mount: mounting ubi0:config on /rw failed: Invalid argument
> 
> # dmesg
> [...]
> [ 1191.360000] UBIFS error (pid 2804): validate_sb: bad superblock

I'll look at this shortly, thanks for the report. As a suggestion, if
you have problems with UBIFS and going to send a bug-report, try to
enable debugging, reproduce the problem and send dmesg. With debugging
enabled it prints more useful information and makes it easier to
identify and fix the issue.

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




More information about the linux-mtd mailing list