Use Ramdisk without reboot
-
I can see that in System settings we can check the 'use ram disk for /tmp and /var' which is awesome but it clearly states that a reboot is required.
Is there a way (in command-line or a like) to safely set up ramdisk without the need to do a full reboot?
-
Short answer : no.
/var/ is heavily used by the system, see for yourself.
Nearly every process has to be stopped first before the underlying file structure is changed.This is not a "lets' add a D:\ drive as a ram disk" situation, it replaces the actual /var/ and /tmp/
-
You could setup a ramdisk and mount it at the console for some other purpose.
You can't set /tmp and/or /var to be ramdisks without rebooting.
Steve
Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.