mount(8)
NAME
mount, umount − General description to mount or unmount a file system
SYNTAX
/etc/mount [ options ] [ special ] [ name ]
/etc/umount [ options ] [ special ] [ name ]
DESCRIPTION
This is a general description of the mount command. Additional mount descriptions, such as mount(8nfs) and mount(8ufs) are provided to define the mount syntax and options for each specific file system.
Each invocation of the mount command announces to the system that a file system is present on the device special. The file system may be local or remote. File name must already exist as a directory file. It becomes the name of the newly mounted root.
If invoked without arguments, mount prints the list of mounted file systems.
Physically write-protected disks and magnetic tape file systems must be mounted read-only or an error will occur at mount time.
The umount command announces to the system that the removable file system previously mounted on device special is to be removed.
OPTIONS
−a Read the file /etc/fstab and mount all file systems listed there.
−r Indicates that the file system is to be mounted read-only.
−t type Specify what type of file system is being mounted. When used with the −a option, the −t type option specifies mounting all file systems of the given type found in the /etc/fstab file. For specific file system types, refer to the file system-specific mount description, such as mount(8nfs).
−v Verbose flag to tell what did or did not happen.
−o options The options is a string that is passed to the kernel and used by the specific file system’s mount routine in the kernel. For specific options, refer to the file system-specific mount description, such as mount(8nfs).
The options for umount are:
−a Unmount all currently mounted file systems. It may be necessary to execute umount −a twice to accomplish unmounting of all mounted file systems.
−v Verbose output format to tell what did or did not happen.
RESTRICTIONS
Mounting corrupted file systems will crash the system.
FILES
/etc/fstabFile systems information table
SEE ALSO
getmnt(2), mount(2), fstab(5), fsck(8), mount(8nfs), mount(8ufs)