OPNsense Forum

Archive => 21.7 Legacy Series => Topic started by: marktom on January 05, 2022, 11:56:25 am

Title: Do ramdisk setting work?
Post by: marktom on January 05, 2022, 11:56:25 am
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


Title: Do ramdisk setting work?
Post by: 8191 on January 05, 2022, 02:06:02 pm
Hi,
I've also checked both settings and my mount points look like this:

Code: [Select]
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).
Title: Re: Do ramdisk setting work?
Post by: franco on January 06, 2022, 08:42:34 am
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