System Administration Guide, Volume 1

How to Mount a File System in a Cache by Editing the /etc/vfstab File

  1. Become superuser.

  2. Using an editor, specify the file systems to be mounted in the /etc/vfstab file:


    #device     device             mount  FS    fsck  mount   mount
    #to mount   to fsck            point  type  pass  at boot options
    #
    /dev/dsk/devicename /dev/rdsk/devicename /mount-point cachefs  2    yes  -

    This line represents the new entry.

  3. Mount the cached file system using the mount command, as follows:


    # mount /mount-point
    

    or reboot.

Example--Mounting a File System in a Cache by Editing the /etc/vfstab File

The following example shows the /etc/vfstab entry for the cache file system.


 
#device           device             mount      FS    fsck  mount   mount
#to mount         to fsck            point      type  pass  at boot options
#
/dev/dsk/c0t1d0s0 /dev/rdsk/c0t1d0s0 /usr/local cachefs  2   yes     -

The /usr/local directory is mounted in the cache directory.


# mount /usr/local