Please teach me how to set up tmpfs to protect SD card from heavy writes.
I want to use RAM disk for:
/tmp/*
/var/log/*
I want RPi to save files to ram disk, not a SD card.
~# help?
Re: How to setup tmpfs(ramdisk?) to protect SD card?
Specify it in /etc/fstab?
See http://lxr.linux.no/#linux+v3.19.1/Docu ... /tmpfs.txt
See http://lxr.linux.no/#linux+v3.19.1/Docu ... /tmpfs.txt
Re: How to setup tmpfs(ramdisk?) to protect SD card?
You're not helping.
I need a step-to-step guide, following from what to install.
(Other people will found this thread useful, if you can teach me how to do it)
I need a step-to-step guide, following from what to install.
(Other people will found this thread useful, if you can teach me how to do it)
Re: How to setup tmpfs(ramdisk?) to protect SD card?
Yes, he is.hune6imo wrote:You're not helping.
You don't need to install anything.I need a step-to-step guide, following from what to install.
Look at the link given. It even shows you an example of using tmpfs for /tmp.
Re: How to setup tmpfs(ramdisk?) to protect SD card?
Add the following to /etc/fstab:-
sudo nano /etc/fstab
sudo nano /etc/fstab
Code: Select all
tmpfs /tmp tmpfs defaults,noatime 0 0
tmpfs /var/log tmpfs defaults,noatime,size=16m 0 0