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
