Managing File Systems in Oracle® Solaris 11.2

Exit Print View

Updated: July 2014
 
 

How to Mount a File System (/etc/vfstab File)

  1. Become an administrator.

    For more information, see Using Your Assigned Administrative Rights in Securing Users and Processes in Oracle Solaris 11.2 .

  2. Mount a file system listed in the /etc/vfstab file.
    # mount /mount-point

    where /mount-point specifies an entry in the mount point or device to mount field in the /etc/vfstab file. It is usually easier to specify the mount point.

Example 2-8  Mounting a File System (/etc/vfstab File)

The following example shows how to mount the local /legacy file system that is listed in the /etc/vfstab file.

# mount /legacy
Example 2-9  Mounting All File Systems (/etc/vfstab File)

The following example shows the messages that are displayed when you use the mountall command and the file systems are already mounted.

# mountall
mount: /tmp is already mounted or swap is busy

The following example shows how to mount all the local systems that are listed in the /etc/vfstab file.

# mountall -l

The following example shows how to mount all available ZFS file systems.

# zfs mount -a

The following example shows how to mount all the remote file systems that are listed in the /etc/vfstab file.

# mountall -r