Page 2 of 2

Re: SD Card Longevity

Posted: Mon 14 Mar 2022 2:46 pm
by Gregorean
Hello @watsonm, I have been using a 128GB Sandisk Extreme Pro USB 3.2 Solid State Flash Drive (€39,90) for a while now, previously I used a 32GB sd card.

This USB SSD works very fast 420MB/s read and 380MB/s write compared to an sd card. :P

I am using an RPI4B with Bullseye, and running CumulusMX admin on it, and a local NGINX web server for BCJKiwi MXUI website 2.23a.

I also wanted to write several things to RAM like you, put several things in fstab, but didn't run smoothly. :oops:

For example, if I wanted to put /var/log in the tmpfs then my MXUI website wouldn't start anymore, CumulusMX would.

I read somewhere that log2ram also worked well, I installed that and it works very well, just set the size of the ramdisk in the config and that's all.

This is the link https://github.com/azlux/log2ram where you can find an explanation and what you can change.

I hope you can do something with it.

Best regards Sjaak.

Re: SD Card Longevity

Posted: Mon 14 Mar 2022 5:20 pm
by watsonm
Sjaak.
Thanks for that but my system is working OK for now. I have the following in my fstab:

tmpfs /var/tmp tmpfs defaults,noatime,mode=1777 0 0
tmpfs /var/log tmpfs defaults,noatime,mode=0755 0 0

and my df has the folowing entries:
tmpfs 972696 1512 971184 1% /var/log
tmpfs 972696 0 972696 0% /var/tmp

Which all seem to work OK. I'll have a look at log2ram and see if it of any use to me...