* [RAUC] Partition resize
@ 2017-08-02 11:53 Kilimci, Caglar
2017-08-02 15:54 ` Jan Lübbe
0 siblings, 1 reply; 4+ messages in thread
From: Kilimci, Caglar @ 2017-08-02 11:53 UTC (permalink / raw)
To: rauc
Hi all,
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?
Thank you for your help.
Regards,
Caglar
________________________________
This message is for the designated recipient only and may contain privileged, proprietary, or otherwise confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the e-mail by you is prohibited. Where allowed by local law, electronic communications with Accenture and its affiliates, including e-mail and instant messaging (including content), may be scanned by our systems for the purposes of information security and assessment of internal compliance with Accenture policy.
______________________________________________________________________________________
www.accenture.com
_______________________________________________
RAUC mailing list
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [RAUC] Partition resize
2017-08-02 11:53 [RAUC] Partition resize Kilimci, Caglar
@ 2017-08-02 15:54 ` Jan Lübbe
2017-08-03 9:54 ` [RAUC] [External] " Kilimci, Caglar
2019-02-06 17:13 ` [RAUC] " Enrico Joerns
0 siblings, 2 replies; 4+ messages in thread
From: Jan Lübbe @ 2017-08-02 15:54 UTC (permalink / raw)
To: rauc
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [RAUC] [External] Re: Partition resize
2017-08-02 15:54 ` Jan Lübbe
@ 2017-08-03 9:54 ` Kilimci, Caglar
2019-02-06 17:13 ` [RAUC] " Enrico Joerns
1 sibling, 0 replies; 4+ messages in thread
From: Kilimci, Caglar @ 2017-08-03 9:54 UTC (permalink / raw)
To: jlu, rauc
Hi Jan,
>> 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 partition using
>mkfs.ext4 and extract the tar into the new filesystem. In that case no
>resize is needed.
That is the perfect way. Yes, I used ext4 type and I have tried tar archive and it works. Only thing remains is updating bitbake file for it.
>Alternatively, it could be useful to optionally let RAUC call resize2fs
>on installation of a ext4 image.
Yes, I have learnt this but I do not want to do after installation.
Thank you for your help.
Sincerely,
Caglar Kilimci
________________________________
This message is for the designated recipient only and may contain privileged, proprietary, or otherwise confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the e-mail by you is prohibited. Where allowed by local law, electronic communications with Accenture and its affiliates, including e-mail and instant messaging (including content), may be scanned by our systems for the purposes of information security and assessment of internal compliance with Accenture policy.
______________________________________________________________________________________
www.accenture.com
_______________________________________________
RAUC mailing list
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [RAUC] Partition resize
2017-08-02 15:54 ` Jan Lübbe
2017-08-03 9:54 ` [RAUC] [External] " Kilimci, Caglar
@ 2019-02-06 17:13 ` Enrico Joerns
1 sibling, 0 replies; 4+ messages in thread
From: Enrico Joerns @ 2019-02-06 17:13 UTC (permalink / raw)
To: rauc; +Cc: jlu
On 8/2/17 5:54 PM, Jan Lübbe wrote:
> 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
FTR: For those who require this: With https://github.com/rauc/rauc/pull/403
merged we have support for this in master now.
Regards, Enrico
--
Pengutronix e.K. | Enrico Jörns |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-5080 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2019-02-06 17:13 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-02 11:53 [RAUC] Partition resize Kilimci, Caglar
2017-08-02 15:54 ` Jan Lübbe
2017-08-03 9:54 ` [RAUC] [External] " Kilimci, Caglar
2019-02-06 17:13 ` [RAUC] " Enrico Joerns
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox