can't mount ubifs after resizing with ubirsvol

Richard Weinberger richard at nod.at
Sun Nov 22 13:43:43 PST 2015


Ibrahim,

Am 19.11.2015 um 16:46 schrieb Ibrahim Mattus Neto:
> Hi!
> 
> On 19/11/2015 13:02, Richard Weinberger wrote:
>> Am 19.11.2015 um 15:09 schrieb Konstantin Tokarev:
>>> I can confirm that shrinking UBIFS volume corrupts it.
>> There are no UBIFS volumes.
> 
> You mean that there are no UBIFS volumes because of the config file? e.g.

UBIFS has no volumes, it is a filesystem.
UBI has volumes. :-)

>  [data]
>  mode=ubi
>  vol_id=1
>  vol_type=dynamic
>  vol_name=data
>  vol_alignment=1
>  vol_flags=autoresize
>  vol_size=10MiB
> 
> 
> 
>> If you shrink a UBI volume, you kill UBIFS for sure.
>> It is like shrinking a HDD partition without resizing ext4 before.
> 
> In this case, should I use ubiupdatevol (with a new ubifs file) after resizing the ubi volume?

You can. (As long the UBIFS fits into the UBI volume)

Thanks,
//richard



More information about the linux-mtd mailing list