Raspberry Pi move log to RAM

In order to lower the number of writes to the SD-card, it is wise to move the log life to a tmpfs mount in RAM.

i found this site that explains how to do it: https://domoticproject.com/extending-life-raspberry-pi-sd-card/

As a result of this , the MQTT service running on my Domoticz Pi, raised an error. Error: MQTT: Failed to start, return code: 14 (Check IP/Port)

Apperantly the dir /var/log/mosquitto can not be created on RAM .

A suggested solution that I need to test is in: https://www.raspberrypi.org/forums/viewtopic.php?t=34820

Leave a Reply

Your email address will not be published. Required fields are marked *