MOUNT_UFS(8) | Maintenance Commands and Procedures | MOUNT_UFS(8) |
mount_ufs - mount ufs file systems
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.
The ufs file system supports direct mounting of files containing the file system as well as block devices. See mount(8) and lofiadm(8).
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(8).
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(8) for the list of supported generic_options.
The following options are supported:
-o specific_options
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(8)) 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.
m
noatime
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.
nosec
onerror = action
quota
remount
rq
xattr | noxattr
-O
Example 1 Turning Off (and On) Logging
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.
/etc/mnttab
/etc/vfstab
getfacl(1), fcntl(2), mount(2), stat(2), mnttab(5), vfstab(5), attributes(7), fsattr(7), largefile(7), fsck(8), fsck_ufs(8), lofiadm(8), mount(8), mountall(8)
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 |