Mount

Mounting is the attaching of an additional filesystem to the currently accessible filesystem of a computer.

Installation
The mount command is part of the package. In Gentoo Linux is part of the system set and is installed on all Gentoo systems by default. If for some strange and unordinary reason it is missing it can be re-installed by running a simple emerge command:

Usage
Show mounted filesystems by running the mount command with no arguments or options:

Mount a filesystem. A device file, UUID or label or other means of locating the partition or data source and a mount point are required. Non-system relevant filesystems are normally mounted in the directory. The proper syntax for mounting a file system is as follows:

For further details see.

The directory is generally used to mount removable devices such as USB drives or SD cards. After determining which device the USB drive shows up as, a command like the following could be used to mount its contents to a newly created folder in

To unmount a filesystem the device file or the mount point can be specified:

Sometimes mounting a filesystem requires special options.

The filesystem has to support the mount option. Many are common, but some are filesystem specific. For more information see the man page.

Mounting as non-superuser
According to man mount only the superuser can mount filesystems. However, when fstab contains the user option on a line any user will be capable of mounting the corresponding partition, device, drive, etc.

Mounting removable media
See the relevant section in the Removable media article.

Mounting Windows shares (cifs)
Despite fstab entries non-superuser mounts of windows shares will fail (for security reasons). In the following example is found a entry for Windows share; pay close attention to the   option:

The solution is to use in combination with a corresponding entry in  to allow passwordless mounting. Be sure to read Sudo before editing the file!