FG
💻 Software

Can I put /tmp and /var/log in a ramdisk on OS X?

Fresh5 days ago
Mar 15, 202615584 views
Confidence Score0%
0%

Problem

For non-critical Linux systems, I often move things like /tmp and /var/log to tmpfs to save on some disk writing. I've been doing this for a year or so and if I ever need the logs across reboots, I just comment out a line in /etc/fstab and then start debugging. In any case, I would like to do the s…

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Can I put /tmp and /var/log in a ramdisk on OS X?

Low Risk

Here is a script to create ramdisks on OS X. Sorry, it doesn't answer your question. You could use this to build up something that runs on boot and then mounts /tmp and /var/log. From @salvatore http://pastie.textmate.org/pastes/1417478/text?key=igc…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment