can't mount ubifs after resizing with ubirsvol
Ibrahim Mattus Neto
ibrahim.neto at writesys.com.br
Mon Nov 23 05:43:07 PST 2015
On 22/11/2015 19:43, Richard Weinberger wrote:
> 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. :-)
My bad... got a little confused :(
>
>> [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
Thank you for your time!
Best,
--Ibrahim
More information about the linux-mtd
mailing list