Better alternative to log2ram?

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
Post Reply
frontalgaming
Posts: 2
Joined: Tue Mar 09, 2021 8:58 pm

Better alternative to log2ram?

Post by frontalgaming »

Hey everyone, new around here. Long time user but finally decided to start contributing/getting involved.
I was looking at ways to protect my SD card from constant small writes from the OS and I generally came to 2 plausible answers.
One is the well known log2ram and the other was a less known option that uses Zram and overlayfs.
Here's the git: https://github.com/ecdye/zram-config

I'm not nearly knowledgeable enough about the subject of OS tools and management so I just wanted to show this here for whoever is interested to dig into.
The only reason I thought this might be useful is because long term sbc support for weaker boards, where the much more fragile SD card/USB stick hardware is the only option, seems to be a big focus for this community.
Thanks for the great project and help guys and keep up the great work!
User avatar
Joulinar
Posts: 5716
Joined: Sat Nov 16, 2019 12:49 am

Re: Better alternative to log2ram?

Post by Joulinar »

Hi,

By default DietPi will have RAMlog activated. Means /var/log will be a tmpfs and is located inside RAM. DietPi aims to reduce r/w operations down to a minimum.

ZRAM can be activated using /boot/dietpi/func/dietpi-set_swapfile <size> zram

An overlayFS I tested once, some info on this link viewtopic.php?p=24920#p24920
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
frontalgaming
Posts: 2
Joined: Tue Mar 09, 2021 8:58 pm

Re: Better alternative to log2ram?

Post by frontalgaming »

YeahI know dietpi has log2ram by default. When I was looking for an option was when i was trying for a Pi OS install and doing it all from scratch but after some headache and frustration I decided to just return to dietpi.

Was just wondering if that git, that isn't very known, would have something useful for you guys to use since the creators seem to be adamant in saying it's better than log2ram or any other solution out there atm.
Cheers for the reply!
Post Reply