|
|
|
|
|
by anon___
1221 days ago
|
|
I have more RAM than I need, and just the other day I set up a RAM disk to put my /tmp directory on. My comic reader unpacks huge rar and zip archives into /tmp at every run, and I don't want it to wear out my SSD. I put this line in /etc/fstab: none /tmp tmpfs defaults,size=4G 0 0
It works like a charm. And in the worst case, if I run out of RAM anyway, it readily swaps out. |
|
You might consider these common mount options for a little extra security:
(and potential headaches, to be fair)While /tmp is a great world-writable place, these restrict it from being home to executables/devices -- common sources of abuse