can't mount ubifs after resizing with ubirsvol

Artem Bityutskiy dedekind1 at gmail.com
Sun Sep 11 09:17:42 EDT 2011


On Mon, 2011-09-05 at 10:33 +0200, Matthieu CASTET wrote:
> 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.

Right, shrinking is not currently supported. It is possible to
implement, but needs efforts and time (as many of other things people
want).

-- 
Best Regards,
Artem Bityutskiy




More information about the linux-mtd mailing list