Last active
December 14, 2015 04:39
-
-
Save cldotdev/5029476 to your computer and use it in GitHub Desktop.
Mounting the temperary directories to DRAM. This can reduce writes to SSD.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Copy these snippets to /etc/fstab | |
| tmpfs /tmp tmpfs defaults,noatime,mode=1777 0 0 | |
| tmpfs /var/spool tmpfs defaults,noatime,mode=1777 0 0 | |
| tmpfs /var/tmp tmpfs defaults,noatime,mode=1777 0 0 | |
| tmpfs /var/log tmpfs defaults,noatime,mode=0755 0 0 | |
| tmpfs /home/XXX/.cache tmpfs defaults,noatime,mode=0775,uid=YYY,gid=ZZZ 0 0 | |
| # XXX = user name | |
| # Get YYY and ZZZ (eg. uid=1000, gid=1000) by typing the command: | |
| # $ id [user name] | |
| # in your bash shell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment