Shrink Volumio Image and expand on next boot up Script!

Hi Everyone, I am newbie on linux and volumio,
I would like to know how i can do this trick:
I need shink volumio image, to keep a low size file and make fast the image burn process
After burn up the image, and boot up, I need Volumio Expand automatically

Is possible do it using script?

can someone sugest me how implement this?

ThankU

As far as I know this is how it works already. The image you download is the minimum size and it expands to the size of the SD card you write it to after the first boot.

Ok, but in my first execution I was using a small size micro sd card, so the system expanded about 4 Gb, I want put this modified image in a big microSdCard.
I used a win32disk image, for backup and write the image on bigger one
Now I have the system using just a portion of total size, I am looking for a script that expand the filesistem after a first boot…

Volumio just do that automatically at first boot

Hi,

yes, volumio does that at first boot, but when I understand @hdellagnesi post correctly, first boot already happened with the small sd card.
After he created a backup, he flashed that to a bigger SD.

@hdellagnesi: take your new SD card and put an empty file called “resize-volumio-datapart” in the boot partition.
This should instruct volumio to do a resize automatically.

Thank You!
That was exactly what I needed
God bless you!