Raspberry Pi‎ > ‎

How to setup tmpfs as ramdisk to protect SD card

posted Dec 28, 2017, 7:26 PM by Chris G   [ updated Dec 28, 2017, 7:28 PM ]

How to setup tmpfs as ramdisk to protect SD card


https://www.raspberrypi.org/forums/viewtopic.php?t=107265

Add the following to /etc/fstab:-
sudo nano /etc/fstab


tmpfs /tmp  tmpfs defaults,noatime 0 0
tmpfs /var/log  tmpfs defaults,noatime,size=16m 0 0
Comments