System Administration Guide: Basic Administration

Commands for Mounting and Unmounting File Systems

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

Table 39–1 Commands for Mounting and Unmounting File Systems

Command 

Man Page 

Description 

mount

mount(1M)

Mounts file systems and remote resources. 

mountall

mountall(1M)

Mounts all file systems that are specified in the /etc/vfstab file. The mountall command runs automatically when the system enters multiuser mode.

umount

mount(1M)

Unmounts file systems and remote resources. 

umountall

mountall(1M)

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 42, 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: