Raspberry Pi: Use RAMDISK/tmpfs for /tmp directory

Save a bit of SD card wear-and-tear and symlink the /tmp folder to RAM. Issue the following in your CLI:

sudo cp /usr/share/systemd/tmp.mount /etc/systemd/system/tmp.mount
sudo systemctl enable tmp.mount
sudo systemctl start tmp.mount

Reboot and we’re done!


Thanks for reading! Please consider Buying me a Coffee or checking out Colibri!