DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH
 

filesys(F)


filesys -- default information for mounting filesystems

Format

keyword=value [keyword=value] ...

Description

The filesys file (/etc/default/filesys) contains information for mounting filesystems.

The information for each filesystem is stored on one virtual line as several assignments to keywords; newlines may be escaped with a backslash. The assigned value may contain spaces, tabs, or newlines if it is quoted using double quotes (").

The mnt command uses the information in the /etc/default/filesys when the system comes up as multiuser.

The following keywords can be defined:


bdev=/dev/device
Name of block device associated with the filesystem.

If fstyp=NFS is set, the entry should be of the form: bdev=host:filesystem. The filesystem pathname must start with a ``/''.

If fstyp=NUCFS is set, the entry should be of the form: bdev=server:volume. The volume name must not start with a ``/''.


cdev=/dev/device
Name of character (raw) device associated with the filesystem.

This entry is not needed for remote (NFS and NUCFS) filesystems.


desc=name
A string describing the filesystem.

fsck=yes|no|dirty|prompt
yes and no specify explicitly whether fsck is to be run. dirty causes fsck to be run if the filesystem requires cleaning. prompt requires the user to choose whether to invoke fsck (default value is dirty).

This entry is not needed for remote (NFS and NUCFS) filesystems.


fsckflags=flags
Defines any flags to be passed to fsck (default value is -y).

This entry is not needed for remote (NFS and NUCFS) filesystems.


fstyp=type[,options...]
Defines the filesystem type. Available types include AFS, DOS, DTFS(TM), EAFS, HTFS(TM), NFS, NUCFS, S51K, and XENIX. Filesystem options used by mount may follow the type as a comma-separated list, for example:
bdev=/dev/cd0 cdev=/dev/rcd0 rcmount=no mountdir=/cdrom \
fstyp=HS,hide,lower
You can also specify the options using mntopts.

init=yes|no|prompt
Indicates whether any initcmd entry should always be executed, never executed, or executed as specified by the user (default value is no).

initcmd=command
Defines an optional, arbitrary shell command to be invoked immediately following a successful mount.

mntopts=option[,option...]
A comma-separated list of filesystem options used by mount, for example:
bdev=/dev/cd0 cdev=/dev/rcd0 rcmount=no mountdir=/cdrom fstyp=HS \
mntopts=hide,lower
The options should follow the filesystem type specified by fstyp.

mntopts should be used instead of nfsopts.


mount=yes|no|prompt
yes allows users to mount a filesystem; no forbids them from doing so. prompt causes the user to be asked whether the filesystem is to be mounted (default value is no).

mountdir=directory
The absolute pathname of the directory that the filesystem is to be mounted on.

mountflags=flags
For backwards compatibility, -r and -v are provided as mount-flags. For all other flags use the mntopts field.

nfsopts=opts
Defines NFS options for filesystems of type NFS. Available options are described in the mount(ADM) manual page.

mntopts supersedes nfsopts, and should be used instead.


prep=yes|no|prompt
Indicates whether any prepcmd entry should always be executed, never executed, or executed as specified by the user (default value is no).

prepcmd=command
Defines an arbitrary shell command to be invoked immediately following password check and prior to running fsck.

rcfsck=yes|no|dirty|prompt
Similar to the fsck entry, this controls whether mountall runs fsck on a filesystem when the system goes to multiuser mode (default value is dirty).

This entry is read by mnt when used with the -r option; it is not needed for remote (NFS or NUCFS) filesystems.


rcmount=yes|no|prompt
Similar to the mount entry, this controls whether mountall mounts a filesystem when the system goes to multiuser mode (default value is no).

This entry is read by mnt when either the -r or -n option is specified.

The only mandatory entries in /etc/default/filesys are bdev and mountdir. The prepcmd and initcmd options can be used to execute another command before or after mounting the filesystem. For example, initcmd could be defined to send mail to root whenever a given filesystem is mounted.

When invoked without arguments, mnt attempts to mount all filesystems that have the entries mount=yes or mount=prompt.

Limitations

The NFS and NUCFS options are only valid if NFS NUC services are installed and running on the system.

Files


/etc/default/filesys
full pathname of filesys

/etc/rc2.d/*
scripts run by /etc/rc2 when going to multiuser mode

See also

fsck(ADM), mnt(C), mount(ADM), mountall(ADM), rc2(ADM)
© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003