mount(8ufs)
Name
mount − mount the local ULTRIX File System (UFS)
Syntax
/etc/mount [ −t ufs −r ] [ options ] device directory
Description
The mount() command announces to the system that a file system is present on the device device. The specified device must be a local device. The file directory must exist and it must be a directory. It becomes the name of the newly mounted file system.
To further protect from system crashes, only file systems that have been cleanly checked by fsck() are mounted. In emergency situations, the superuser can override this requirement by using the force option as shown below.
General users can mount file systems with certain restrictions in addition to those listed in mount(.). The file system must have the clean byte set. To ensure the clean byte is set, run the fsck() command on the file system first. You can also try the mount and if it fails, then run fsck and then try the mount again.
Note that the user must have execute permissions on the device.
A successful ufs-mount may generate the following warning message:
"Warning, device has exceeded xxx threshold, fsck(8) is advised"
where xxx is which metric was exceeded to cause the clean byte timeout factor to reach zero. See fsck() for an explanation of the timeout algorithm.
Physically write-protected disks and magnetic tape file systems must be mounted read only or an error will occur at mount time.
Options
See the mount() reference page for a description of the −t option.
−o optionsSpecifies options as a sequence of comma-separated words from the list below.
forceThe superuser can force the mounting of unclean file systems. You should use the force flag only in single-user mode when repairing or recovering damaged file systems.
nodevBlock and character special devices cannot be accessed from this file system. If you are concerned with nfs security, all ufs file systems that will be exported via nfs should be ufs mounted with the nodev option.
noexecBinaries cannot be executed from this file system.
nosuidThe setuid and setgid programs may not be executed from this file system. If you are concerned with nfs security, all ufs file systems that will be exported via nfs with the −r=0 option specified in the /etc/exports file should be ufs mounted with the nosuid option.
pgthresh=##
Set the paging threshold for this file system in kilobytes. The default is 64 kilobytes.
syncAll writes are immediately written to disk (synchronously) as well as to the buffer cache. For the sync option to be meaningful, the file system must be mounted with write permissions.
−rMounts the device on directory read only.
Restrictions
The /etc/ufs_mount command should only be invoked by the mount command. Users (and superusers) should not invoke the ufs_mount command.
Examples
The /etc/mount command calls ufs_mount to do its work and is the preferred interface. A sample mount command is:
# mount −t ufs −o nodev,nosuid,noexec,pgthresh=100 /dev/ra0g /usr
Files
/etc/ufs_mount UFS-specific mount program