Re: [yocto] partitions resizing on the fly

2018-06-06 Thread Ferry Toth
ChenQi 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?

Re: [yocto] partitions resizing on the fly

2018-06-06 Thread Philip Balister
On 06/06/2018 04:46 AM, Zoran Stojsavljevic wrote: > Before asking this question to YOCTO community, the simplier question > will be to ask if anybody knows any Linux distro (RHEL, Fedora, > Debian, Ubuntu, SuSE etc.), with the feature which can do this? > > I am dealing with Linux for years, but

Re: [yocto] partitions resizing on the fly

2018-06-06 Thread Zoran Stojsavljevic
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 ei

Re: [yocto] partitions resizing on the fly

2018-06-06 Thread ChenQi
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

Re: [yocto] partitions resizing on the fly

2018-06-06 Thread Zoran Stojsavljevic
Before asking this question to YOCTO community, the simplier question will be to ask if anybody knows any Linux distro (RHEL, Fedora, Debian, Ubuntu, SuSE etc.), with the feature which can do this? I am dealing with Linux for years, but such a mechanism did not see/experience. As well, never found

Re: [yocto] partitions resizing on the fly

2018-06-05 Thread Mihaela Apetroaie-Cristea
Hi, Thanks for your answer. However, my question is whether there is a mechanism such that the root will keep it’s minimal size, but be able to expand if there is free space on the disk when new files are added (not necessarily to occupy the whole free space), and shrink back if files are dele

Re: [yocto] partitions resizing on the fly

2018-06-05 Thread Iván Castell
I managed this issue redefining this script in my custom layer (rocko branch): scripts/lib/wic/canned-wks/mkefidisk.wks and setting a bigger size for the root partition (80GB in my case): part / --source rootfs --ondisk sda --fstype=ext4 --label platform --align 1024 --use-uuid --*size 8

[yocto] partitions resizing on the fly

2018-06-05 Thread Mihaela Apetroaie-Cristea
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