Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ filesys(F) — OpenDesktop 3.0.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

mount(ADM)

mnt(C)

sysadmsh(ADM)


 filesys(F)                      19 June 1992                      filesys(F)


 Name

    filesys - default information for mounting filesystems

 Description

    /etc/default/filesys contains information for mounting filesystems in the
    following format:

       name=value [name=value] ...

    value may contain white spaces if quoted, and newlines may be escaped
    with a backslash.

    mnt (see mnt(C)) and sysadmsh(ADM) use the information in the
    /etc/default/filesys when the system comes up as multi-user.

 Options

    The following options can be defined in the /etc/default/filesys entry
    for a filesystem:

    bdev=/dev/device           Name of block device associated with the file-
                               system.  If fstyp=NFS the device should be of
                               the form:  bdev=hostname:pathname.

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

    mountdir=/directory        The directory the filesystem is to be mounted
                               on.

    desc=name                  A string describing the filesystem.

    passwd=string              An optional password prompted for at mount
                               request time.  Cannot be a simple string; must
                               be in the format permitted by /etc/passwd.
                               (See ``Notes''.)

    fsck=yes, no, dirty, prompt
                               If yes/no, tells explicitly whether or not to
                               run fsck.  If dirty, fsck is run only if the
                               filesystem requires cleaning.  If prompt, the
                               user is prompted for a choice.  If no entry is
                               given, the default value is dirty.

    fsckflags=flags            Any flags to be passed to fsck.

    rcfsck=yes, no, dirty, prompt
                               Similar to fsck entry, but only applies when
                               the -r flag is passed.

    maxcleans=n                The number of times to repeat cleaning of a
                               dirty filesystem before giving up.  If unde-
                               fined, default is 4.

    mount=yes, no, prompt      If yes or no, users are allowed or disallowed
                               to mount the filesystem, respectively.  If
                               prompt, the user specifies whether the file-
                               system should be mounted.

    rcmount=yes, no, prompt    If yes, the filesystem is mounted by /etc/rc2
                               when the system comes up as multiuser.  If no,
                               the filesystem is never mounted by /etc/rc2.
                               With prompt, a query is displayed at boot time
                               to mount the filesystem.

    mountflags=flags           Any flags to be passed to mount.

    prep=yes, no, prompt       Indicates whether any prepcmd entry should
                               always be executed, never executed, or exe-
                               cuted as specified by the user.

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

    init=yes, no, prompt       Indicates whether an initcmd entry should
                               always be executed, never be executed, or exe-
                               cuted as specified by the user.

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

    fstyp=type                 Defines the filesystem type. Available types
                               include NFS, S51K, XENIX, and DOS.

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

    Any entries containing spaces, tabs, or new lines must be contained in
    double quotes (").

    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.

 Note

    The NFS options are only valid if NFS is installed; refer to your NFS
    documentation for mount options that are specific to NFS.

 See also

    mount(ADM), mnt(C), sysadmsh(ADM)


Typewritten Software • bear@typewritten.org • Edmonds, WA 98026