Both :mrgreen:
The script won’t work for Volumio 2 as the partitioning scheme differs from version 1.5 (which the thread was referring to).
In fact, you should not re-size the disk at all as this is done by Volumio 2 on first boot.
It will resize the 3rd (data) partition to the max. size of the disk.
The partition is for user data and also holds all volumio configuration settings and data.
It also exposes an SMB share (INTERNAL), so you can drop files on it from another Linux, Windows or MAC machine.
The data partition is also used for the dynamic part of the overlayfs filesystem.
That data is in folder /dyn and /ext, you should NOT use or modify these for anything else.
I want to install lots of packages (yes, I know it’s discurraged), to make a python script running (0p.no/2016/08/17/radios_part_2.html). I made it for musicbox, but that project has died, so I want to port it over to Volumio.
I don’t think that it’s “discouraged”, it’s simply that you need to know what you’re doing and recognise the effects that you may have on the core Volumio system. I think that it actually enriches Volumio if, after completing such a project, you can provide a working guide that allows others to follow in your footsteps without falling into all the potential pitfalls. If it could be worked into a plugin, then even better, but it sounds as though this customisation may be a little more extensive . Good luck, and let us know how you get on.
You do not need to stretch the rootfs for it, just install your packages. The rootfs is transparent, the added/ modified rootfs files will be stored in the dynamic part of the rootfs (which is on the data partition), this is the nice bit of overlayfs
Your overlay partition is extremely small to begin with.
This what you should have (Sparky example) after a first boot on a newly flashed image using an 8Gb SD:
overlayfs 5.9G 17M 5.5G 1% /
/dev/mmcblk0p2 1.3G 501M 725M 41% /imgpart
/dev/loop0 250M 250M 0 100% /static
devtmpfs 397M 0 397M 0% /dev
tmpfs 495M 0 495M 0% /dev/shm
tmpfs 495M 4.7M 491M 1% /run
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 495M 0 495M 0% /sys/fs/cgroup
tmpfs 495M 16K 495M 1% /tmp
tmpfs 495M 0 495M 0% /var/spool/cups
tmpfs 20M 20K 20M 1% /var/log
tmpfs 495M 0 495M 0% /var/spool/cups/tmp
/dev/mmcblk0p1 60M 9.7M 51M 17% /boot
tmpfs 99M 0 99M 0% /run/user/1000
Notice the size of overlay? Are you sure you did not change anything manually between flashing the image and first boot?
-Gé-
Aha. I did try to follow that other disk resize guide for an earlier volumio version, so that probably messed it up. Thanks! I’ll reflash and try again.