[yocto] partitions resizing on the fly

Zoran Stojsavljevic zoran.stojsavljevic at gmail.com
Wed Jun 6 02:33:01 PDT 2018


Here is one good topic which I already know about. Virtual Box virtual
disks' sizes!
https://superuser.com/questions/1096549/file-based-dynamically-allocated-hard-disk-on-linux

Two questions (stress on [1]):

[1] VirtualBox allows you to create VDI, VMDK, and VHD types of
hard-disks that can be either fixed- or dynamically-sized. Is there
any way to make a file-based dynamically-sized hard-disk for use by a
Linux host OS?

(although I never the found way how to dynamically shrink VDI VD, the
expansion is obvious)

[2] Is it possible to employ any of these three types of file-based,
dynamically-sized hard-disks outside of VirtualBox, on a Linux host
OS?

Zoran
_______

On Wed, Jun 6, 2018 at 11:17 AM, ChenQi <Qi.Chen at windriver.com> wrote:
> On 06/05/2018 10:33 PM, Mihaela Apetroaie-Cristea wrote:
>>
>> Hello,
>>
>> I have a minimal yocto OS built for RPI, which has three partitions: boot,
>> root and data. Is there any way to resize root and data such that root
>> expands/flattens when files and others are added/deleted? Such that I can
>> make more space for the data partition. At the moment my partitions are
>> built with minimal size and I expand them with gparted after I added them on
>> the sd card. But if I put my device somewhere unreachable it would be very
>> useful to have a way to expand and flatten portions on the fly.
>>
>> Thank you,
>> Mihaela
>
> It is said that btrfs supports such feature? Frankly I didn't try it out.
> Yocto supports building out btrfs images. Maybe you can give it a try?
>
> Best Regards,
> Chen Qi
>
> --
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto


More information about the yocto mailing list