Linux Command


mount [-lhV]


All files accessible in a Unix system are arranged in one big tree, the
file hierarchy, rooted at /. These files can be spread out over sev-
eral devices. The mount command serves to attach the filesystem found
on some device to the big file tree. Conversely, the umount(8) command
will detach it again.

The standard form of the mount command, is

mount -t type device dir

This tells the kernel to attach the filesystem found on device (which
is of type type) at the directory dir. The previous contents (if any)
and owner and mode of dir become invisible, and as long as this
filesystem remains mounted, the pathname dir refers to the root of the
filesystem on device.

The listing and help.
Three forms of invocation do not actually mount anything:

mount -h
prints a help message

mount -V
prints a version string

mount [-l] [-t type]
lists all mounted filesystems (of type type). The option
-l adds the labels in this listing. See below.

The device indication.
Most devices are indicated by a file name (of a block special
device), like /dev/sda1, but there are other possibilities. For
example, in the case of an NFS mount, device may look like It is possible to indicate a block special
device using its volume LABEL or UUID (see the -L and -U options

The recommended setup is to use LABEL=

Share your experience or ask a question