Solved Question re: tmpfs and zfs

Greetings all,

The installation of FreeBSD 11.1 created the following zfs system:
Code:
zfs list
NAME                 USED  AVAIL  REFER  MOUNTPOINT
bootpool             128M  1.73G   128M  /bootpool
zroot                301M   219G    88K  /zroot
zroot/ROOT           299M   219G    88K  none
zroot/ROOT/default   299M   219G   299M  /
zroot/tmp             88K   219G    88K  /tmp
zroot/usr            352K   219G    88K  /usr
zroot/usr/home        88K   219G    88K  /usr/home
zroot/usr/ports       88K   219G    88K  /usr/ports
zroot/usr/src         88K   219G    88K  /usr/src
zroot/var            620K   219G    88K  /var
zroot/var/audit       88K   219G    88K  /var/audit
zroot/var/crash       88K   219G    88K  /var/crash
zroot/var/log        180K   219G   180K  /var/log
zroot/var/mail        88K   219G    88K  /var/mail
zroot/var/tmp         88K   219G    88K  /var/tmp
I would like to use tmpfs(5). Do I remove the zroot/tmp and create an /etc/fstab entry as follows:
Code:
# Device                Mountpoint      FStype  Options         Dump    Pass#
tmpfs                   /tmp            tmpfs   rw,mode=01777   0       0
What if I wanted all the temporary files, e.g., the zroot/var/tmp to use the tmpfs(5)?

Kindest regards,

M
 
Hi SirDice,

thank you for the answer and specifically for the reference to hier(7). Until now, it has been my understanding that all tmp stores are cleared on reboot.

Kindest regards,

M
 
Back
Top