From: Richard Weinberger <richard@nod.at>
To: Ibrahim Mattus Neto <ibrahim.neto@writesys.com.br>
Cc: "linux-mtd@lists.infradead.org" <linux-mtd@lists.infradead.org>
Subject: Re: can't mount ubifs after resizing with ubirsvol
Date: Thu, 19 Nov 2015 14:42:55 +0100 [thread overview]
Message-ID: <564DD1DF.9070009@nod.at> (raw)
In-Reply-To: <564DCFED.2070902@writesys.com.br>
Hi!
Am 19.11.2015 um 14:34 schrieb Ibrahim Mattus Neto:
> Hi Richard!
>
> Thanks for the response.
>
> What I did was:
>
> 1) I created an .ubi file using the following configuration.
> [rootfs]
> mode=ubi
> vol_id=0
> vol_type=dynamic
> vol_name=rootfs
> vol_alignment=1
> image=rootfs.ubifs
> vol_size=80MiB
>
> [data]
> mode=ubi
> vol_id=1
> vol_type=dynamic
> vol_name=data
> vol_alignment=1
> vol_flags=autoresize
> vol_size=10MiB
>
> [recover]
> mode=ubi
> vol_id=2
> vol_type=dynamic
> vol_name=recover
> vol_alignment=1
> vol_size=5MiB
>
> 2) After booting I tried to shrink "data" and increase the size of recover using ubirsvol:
>
> ubirsvol /dev/ubi0 -n 1 -s 4MiB (data)
>
> ubirsvol /dev/ubi0 -n 2 -s 15MiB (recover)
>
> 3) After the resizing I tried to mount "data"
>
> mount /home/data/
> [ 88.510000] UBIFS error (ubi0:1 pid 668): validate_sb: bad LEB count: 1159 in superblock, 34 on UBI volume, 20 minimum required
> [ 88.520000] UBIFS error (ubi0:1 pid 668): validate_sb: bad superblock, error 1
This cannot work. You resized the UBI *volume*, not the UBIFS filesystem.
And unless I'm very mistaken UBIFS does not support shrinking anyway.
Thanks,
//richard
next prev parent reply other threads:[~2015-11-19 13:43 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
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 [this message]
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=564DD1DF.9070009@nod.at \
--to=richard@nod.at \
--cc=ibrahim.neto@writesys.com.br \
--cc=linux-mtd@lists.infradead.org \
/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;
as well as URLs for NNTP newsgroup(s).