public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: Artem Bityutskiy <dedekind1@gmail.com>
To: Matthieu CASTET <matthieu.castet@parrot.com>
Cc: "linux-mtd@lists.infradead.org" <linux-mtd@lists.infradead.org>,
	Jon Ringle <jon@ringle.org>
Subject: Re: can't mount ubifs after resizing with ubirsvol
Date: Sun, 11 Sep 2011 16:17:42 +0300	[thread overview]
Message-ID: <1315747066.18731.53.camel@sauron> (raw)
In-Reply-To: <4E64893F.5000204@parrot.com>

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

  reply	other threads:[~2011-09-11 13:15 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-03 22:53 can't mount ubifs after resizing with ubirsvol Jon Ringle
2011-09-05  8:33 ` Matthieu CASTET
2011-09-11 13:17   ` Artem Bityutskiy [this message]
2015-11-09 14:04     ` Ibrahim Mattus Neto
2015-11-18 20:01       ` Richard Weinberger
2015-11-19 13:34         ` Ibrahim Mattus Neto
2015-11-19 13:42           ` Richard Weinberger
2015-11-19 14:09             ` Konstantin Tokarev
2015-11-19 15:02               ` Richard Weinberger
2015-11-20  0:09                 ` Dongsheng Yang
     [not found]                 ` <564DEEEF.7010102@writesys.com.br>
2015-11-22 21:43                   ` Richard Weinberger
2015-11-23 13:43                     ` Ibrahim Mattus Neto
2011-09-09  9:59 ` marco

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1315747066.18731.53.camel@sauron \
    --to=dedekind1@gmail.com \
    --cc=jon@ringle.org \
    --cc=linux-mtd@lists.infradead.org \
    --cc=matthieu.castet@parrot.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox