Resizing of an existing UBIFS

Norbert van Bolhuis nvbolhuis at aimvalley.nl
Fri May 25 06:12:48 EDT 2012


On 05/22/12 08:53, Artem Bityutskiy wrote:
> On Tue, 2012-05-22 at 08:41 +0200, Robert Homann wrote:
>> Hi,
>>
>> I have a short question: Is it possible to expand the size of a UBIFS
>> without creating a new image file or reformatting from scratch?
>>
>> Suppose you have a UBIFS whose --max-leb-cnt has been set so to limit
>> its size to 100 MiB. Now suppose this UBIFS lives in a dynamic UBI
>> volume which gets expanded to a size of the whole partition, say,
>> 150 MiB. Being limited by the --max-leb-cnt parameter, the contained
>> UBIFS is expanded to only 100 MiB, and the rest of the space in the
>> volume is wasted. Is it possible to resize the UBIFS so that it can make
>> use of the now wasted space?
>
> Unfortunately there are not tools for this :-( You could write one,
> though :-)
>


This is not a problem for a UBIFS being created dynamically, so with
ubiformat + ubiattach + ubimkvol ? In this case the size of the lprops
area is determined by the total amount of LEBs of the MTD partition ?

A UBIFS volume can then be resized with ubirsvol as long as it does not
conflict with other volumes and does not exceed the total amount of
LEBs of the MTD partition ?

---
N. van Bolhuis.




More information about the linux-mtd mailing list