System Administration Guide: Basic Administration

How to Mount a UFS File System (mount Command)

  1. Become superuser or assume an equivalent role.

  2. 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.

  3. 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 40–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. 

Example—Mounting a UFS File System (mount Command)

The following example shows how to mount /dev/dsk/c0t3d0s7 on the /files1 directory.


# mount /dev/dsk/c0t3d0s7 /files1

Example—Mounting a UFS File System With Logging Enabled (mount Command)

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