I found an SDcard plenty reliable enough for piHole. From my experience; I would make the following suggestions to optimise the life.Many thanks for the advice
I am a very ancient and very retired person who just likes to dabble with computers.
I bought a Pi 5 just after it came out an since then I have been experimenting with it. pi-Hole is, at the mement, just partn of that experimentation.
If it installation is successful I may well invest in nan older version of the Pi.
One further question!
Is an sdcard relaiable enough for running Pi-Hole?
Thanks
1. Buy a quality SD card from a reliable source. I like Samsung Evo's personally. Others will have their preferences. They are cheap; so buy a fairly big one. 64GB is a sweet spot for price/size I find. The larger they are, the better they last.
2. There are a few things that you can do to optimise the wear of the SDcard...Though; tbh...if you follow 1 above; these are probably far less important less important these days.
2.1 Pihole does a lot of logging by default. This will eventually wear the SD card out. What I do is; once I have it set up; I turn most of the logging off. I run it on a very old Pi with little memory. If you are using a Pi5; you have an abundance of RAM, so could alternatively set it up so that the logging goes to a tmpfs. You will then save wear on the SD card...and the logs will be cleared as soon as you reboot. If you aren't familiar with fstab; I would suggest that you have a look at the excellent guide that thagrol of this manner has written.
https://github.com/thagrol/Guides/blob/main/fstab.pdf
2.2. Pi also has the ability to make the SD card R/O by using overlays. That reduces the amount of writes to the SD card.
https://www.raspberrypi.com/documentati ... ation.html
2.3 Use trim occasionally. Here's an article by the excellent Jeff Geerling about it.
https://www.jeffgeerling.com/blog/2020/ ... spberry-pi
He's actually talking about trim on SSD's but the principles are the same. You can set it up automatically using cron...again; I'd suggest you read thagrol's guide on it...
https://github.com/thagrol/Guides/blob/main/cron.pdf
I hope that is useful. A few more random things....
The Pi5 will really get bored running just pihole; "here I am; brain the size of a planet....."
If you haven't done so already; buy yourself an official power supply. The two biggest issues that come up on here are to do with poor quality SD cards and power supplies. The official supply is cheap and it works.
Finally; The best advice that I can give you is ...have fun!!
Statistics: Posted by kip_the_elder — Sun Jun 30, 2024 5:39 am