Do ramdisk setting work?

Started by marktom, January 05, 2022, 11:56:25 AM

Previous topic - Next topic
Hi folks,

System->Settings->Miscellaneous

/var RAM disk    Use memory file system for /var checked
/tmp RAM disk    Use memory file system for /tmp checked

and rebooted.

but fstab looks like:

# Device   Mountpoint   FStype   Options   Dump   Pass#
/dev/gpt/rootfs   /      ufs   rw   1   1

System:
OPNsense 21.7.1-amd64
FreeBSD 12.1-RELEASE-p19-HBSD
OpenSSL 1.1.1k 25 Mar 2021



January 05, 2022, 02:06:02 PM #1 Last Edit: January 06, 2022, 11:07:02 AM by 8191
Hi,
I've also checked both settings and my mount points look like this:


mf@houston:~ % mount
/dev/gpt/rootfs on / (ufs, local, noatime, soft-updates)
devfs on /dev (devfs, local, multilabel)
tmpfs on /var (tmpfs, local)
tmpfs on /tmp (tmpfs, local)
devfs on /var/dhcpd/dev (devfs, local, multilabel)
devfs on /var/unbound/dev (devfs, local, multilabel)


Checked on OPNsense 21.7.7 (but having this set since many releases).

As a general rule of thumb we don't ever touch /etc/fstab except for reading -- if this is your only reference point it would certainly look like nothing happens.


Cheers,
Franco