We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I'm building an app that will run in processing on a Pi2, hopefully for a long time. To maximize the life of the SD card, I'm trying to minimize writes to the card, log files and stuff are written to a tmpfs file system, but I discovered that the console directory in the hidden .processing directory contains log files of all the console output. That directory is within the pi users home directory, which I've kept writable.
Is there a way within processing to set where the console directory lives? I think I could also create a link to a console directory that lives in the tmp directory, and that would redirect writes to new file located on a tmpfs disk.
Any other ideas would be greatly appreciated.
Thanks, Nathan
Answers
So far, I've added a line to /etc/fstab to put the /home/pi/.processing/console directory on a tmpfs filesystem. I'll also minimize printing to the console in the file version of the app, so I shouldn't have to worry about the virtual disk filling up.