The following table lists the commands in the /usr/sbin directory that you use to mount and unmount UFS file systems.
Table 19–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. |
For more information about mounting and unmounting ZFS file systems, see the Solaris ZFS Administration Guide.
Keep the following key points in mind when using the mount and mountall commands:
The mount and mountall commands cannot mount a read/write file system that has known inconsistencies. If you receive an error message from the mount or mountall command, you might need to check the file system. See Chapter 22, Checking UFS File System Consistency (Tasks) for information on how to check the file system.
The umount and umountall commands do not unmount a file system that is busy. A file system is considered busy if one of the following is true:
A user is accessing a file or directory in the file system.
A program has a file open in that file system.
The file system is shared.
You can use the remount option when remounting from read-only access to read-write access only. You cannot remount from read-write access to read-only access.