ArmSoM
← All stories

How to Keep the Previous Boot's Logs on an ArmSoM Linux Device

An intermittent startup problem is hard to investigate when journalctl shows only the current boot. On a systemd-based ArmSoM appliance, journal persistence, available storage and log rotation together determine how much history survives a restart.

ArmSoM CM7s compute module product photo

ArmSoM CM7s compute module · ArmSoM

Prove persistence with a harmless marker

Write an identifiable test entry on a bench unit, perform an orderly reboot and list the boots available in the journal. Retrieve the marker from the earlier boot. If it is missing, inspect journald's storage mode, persistence directory and retention limits. Repeat with the normal application generating its usual log traffic. Persistence that survives one idle reboot can still retain too little history during a noisy incident.

Place a distinct marker near the end of one boot and near the beginning of the next. This checks the boot boundary directly and helps detect a viewer that is filtering to only the current boot.

Set a maximum disk budget and record how many representative boots it retains. This gives support staff a realistic collection window.

Reference material

ArmSoM CM7s hardware documentation

systemd journal storage settings

Related ArmSoM guide

Linux on an arm SBC will not boot a hardware first troubleshooting guide

Explore ArmSoM CM7s