How to clear space on ASL3 - Pi/microSD storage

Hi all- I have an older ASL3 node on a Pi B+ and an 8GB microSD card. It is full and I am looking for ways/things that could be done to clear some space. I know I have some sound folder backups from trying to speed up the telemetry but not sure how else to proceed.

I discovered the following which cleared many Gb of space from both of my nodes.

apt clean

apt autoclean

apt autoremove

Had a similar problem once when upgrading to Trixie. Clear the logs. Look at the journalctl command. Run the df command before and after to check free space.

Steve

N5TIN

and don't neglect sudo journalctl --vacuum-size=256M to leave just 256MB of logs around

Specifically with the rPi image, unless you change it, logs are written to RAM anyway, so they will not survive a restart. /TMP is mounted as a 128 MB block of RAM.

Aren’t package update logs in /var/log/apt?

Pretty sure that is where I had my issue.

Steve

N5TIN

I just looked at /etc/fsbat again. Here is the relevant stuff. Everything in /var/log/ is persistent except for:

tmpfs /tmp tmpfs defaults,noatime,nosuid,nodev,noexec,mode=1777,size=128M 0 0
tmpfs /var/tmp tmpfs defaults,noatime,nosuid,nodev,noexec,mode=1777,size=128M 0 0

Delete/comment out the next line for persistent Apache logs

tmpfs /var/log/apache2 tmpfs defaults,noatime,nosuid,nodev,noexec,mode=0775,size=32M 0 0

Delete/comment out the next line for persistent Asterisk logs

tmpfs /var/log/asterisk tmpfs defaults,noatime,nosuid,nodev,noexec,mode=0775,size=32M,uid=102,gid=1>