The default root partition space of the YY3588 system image is small. After long-term operation, software installation, and program compilation, the system will report insufficient disk space.
Common symptoms:
No space left on device/dev/root usage reaches 90%~100% via df -hThis guide applies to all YY3588 firmware versions, supports online lossless expansion without system reinstallation and reboot.
-M parameter in resize2fs command. It will cause online shrink error.Run the command:
df -h /
Full storage example:
/dev/root 4.8G 4.0G 538M 89% /
Run the standard expansion command:
sudo resize2fs /dev/mmcblk0p6
Successful output:
resize2fs 1.47.0 (5-Feb-2023)
Filesystem at /dev/mmcblk0p6 is mounted on /; on-line resizing required
old_desc_blocks = 1, new_desc_blocks = 2
The filesystem on /dev/mmcblk0p6 is now 3670016 (4k) blocks long.
The above output means expansion completed successfully.
Run again:
df -h /
Successful result example:
/dev/root 14G 4.0G 9.5G 30% /
Disk space is fully released.
sudo resize2fs /dev/mmcblk0p7
sudo resize2fs /dev/mmcblk0p8
on-line shrinking not supported
Cause: -M parameter used
Solution: Use pure command sudo resize2fs /dev/mmcblk0p6
Permission denied
Solution: Add sudo before the command
Size unchanged after command
Cause: Physical partition table not expanded
Solution: Expand partition via fdisk first, then run resize2fs