ArmSoM
← All stories

How to Tell Whether an SBC Is Running Out of Disk Space or Inodes

A Linux data logger can refuse to create files even though the storage dashboard still shows free bytes. On filesystems with a finite inode pool, a large number of tiny records can exhaust file entries first. An ArmSoM prototype that stores one file per sensor event is particularly easy to test.

ArmSoM Sige5 single-board computer product photo

ArmSoM Sige5 single-board computer · ArmSoM

Check allocation in two units

Use df -h and df -i against the mount that actually holds the records. Confirm the application writes to that mount after a reboot. Compare a sample directory’s file count with the expected event rate and retention window. One file every second produces 86,400 entries per day even when the payload is tiny.

If the filesystem exposes a fixed inode pool, compare df -h with df -i on the affected mount. A healthy root mount does not explain a write failure on a separate data partition.

Consider grouping events into bounded segments or a database and retaining a separate index. Test retrieval of an individual record and cleanup of old data, since reducing file count moves some work into the application.

Reference material

ArmSoM Sige5 hardware documentation

GNU df filesystem usage manual

Related ArmSoM guide

USB SSD NVMe or eMMC choosing storage for an arm SBC

Explore ArmSoM Sige5