System Administration Guide

How to Preserve a Temporary File System

You can preserve a TMPFS across reboots or unmounts by adding an entry to the /etc/vfstab file. Edit the file to add an entry like this, separating each field with a tab:


swap - mount-point  tmpfs   -  yes  -

mount-point

The default mount point directory. 


Caution - Caution -

Files in the TMPFS are not preserved; only the file system itself.


For more information about editing the /etc/vfstab file, see Chapter 28, Mounting and Unmounting File Systems (Tasks).