From 1272be04be0cb803eec87f602edb2e3e6f111aea Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 14 Apr 2024 21:33:34 +0200 Subject: Merging upstream version 2.40. Signed-off-by: Daniel Baumann --- sys-utils/fstab.5.adoc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sys-utils/fstab.5.adoc') diff --git a/sys-utils/fstab.5.adoc b/sys-utils/fstab.5.adoc index ad1318f..0f12560 100644 --- a/sys-utils/fstab.5.adoc +++ b/sys-utils/fstab.5.adoc @@ -52,6 +52,8 @@ _/etc/fstab_ The file *fstab* contains descriptive information about the filesystems the system can mount. *fstab* is only read by programs, and not written; it is the duty of the system administrator to properly create and maintain this file. The order of records in *fstab* is important because *fsck*(8), *mount*(8), and *umount*(8) sequentially iterate through *fstab* doing their thing. +The file is not read by *mount*(8) only but often is used by many other tools and daemons, and proper functionality may require additional steps. For example, on systemd-based systems, it's recommended to use *systemctl daemon-reload* after *fstab* modification. + Each filesystem is described on a separate line. Fields on each line are separated by tabs or spaces. Lines starting with '#' are comments. Blank lines are ignored. The following is a typical example of an *fstab* entry: @@ -130,6 +132,8 @@ The proper way to read records from *fstab* is to use the routines *getmntent*(3 The keyword *ignore* as a filesystem type (3rd field) is no longer supported by the pure libmount based mount utility (since util-linux v2.22). +This document describes handling of *fstab* by *util-linux* and *libmount*. For *systemd*, read *systemd* documentation. There are slight differences. + == HISTORY The ancestor of this *fstab* file format appeared in 4.0BSD. -- cgit v1.2.3