Centralizes file system characteristics.
A file system is a complete directory structure, including a root ( / ) directory and any directories and files beneath it. A file system is confined to a logical volume. All of the information about the file system is centralized in the /etc/filesystems file. Most of the file system maintenance commands take their defaults from this file. The file is organized into stanza names that are file system names and contents that are attribute-value pairs specifying characteristics of the file system.
The filesystems file serves two purposes:
File System Attributes
Each stanza names the directory where the file system is normally mounted. The file system attributes specify all the parameters of the file system. The attributes currently used are:
Attribute | Description |
---|---|
account | Used by the dodisk command to determine the file systems to be processed by the accounting system. This value can be either the True or False value. |
boot | Used by the mkfs command to initialize the boot block of a new file system. This specifies the name of the load module to be placed into the first block of the file system. |
check | Used by the fsck command to determine the default file systems to be checked. The True value enables checking while the False value disables checking. If a number, rather than the True value is specified, the file system is checked in the specified pass of checking. Multiple pass checking, described in the fsck command, permits file systems on different drives to be checked in parallel. |
dev | Identifies, for local mounts, either the block special file where the file system resides or the file or directory to be mounted. System management utilities use this attribute to map file system names to the corresponding device names. For remote mounts, it identifies the file or directory to be mounted. |
free | This value can be either true or false. Obsolete and ignored. |
mount | Used
by the mount command to determine whether this file system
should be mounted by default. The possible values of the mount attribute are:
|
nodename | Used by the mount command to determine which node contains the remote file system. If this attribute is not present, the mount is a local mount. The value of the nodename attribute should be a valid node nickname. This value can be overridden with the mount -n command. |
options | Comma-separated list of keywords that have meaning specific to a file system type. The options are passed to the file system at mount time. |
size | Used by the mkfs command for reference and to build the file system. The value is the number of 512-byte blocks in the file system. |
type | Used to group related mounts. When the mount -t String command is issued, all of the currently unmounted file systems with a type attribute equal to the String parameter are mounted. |
vfs | Specifies the type of mount. For example, vfs=nfs specifies the virtual file system being mounted is an NFS file system. |
vol | Used by the mkfs command when initializing the label on a new file system. The value is a volume or pack label using a maximum of 6 characters. |
log | The LVName must be the full path name of the filesystem logging logical volume name to which log data is written as this file system is modified. This is only valid for journaled file systems. |
*
* File system information
*
default:
vol = "OS"
mount = false
check = false
/:
dev = /dev/hd4
vol = "root"
mount = automatic
check = true
log = /dev/hd8
/home:
dev = /dev/hd1
vol = "u"
mount = true
check = true
log = /dev/hd8
/home/joe/1:
dev = /home/joe/1
nodename = vance
vfs = nfs
/usr:
dev = /dev/hd2
vol = "usr"
mount = true
check = true
log = /dev/hd8
/tmp:
dev = /dev/hd3
vol = "tmp"
mount = true
check = true
log = dev/hd8
Item | Description |
---|---|
/etc/filesystems | Lists the known file systems and defines their characteristics. |
/etc/vfs | Contains descriptions of virtual file system types. |