I'm not sure if this is a Raspberry Pi problem or Linux one. We are using the Compute Module 4 in a smart battery powered tool. We have the eMMC divided up into several partitions. There are two Linux ext4 partitions for the OS, one running and the other for OS updates using an A/B boot mechanism. These partitions are 2.5GB as reported by fdisk and lsblk (5242880 sectors). Normally, the partitions report about 82% used by 'df':
We powered up a unit and it failed because there was insufficient disk space left. fdisk reported the correct partition size, and fsck.ext4 did not find any errors, but df reported this:
There were 440440 1K blocks missing. Running 'resize2fs /dev/mmcblk0p6' fixed the problem. What could cause the filesystem to shrink like this?
Note: We are using an older Debian Bulleye image created by a custom pigen. It is essentially the Raspberry Pi 32 Bit OS Lite with a lot of stuff stripped out. 'uname' reports:
Code:
Filesystem 1K-blocks Used Available Use% Mounted on/dev/root 2512528 1928956 442712 82% /Code:
Filesystem 1K-blocks Used Available Use% Mounted on/dev/mmcblk0p6 2072088 1943064 3892 100% /root/rootNote: We are using an older Debian Bulleye image created by a custom pigen. It is essentially the Raspberry Pi 32 Bit OS Lite with a lot of stuff stripped out. 'uname' reports:
Code:
Linux raspberrypi 6.1.21-v7l+ #1642 SMP Mon Apr 3 17:22:30 BST 2023 armv7l GNU/LinuxStatistics: Posted by murrellr — Fri May 09, 2025 8:33 pm