User Tools

Site Tools


howtos:tmp_as_ramdisk

As /tmp is cleaned out on every boot why use a (slow) disk to hold it. Many computers today hold enough memory that most of it isn't in use anyway. By creating a ramdisk for it instead you gain speed and less wear and tear on the SSD disk.

Edit the /etc/fstab and insert:

tmpfs /tmp tmpfs defaults,noatime,mode=1777 0 0

The next time you boot you will use your memory for /tmp.

howtos/tmp_as_ramdisk.txt · Last modified: 02/12/2018 20:34 by 127.0.0.1