Linux Command Directory
This directory of Linux commands is from Linux in a Nutshell, 5th Edition.
Click on any of the 687 commands below to get a description and list of available options. All links in the command summaries point to the online version of the book on Safari Bookshelf.
mount [options] [[device] directory]
System administration command. Mount a file structure. The file structure on device is mounted on directory. If no device is specified, mount looks for an entry in /etc/fstab to find out what device is associated with the given directory. The directory, which must already exist and should be empty, becomes the name of the root of the newly mounted file structure. If mount is invoked with no arguments, it displays the name of each mounted device, the directory on which it is mounted, its filesystem type, and any mount options associated with the device.
Mount all filesystems listed in /etc/fstab. Use -t to limit this to all filesystems of a particular type.
Bind a mounted subtree to a new location. The tree will be available from both the old and new directory. This binding does not include any volumes mounted below the specified directory.
Fake mount. Go through the motions of checking the device and directory, but do not actually mount the filesystem.
When used with -a, fork a new process to mount each system.
Print help message, then exit.
When reporting on mounted filesystems, show filesystem labels for filesystems that have them.
Mount filesystem with the specified label.
Move a mounted device to a new location. Keep in place any options and submounts.
Do not record the mount in /etc/mtab.
Qualify the mount with a mount option. Many filesystem types have their own options. The following are common to most filesystems:
Read input and output to the device asynchronously.
Update inode access time for each access. This is the default behavior.
Allow mounting with the -a option.
Use all options' default values (async, auto, dev, exec, nouser, rw, suid).
Interpret any special devices that exist on the filesystem.
Perform all directory updates to the filesystem synchronously.
Allow binaries to be executed.
Filesystem is a network device requiring network access.
Do not update inode access time for each access.
Do not allow mounting via the -a option.
Do not interpret any special devices that exist on the filesystem.
Do not allow the execution of binaries on the filesystem.
Do not acknowledge any suid or sgid bits.
Only privileged users will have access to the filesystem.
Expect the filesystem to have already been mounted, and remount it.
Allow read-only access to the filesystem.
Allow read/write access to the filesystem.
Acknowledge suid and sgid bits.
Read input and output to the device synchronously.
Allow unprivileged users to mount or unmount the filesystem. The defaults on such a system will be nodev, noexec, and nosuid, unless otherwise specified.
Allow any user to mount or unmount the filesystem. The defaults on such a system will be nodev, noexec, and nosuid, unless otherwise specified.
Limit systems mounted with -a by -O's filesystem options (as used with -o). Use a comma-separated list to specify more than one option, and prefix an option with no to exclude filesystems with that option. Options -t and -O are cumulative.
Mount filesystem read-only.
Bind a mounted subtree to a new location. The tree will be available from both the old and new directory. Include any volumes mounted below the specified directory.
Where possible, ignore mount options specified by -o that are not supported by the filesystem.
Specify the filesystem type. Possible values include adfs, affs, autofs, coda, cramfs, devpts, efs, ext2, ext3, hfs, hpfs, iso9660, jfs, minix, msdos, ncpfs, nfs, nfs4, ntfs, proc, qnx4, reiserfs, romfs, smbfs, sysv, tmpfs, udf, ufs, umsdos, vfat, xfs, and xiafs. The default type is iso9660. The type auto may also be used to set mount to autodetect the filesystem. When used with -a, this option can limit the types mounted. Use a comma-separated list to specify more than one type to mount. Prefix a list (or type) with no to exclude those types.
Mount filesystem with the specified uuid.
Display mount information verbosely.
Print version, then exit.
Mount filesystem read/write. This is the default.
List of filesystems to be mounted and options to use when mounting them.
List of filesystems currently mounted and the options with which they were mounted.
Used to find filesystems by label and uuid.