The following table lists the commands in the /usr/sbin directory that you use to mount and unmount file systems.
Table 40–1 Commands for Mounting and Unmounting File Systems
Command |
Man Page |
Description |
---|---|---|
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. |
The mount and mountall commands will not 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 43, Checking UFS File System Consistency (Tasks) for information on how to check the file system.
The umount and umountall commands will 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.
If a program has a file open in that file system.
If the file system is shared.