The file /etc/vfstab describes default values for each file system defined on the local computer. The file can be edited using edt or vi.
The file systems which are listed in the file /etc/vfstab with automnt=yes, are mounted on starting POSIX or if the mountall command is entered without specifying a file name (or "-"). File systems of type nfs are mounted by means of mountall -F nfs when starting NFS.
The fields in the table are separated by blanks. A hyphen (-) indicates a blank entry in the respective field. The table contains the following fields:
Format
special fsckdev mountp fstype fsckpass automnt mntopts
Describes the resource to be mounted. For file systems of type nfs, special has the following form: server:pathname where server is the computer name of the NFS server making the resource available and pathname is the absolute path name of the resource. |
Name of the character-oriented device. When mounting remote resources, this parameter is not supported and must be a hyphen (-). |
Mount point. Absolute path name of the directory in which the resource is to be mounted. |
File system type. For remote resources nfs must be entered. |
The pass number to be used for multiple fsck commands. When mounting remote resources, this parameter is not supported and must be a hyphen (-). |
Specifies whether (yes) or not (no) the resource is to be mounted automatically by mountall at POSIX startup time. File systems of type nfs are not mounted at POSIX startup time but by the command mountall -F nfs at NFS startup. |
List of options separated by commas for mounting the file system. The options are the same as the specific_options of the mount command. |
Example
$ cat /etc/vfstab /dev/root /dev/rroot / ufs 1 yes - /proc - /proc proc - no - /dev/fd - /dev/fd fdfs - no - /dev/dsk/3 /dev/rdsk/3 /var ufs 1 yes - /dev/dsk/2 /dev/rdsk/2 /km1 ufs 1 yes - /dev/dsk/4 /dev/rdsk/4 /nfs1 ufs 1 yes - /dev/dsk/5 /dev/rdsk/5 /tmp1 ufs 1 yes - /dev/dsk/6 /dev/rdsk/6 /vsx ufs 1 no - /dev/dsk/7 /dev/rdsk/7 /vsx-ro ufs 1 no - /dev/dsk/8 /dev/rdsk/8 /usr1 ufs 1 yes - /dev/dsk/9 /dev/rdsk/9 /usr2 ufs 1 yes - /dev/dsk/10 /dev/rdsk/10 /home1 ufs 1 no - /dev/dsk/11 /dev/rdsk/11 /home2 ufs 1 no - /dev/dsk/12 /dev/rdsk/12 /home3 ufs 1 no - /dev/dsk/13 /dev/rdsk/13 /home4 ufs 1 no - /dev/dsk/14 /dev/rdsk/14 /home5 ufs 1 no - /dev/dsk/15 /dev/rdsk/15 /home6 ufs 1 no - /dev/dsk/16 /dev/rdsk/16 /oldroot ufs 1 no - /dev/dsk/17 /dev/rdsk/17 /ascii ufs 1 yes - tanz:/usr/local - /usr/local/tmp nfs - yes ro