Become superuser or assume an equivalent role.
Create a mount point for the file system to be mounted, if necessary.
# mkdir /mount-point |
There must be a mount point on the local system to mount a file system. A mount point is a directory to which the mounted file system is attached.
Mount the UFS file system.
# mount [-o mount-options] /dev/dsk/device-name /mount-point |
-o mount-options |
Specifies mount options that you can use to mount a UFS file system. For a list of options, see Table 39–2 or mount_ufs(1M). |
/dev/dsk/device-name |
Specifies the disk device name for the slice that contains the file system (for example, /dev/dsk/c0t3d0s7). To get slice information for a disk, see How to Display Disk Slice Information. |
/mount-point |
Specifies the directory on which to mount the file system. |
The following example shows how to mount /dev/dsk/c0t3d0s7 on the /files1 directory.
# mount /dev/dsk/c0t3d0s7 /files1 |
UFS logging eliminates file system inconsistency, which can significantly reduce the time of system reboots. The following example shows how to mount /dev/dsk/c0t3d0s7 on the /files1 directory with logging enabled.
# mount -o logging /dev/dsk/c0t3d0s7 /files1 |