Manjaro Difference between revisions of "Fstab"

Difference between revisions of "Fstab"

From Manjaro
(Create fstab page)
(No difference)

Revision as of 23:20, 18 June 2021

fstab

The `/etc/fstab` file is used to define how disk partitions, various other block devices, or remote filesystems should be mounted into the filesystem.

Each filesystem is described in a separate line. These definitions will be converted into systemd mount units dynamically at boot, or when the configuration of the system manager is reloaded.

The `mount --all` command will mount all filesystems mentioned in `fstab`, (except for those whose line contains the `noauto` keyword). The filesystems are mounted following their order in fstab. The mount command compares filesystem source, target to detect already mounted filesystems. The kernel table with already mounted filesystems is cached during `mount --all`. This means that all duplicated fstab entries will be mounted.

Example File

Each line in the file describes a filesystem, and contain fields used to provide information about its mountpoint, the options which should be used when mounting it etc. Each field can be separated by another either by spaces or tabs.

Field definitions

Filesystem Specification

Mount Point

Filesystem Type

Mount options

Dump?

Pass number

Tips and tricks

The default setup will automatically `fsck` and `mount` filesystems before starting services that need them to be mounted. For example, systemd automatically makes sure that remote filesystem mounts like NFS or Samba are only started after the network has been set up. Therefore, local and remote filesystem mounts specified in `/etc/fstab` should work out of the box. See `man 5 systemd.mount` for details.

See Also

placeholder

Cookies help us deliver our services. By using our services, you agree to our use of cookies.