mail archive of the rauc mailing list
 help / color / mirror / Atom feed
From: "Jan Lübbe" <jlu@pengutronix.de>
To: rauc@pengutronix.de
Subject: Re: [RAUC] Partition resize
Date: Wed, 02 Aug 2017 17:54:40 +0200	[thread overview]
Message-ID: <1501689280.2890.17.camel@pengutronix.de> (raw)
In-Reply-To: <BN6P114MB00681F09FEE1C1CC012159FC9DB00@BN6P114MB0068.NAMP114.PROD.OUTLOOK.COM>

Hi Caglar,

On Wed, 2017-08-02 at 11:53 +0000, Kilimci, Caglar wrote:
> I have a question or a missing point. After the successful update, my
> partition size is reduced. If I extend it, it would be as expected.
> Like this:
> 
> Before update:
> root@phyboard-regor-am335x-1:~# df -h
> Filesystem                Size      Used Available Use% Mounted on
> /dev/root               375.8M    207.7M    144.6M  59% /
> devtmpfs                240.9M         0    240.9M   0% /dev
> ..
> 
> After update:
> root@phyboard-regor-am335x-1:~# df -h
> Filesystem                Size      Used Available Use% Mounted on
> /dev/root               305.8M    207.7M     77.9M  73% /
> ..
> 
> Is there any automatic way to extend partition or am I doing
> something wrong?

I'm guessing your root-FS type is ext4? In that case, you are probably
installing a filesystem image with was produced with a fixed size less
than the device size. RAUC doesn't modify the image during
installation.

The easiest way for you is probably to use a .tar.gz archive instead of
the filesystem image. Then RAUC will format the partiton using
mkfs.ext4 and extract the tar into the new filesystem. In that case no
resize is needed.

Alternatively, it could be useful to optionally let RAUC call resize2fs
on installation of a ext4 image.

Regards,
Jan
-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
RAUC mailing list

  reply	other threads:[~2017-08-02 15:54 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-02 11:53 Kilimci, Caglar
2017-08-02 15:54 ` Jan Lübbe [this message]
2017-08-03  9:54   ` [RAUC] [External] " Kilimci, Caglar
2019-02-06 17:13   ` [RAUC] " Enrico Joerns

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=1501689280.2890.17.camel@pengutronix.de \
    --to=jlu@pengutronix.de \
    --cc=rauc@pengutronix.de \
    /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