[Next] [Previous] [Up] [Top] [Contents]

19.1.5 File System Mounting, SunOS 5.X

19.1.5.1 The mount table, /etc/vfstab

SunOS 5.X specifies it's mount table in /etc/vfstab, not /etc/fstab. The format has been changed a bit also. The fields in this table are:

A vfstab file might look something like the following. Each field must contain an entry, so where no option is called for a hyphen (-) is used.

#device device mount FS fsck mount mount

#to mount to fsck point type pass at boot options

/proc - /proc proc - no -

fd - /dev/fd fd - no -

swap - /tmp tmpfs - yes -

/dev/dsk/c0t3d0s0 /dev/rdsk/c0t3d0s0 / ufs 1 no -

/dev/dsk/c0t3d0s6 /dev/rdsk/c0t3d0s6 /usr ufs 2 no -

/dev/dsk/c0t3d0s5 /dev/rdsk/c0t3d0s5 /opt ufs 3 yes -

/dev/dsk/c0t3d0s1 - - swap - no -

/acs/nyssa/0/swapfile - - swap - no -

/dev/dsk/c0t6d0s0 - /cdrom ufs - no ro

tardis:/home/tardis - /home/tardis nfs - yes hard,intr,bg

The fsck pass value specifies whether or not the file system is checked. If this field contains a value of 1 or greater the file system is checked. Non ufs type file systems with a zero fsck pass value are checked. For ufs file systems if this value is zero (0) or hyphen (-) the file system is not checked. For values greater than 1 the files systems are checked in parallel if the preen option (-o p) is used with fsck (this is the default for ufs file systems in /sbin/rcS).

The list of mounted file systems is kept in the /etc/mnttab file.


Unix System Administration - 8 AUG 1996
[Next] [Previous] [Up] [Top] [Contents]