The /etc/vfstab file describes every file system defined on the local computer. You can process the file using an editor.
The file systems for which yes is entered in the automnt column in the /etc/vfstab file are mounted automatically when POSIX starts up or when the mountall command is executed.
The entries in the file are also used to add any missing details for resource or mountpoint and mount options when a mount command is executed.
Corresponding entries are generated automatically in the /etc/vfstab file for ufs file systems which are defined using the POSIX installation program. The entries must be created manually for all other file systems (e.g. bs2fs or nfs file systems) when required.
In contrast to the /etc/mnttab file, execution of the mount and umount commands for the /etc/vfstab file has no effect. Corresponding entries are retained.
The fields in the table are separated by tabulators and/or blanks. A hyphen (–) indicates an empty entry in the field. The table contains the following fields:
Format
special | fsckdev | mountp | fstype | fsckpass | automnt | mntopts |
Defines the resource to be mounted. The following must be borne in mind in the case of (manual) entries for bs2fs file systems:
Name of the block-oriented device or of the resource of the character-oriented device.
Mount point: absolute path name of the directory in which the resource is to be mounted.
File system type.
The sequence number to be used for multiple fsck commands.
Specifies whether the resource is to be mounted automatically when POSIX starts up or by means of the mountall command (yes) or not (no).
List of options for mounting the file system, separated by commas. The options correspond to the spec_options of the mount command. |
Example
Enter the following in the POSIX shell: 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 - 172.25.86.64:/home2/froede/SHARE - /home/froede/RETSINA nfs - no soft PGOB0004:/home2/froede/SHARE - /home/froede/PGOB0004 nfs - no soft /dev/dsk/4 /dev/rdsk/4 /home/froede ufs 1 yes - /dev/dsk/10 /dev/rdsk/10 /home/gast ufs 1 yes - /dev/dsk/13 /dev/rdsk/13 /mnt/ascii ufs 1 no - /dev/dsk/8 /dev/rdsk/8 /mnt/dat1 ufs 1 no - /dev/dsk/23 /dev/rdsk/23 /bs2fscont ufs 1 no - /dev/dsk/24 /dev/rdsk/24 /home/bach/mount3 ufs 1 no - /dev/dsk/25 /dev/rdsk/25 /home/bach/mountxxx ufs 1 no - /dev/dsk/26 /dev/rdsk/26 /home/bach/mountyyy ufs 1 no - /dev/dsk/5 /dev/rdsk/5 /home/bach ufs 1 yes - /dev/dsk/2 /dev/rdsk/2 /home/bach/mount99 ufs 1 yes -o /dev/dsk/6 /dev/rdsk/6 /suderlan ufs 1 no - :V70A:$BACH.ASS.*.S - /home/bach/bs2.1 bs2fs - yes ftyp=binary :V70A:$BACH.CCC.*.C - /home/bs2.2 bs2fs - yes ftyp=text :V70A:$BACH.PLAMLIB* - /home/bach/bs2.2 bs2fs - yes ftyp=textbin :V70A:$BACH.SEM*.C - /home/bs2000 bs2fs - yes -