ubifs mount problem: UBIFS error (pid 1152): validate_sb: bad superblock, error 8

Artem Bityutskiy dedekind1 at gmail.com
Fri Aug 21 01:41:21 EDT 2009


On 08/21/2009 05:05 AM, Aras Vaichas wrote:
> Yes, that works.
>
> I see my problem now. From mkfs.ubifs.c:
>
>          /* Make the journal about 12.5% of main area lebs */
>          c->max_bud_bytes = (lebs / 8) * (long long)c->leb_size;
>          /* Make the max journal size 8MiB */
>          if (c->max_bud_bytes>  8 * 1024 * 1024)
>              c->max_bud_bytes = 8 * 1024 * 1024;
>          if (c->max_bud_bytes<  4 * c->leb_size)
>              c->max_bud_bytes = 4 * c->leb_size;
>
> The journal size is calculated based on the maximum FS size.
> This means that the *minimum" ubifs size is a function of the
> *maximum* UBIFS size.  Interesting.

:-) Well, you may specify the size you want explicitly.

> I chose an 8MB partition because I'm doing a lot of testing for a
> factory/production flashing system, so I don't want to wait long while
> I go through lots of erase/write/attach/mount cycles. Since this is
> unusual, I won't worry too much about it.

You may create another image for this.

> Would there be a benefit to set a small fixed journal size, regardless
> of UBIFS maximum size, for embedded systems?

May be. We did not experiment much with the journal size. If you could
benchmark different journal sizes for different volume sizes and show
what would that small fixed journal size be, we could do what you suggest,
I think.

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



More information about the linux-mtd mailing list