An entry in the /etc/vfstab file has seven fields, which are described in Table 28-3.
Table 28-3 Field Descriptions of the /etc/vfstab File
Field Name |
Description |
---|---|
device to mount |
The device to mount can be:
|
device to fsck |
The raw (character) special device that corresponds to the file system identified by the device to mount field (for example, /dev/rdsk/c0t0d0s0). This determines the raw interface that is used by fsck. Use a dash (-) when there is no applicable device, such as for a read-only file system or a remote file system. |
mount point |
The default mount point directory (for example, /usr for /dev/dsk/c0t0d0s6).
|
FS type |
The type of file system identified by the device to mount field. |
fsck pass |
The pass number used by fsck to decide whether to check a file system. When the field contains a dash (-), the file system is not checked. When the field contains a value greater than zero, the file system is checked; non-UFS file systems with a zero value for fsck pass are checked. For UFS file systems only, when the field contains a zero, the file system is not checked. When fsck is run on multiple UFS file systems that have fsck pass values greater than one and the preen option (-o p) is used, fsck automatically checks the file systems on different disks in parallel to maximize efficiency. When the field contains a value of 1, the file system is checked sequentially. Otherwise, the value of the pass number does not have any effect. In SunOS system software, the fsck pass field does not explicitly specify the order in which file systems are checked. |
mount at boot |
Set to yes or no for whether the file system should be automatically mounted by mountall when the system is booted. Note that this field has nothing to do with AutoFS. |
mount options |
A list of comma-separated options (with no spaces) that are used in mounting the file system. Use a dash (-) to show no options. See mount(1M) for a list of the available options. |
You must have an entry in each field in the /etc/vfstab file. If there is no value for the field, be sure to enter a dash (-).