mount -F ufs [generic_options] [-o specific_options] [-O] special | mount_point
mount -F ufs [generic_options] [-o specific_options] [-O] special mount_point
The mount utility attaches a ufs file system to the file system hierarchy at the mount_point, which is the pathname of a directory. If mount_point has any contents prior to the mount operation, these are hidden until the file system is unmounted.
If mount is invoked with special or mount_point as the only arguments, mount will search /etc/vfstab to fill in the missing arguments, including the specific_options. See mount(1M).
If special and mount_point are specified without any specific_options, the default is rw.
If the directory on which a file system is to be mounted is a symbolic link, the file system is mounted on the directory to which the symbolic link refers, rather than on top of the symbolic link itself.
See mount(1M) for the list of supported generic_options.
The following options are supported:
dfratime | nodfratime
If power management is enabled on the system, do not set nodfratime unless noatime is also set. If you set nodfratime without setting noatime, the disk is spun up every time a file within a file system on the disk is accessed - even if the file is not modified.
forcedirectio | noforcedirectio
global | noglobal
intr | nointr
largefiles | nolargefiles
If nolargefiles is specified, mount will fail for ufs if the file system to be mounted has contained a large file (a file whose size is greater than or equal to 2 Gbyte) since the last invocation of fsck on the file system. The large file need not be present in the file system at the time of the mount for the mount to fail; it could have been created previously and destroyed. Invoking fsck (see fsck_ufs(1M)) on the file system will reset the file system state if no large files are present. After invoking fsck, a successful mount of the file system with nolargefiles specified indicates the absence of large files in the file system; an unsuccessful mount attempt indicates the presence of at least one large file.
logging | nologging
The default behavior is logging for all UFS file systems.
The log is allocated from free blocks in the file system, and is sized approximately 1 Mbyte per 1 Gbyte of file system, up to a maximum of 256 Mbytes. The log size may be larger (up to a maximum of 512 Mbytes) dependent upon the number of cylinder groups present in the file system.
Logging is enabled on any UFS file system, including root (/), except under the following conditions:
# mount /dev/dsk/c0t4d0s0 /mnt /mnt: No space left on device Could not enable logging for /mnt on /dev/dsk/c0t4d0s0.
noatime turns off access time recording regardless of dfratime or nodfratime.
The POSIX standard requires that access times be marked on files. -noatime ignores them unless the file is also modified.
onerror = action
xattr | noxattr
The following command turns off logging on an already mounted file system. The subsequent command restores logging.
# mount -F ufs -o remount,nologging /export # (absence of message indicates success) # mount -F ufs -o remount,logging /export
In the preceding commands, the -F ufs option is not necessary.
Since the root (/) file system is mounted read-only by the kernel during the boot process, only the remount option (and options that can be used in conjunction with remount) affect the root (/) entry in the /etc/vfstab file.
|June 22, 2009||OmniOS|