Mounting is a fundamental concept in Linux and other Unix-like operating systems, enabling users to access and manage filesystems, storage devices, and partitions. Mounting is the process of making a filesystem accessible at a certain point in the directory tree. When you mount a storage device or a partition, you attach it to a specified directory, known as a mount point. This allows you to access the contents of the device or partition as if they were part of the overall filesystem.
The source of the filesystem can be specified in other ways too (depending on the filesystem):
-`LABEL=label`: Human readable filesystem identifier.
-`UUID=uuid`: Filesystem universally unique identifier. The format of the UUID is usually a series of hex digits separated by hyphens.
-`PARTLABEL=label`: Human readable partition identifier. This identifier is independent on filesystem and does not change by mkfs or mkswap operations. It’s supported for example for GUID Partition Tables (GPT).
-`PARTUUID=uuid`: Partition universally unique identifier. This identifier is independent on filesystem and does not change by mkfs or mkswap operations. It’s supported for example for GUID Partition Tables (GPT).
| `-a, --all` | Mount all filesystems in `/etc/fstab`. |
| `-B, --bind` | Mount a directory somewhere else |
| `-m, --mkdir[=mode]` | Allow to make a target directory (mountpoint) if it does not exist yet. The default mode is `0755`. |
| `-o, --options opts` | Use the specified mount options. The opts argument is a comma-separated list. |
| `-r, --read-only` | Mount the filesystem read-only. A synonym is `-o ro`. |
| `--source device` | This option allows you to explicitly define that the argument is the mount source. |
| `--target directory` | This option allows you to explicitly define that the argument is the mount target. |
| `-t, --types fstype` | The argument following `-t` is used to indicate the filesystem type. The filesystem types which are currently supported depend on the running kernel. See `/proc/filesystems` and `/lib/modules/$(uname -r)/kernel/fs` for a complete list of the filesystems. |
## `/etc/fstab`
The `/etc/fstab` file is used to define filesystems to be automatically mounted at boot time. Nowadays the entries in this file will be converted to [Systemd-Mounts](systemd/Systemd-Mounts.md).