JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
System Administration Guide: Devices and File Systems     Oracle Solaris 11 Express 11/10
search filter icon
search icon

Document Information

Preface

1.  Managing Removable Media (Overview)

2.  Managing Removable Media (Tasks)

3.  Accessing Removable Media (Tasks)

4.  Writing CDs and DVDs (Tasks)

5.  Managing Devices (Overview/Tasks)

6.  Dynamically Configuring Devices (Tasks)

7.  Using USB Devices (Overview)

8.  Using USB Devices (Tasks)

9.  Using InfiniBand Devices (Overview/Tasks)

10.  Managing Disks (Overview)

11.  Administering Disks (Tasks)

12.  SPARC: Adding a Disk (Tasks)

13.  x86: Adding a Disk (Tasks)

14.  Configuring iSCSI Storage Devices With COMSTAR

15.  Configuring and Managing the Solaris Internet Storage Name Service (iSNS)

16.  Managing Disk Use (Tasks)

17.  The format Utility (Reference)

18.  Managing File Systems (Overview)

19.  Creating ZFS, UFS, TMPFS, and LOFS File Systems (Tasks)

20.  Mounting and Unmounting File Systems (Tasks)

Overview of Mounting File Systems

Commands for Mounting and Unmounting UFS File Systems

Mounting File Systems

How to Determine Which File Systems Are Mounted

How to Add an Entry to the /etc/vfstab File

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

How to Mount a UFS File System (mount Command)

How to Mount a UFS File System Without Large Files (mount Command)

How to Mount an NFS File System (mount Command)

x86: How to Mount a PCFS (DOS) File System From a Hard Disk (mount Command)

Unmounting UFS File Systems

Prerequisites for Unmounting File Systems

How to Verify a File System is Unmounted

How to Stop All Processes Accessing a File System

How to Unmount a File System

21.  Configuring Additional Swap Space (Tasks)

22.  Copying Files and File Systems (Tasks)

23.  Managing Tape Drives (Tasks)

Index

Overview of Mounting File Systems

After you create a UFS file system, you need to make it available to the system so that you can use it. You make a UFS file system available by mounting it, which attaches the file system to the system directory tree at the specified mount point. The root (/) file system is always mounted.

The following table provides guidelines on mounting file systems based on how you use them.

Mount Type Needed
Suggested Mount Method
Local or remote file systems that need to be mounted infrequently
The mount command that you type manually from the command line.
Local UFS file systems that need to be mounted frequently. Local ZFS file systems are automatically mounted by an SMF service.
The /etc/vfstab file, which mounts the file system automatically when the system is booted in multi user state.
Remote UFS file systems, such as home directories, that need to be mounted frequently
  • The /etc/vfstab file, which automatically mounts the file system when the system is booted in multiuser state.
  • autofs, which automatically mounts the file system when you access it or unmounts the file system when you change to another directory.

For more information on mounting removable media, see Chapter 1, Managing Removable Media (Overview).

Commands for Mounting and Unmounting UFS File Systems

The following table lists the commands in the /usr/sbin directory that you use to mount and unmount UFS file systems.

Table 20-1 Commands for Mounting and Unmounting UFS File Systems

Command
Description
Man Page
mount
Mounts file systems and remote resources.
mountall
Mounts all file systems that are specified in the /etc/vfstab file. The mountall command runs automatically when the system enters multiuser mode.
umount
Unmounts file systems and remote resources.
umountall
Unmounts all file systems that are specified in the /etc/vfstab file.

ZFS file systems are mounted automatically when they are created. You do not need to create an /etc/vfstab entry for ZFS file systems unless you prefer to mount them by using the above legacy mount commands.

For more information about mounting and unmounting ZFS file systems, see the Oracle Solaris ZFS Administration Guide.

For a complete list of mount options for each file system type, refer to the specific mount man page (for example, mount_ufs(1M)). For information about mounting ZFS file systems, see zfs(1M).

Keep the following key points in mind when using the mount and mountall commands: