RevPi Core 3 Storage space

Topics about the Hardware of Revolution Pi
MedB
Posts: 4
Joined: 18 Feb 2025, 13:20

Re: RevPi Core 3 Storage space

Post by MedB »

Hi all,
I am also running into a storage space issue, only 300MB left for the 8GB.
How can I check what is using this much space?
also how can I delete the log files/maybe setup a retention period?
last, if I were to use a USB stick, what things would I be able to migrate to be stored onto the USB stick?
tboehler
KUNBUS
Posts: 13
Joined: 02 May 2023, 16:22

Re: RevPi Core 3 Storage space

Post by tboehler »

Hi MedB. You can check how much space a directory tree is taking up by calling "du -hs /path/to/dir". Some of the candidates for using up a lot of storage might be, for instance, "/home/pi" or "/var/log".

Log files should be rotated and deleted automatically using "logrotate": https://packages.debian.org/bookworm/logrotate. This keeps the size of logs neglectible for most installations.
Our packages as well as packages from upstream debian should come with configuration files for logrotate by default that makes sure the logs don't fill up the storage too much. It might be possible, though, that files of an application you deployed yourself onto the RevPi are stored there as well and are not considered for log rotation.
If you want to customize that amount of logs kept and how long they are kept before being compressed or deleted have a look at the manual page for the logrotate configuration: https://manpages.debian.org/bookworm/lo ... .5.en.html

Should you still be on bullseye and not on bookworm I can recommend switching to our bookworm releases as they should be smaller in size compared to bullseye and previous images.
Side note: Should you be using an even older release (i.e. buster or even stretch) you should really consider updating to a newer release as all releases older than bullseye don't receive security updates anymore. More information about Debian Long Term Support can be found here: https://wiki.debian.org/LTS

I hope this helps with your storage problems!
Post Reply