Raspberry Pi: Difference between revisions
Created page with " == Mounting <code>/var/log</code> as tmpfs == Append to the <code>/etc/fstab</code> with the following line. tmpfs /var/log tmpfs nodev,nosuid,mode=0755,size=50m..." |
No edit summary |
||
| Line 1: | Line 1: | ||
== Mounting <code>/var/log</code> as tmpfs == | == Miscellaneous == | ||
=== Control Status LEDs === | |||
See: http://www.midwesternmac.com/blogs/jeff-geerling/controlling-pwr-act-leds-raspberry-pi | |||
=== Mounting <code>/var/log</code> as tmpfs === | |||
Append to the <code>/etc/fstab</code> with the following line. | Append to the <code>/etc/fstab</code> with the following line. | ||
Revision as of 23:13, 1 January 2016
Miscellaneous
Control Status LEDs
See: http://www.midwesternmac.com/blogs/jeff-geerling/controlling-pwr-act-leds-raspberry-pi
Mounting /var/log as tmpfs
Append to the /etc/fstab with the following line.
tmpfs /var/log tmpfs nodev,nosuid,mode=0755,size=50m 0 0
This will mount /var/log as a 50MB ramdisk. If your system is using systemd, this will break systemd-journald. To fix it, you will need to create a startup script after the mount has completed that creates the journald's directory in /var/log/journal/.
Reboot the Pi for the changes to take affect, or run mount -a which will mount the ramdisk to /var/log immediately, though you'll need to restart any services that has handles to any files there.
Why would you want to do this? To limit the amount of writes that is made to the SD card to prevent premature wearing.