can't mount ubifs after resizing with ubirsvol
Matthieu CASTET
matthieu.castet at parrot.com
Mon Sep 5 04:33:03 EDT 2011
Hi,
Jon Ringle a écrit :
> Hi,
>
> I have a ubi0 with a static squashfs part and a ubifs part. Sometimes
> I have to update the squashfs with an image that is bigger than the
> currently allocated space for the squashfs part. My plan was to use
> ubirsvol to reduce the size of the ubifs part, then use ubirsvol in
> increase the size of the squashfs part so that it is big enough for
> ubiupdatevol to accept the new image in the squashfs part.
>
> But when I try to mount ubifs after resizing, it complains with:
> (initramfs)[/]# mount -t ubifs ubi0:ubifs /mnt
> [ 1838.350000] UBIFS error (pid 621): validate_sb: bad LEB count: 866
> in superblock, 800 on UBI volume, 19 minimum required
> [ 1838.360000] UBIFS error (pid 621): validate_sb: bad superblock, error 1
> mount: mounting ubi0:ubifs on /mnt failed: Invalid argument
>
> Is what I want to do possible?
>
AFAIK you can't reduce size of ubifs volume, you can only increase it.
Matthieu
More information about the linux-mtd
mailing list