Is LOG2RAM needed on a PiHole /Unbound /DietPi OS install?

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
Post Reply
Posts: 1
Joined: Wed Feb 10, 2021 11:08 am

Is LOG2RAM needed on a PiHole /Unbound /DietPi OS install?

Post by David25 »

Would installing log2ram help with prolonging the life of an SD card as far as PiHole is concerned? And does a DietPi OS need to have log2ram? (I see several tutorials that recommend the install of log2ram with Pi-Hole on a raspberry OS, but no mention of a Diet-Pi OS).
Last edited by David25 on Sun Mar 14, 2021 8:36 am, edited 1 time in total.
User avatar
Posts: 5115
Joined: Sat Nov 16, 2019 12:49 am

Re: Is LOG2RAM needed on a PiHole /Unbound /DietPi OS install?

Post by Joulinar »


first, DietPi is not an own OS. It's a set of scripts on top of a base image. Depeneding on your device, different base images are uses like Raspberry OS, Armbian, Meveric or plain Debian.

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.

As well, best to my knowledge, Pihole did not have file logging activated by default.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply