05-13-2021, 02:13 AM
(05-12-2021, 12:26 PM)Tim Curtis Wrote: Space allocation on a stock moOde image looks like below. Root file system has 892M available which is above the 512M minimum required for in-place update.
Code:pi@moode:~ $ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/root 3.9G 2.8G 892M 77% /
devtmpfs 430M 0 430M 0% /dev
tmpfs 463M 0 463M 0% /dev/shm
tmpfs 463M 7.2M 456M 2% /run
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 463M 0 463M 0% /sys/fs/cgroup
/dev/mmcblk0p1 253M 54M 199M 22% /boot
tmpfs 93M 0 93M 0% /run/user/1000
pi@moode:~ $
Do you know what might be taking up additional space on your image for example song files on SDCard?
Expanding to full capacity of SDCard won't impact performance. I agree that the downside of this is that backup of SDCard will be a file the size of the entire SDCard and backup/restore will take a really long time.
I'll look into command that can expand to a specific size.
I'm not quite sure what might be taking up the space. I'm assuming it might be album thumbnails or database files as I haven't copied any other files to the SD card. I've tried compacting/clearing log files, playback history and database files but hasn't helped.
Here's what my image looks like:
Code:
pi@moode:~ $ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/root 3.4G 2.9G 370M 89% /
devtmpfs 1.9G 0 1.9G 0% /dev
tmpfs 1.9G 0 1.9G 0% /dev/shm
tmpfs 1.9G 9.4M 1.9G 1% /run
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 1.9G 0 1.9G 0% /sys/fs/cgroup
/dev/mmcblk0p1 253M 55M 198M 22% /boot
tmpfs 383M 0 383M 0% /run/user/1000
My root partition size is 3.4GB compared to the stock 3.9 GB. This difference would be enough to perform the in-place update! Not sure why my root partition is slightly smaller (and why my tmpfs partitions are so large in comparison to the stock image) given that I used the ready to use ISO image when I did the major upgrade to 7.0.0.