NAME
fstab - static information about the filesystemsSYNOPSIS
/etc/fstabDESCRIPTION
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.LABEL=t-home2 /home ext4 defaults,auto_da_alloc 0 2
The first field ( fs_spec).
This field describes the block special device, remote filesystem or filesystem image for loop device to be mounted or swap file or swap partition to be enabled.The second field ( fs_file).
This field describes the mount point (target) for the filesystem. For swap partitions, this field should be specified as `none'. If the name of the mount point contains spaces or tabs these can be escaped as `\040' and '\011' respectively.The third field ( fs_vfstype).
This field describes the type of the filesystem. Linux supports many filesystem types: ext4, xfs, btrfs, f2fs, vfat, ntfs, hfsplus, tmpfs, sysfs, proc, iso9660, udf, squashfs, nfs, cifs, and many more. For more details, see mount(8).The fourth field ( fs_mntops).
This field describes the mount options associated with the filesystem.use default options: rw, suid, dev, exec,
auto, nouser, and async.
do not mount when mount -a is given
(e.g., at boot time)
allow a user to mount
allow device owner to mount
or x-<name> for use by
fstab-maintaining programs
do not report errors for this device if it
does not exist.
The fifth field ( fs_freq).
This field is used by dump(8) to determine which filesystems need to be dumped. Defaults to zero (don’t dump) if not present.The sixth field ( fs_passno).
This field is used by fsck(8) to determine the order in which filesystem checks are done at boot time. The root filesystem should be specified with a fs_passno of 1. Other filesystems should have a fs_passno of 2. Filesystems within a drive will be checked sequentially, but filesystems on different drives will be checked at the same time to utilize parallelism available in the hardware. Defaults to zero (don’t check the filesystem) if not present.FILES
/etc/fstab, <fstab.h>NOTES
The proper way to read records from fstab is to use the routines getmntent(3) or libmount.HISTORY
The ancestor of this fstab file format appeared in 4.0BSD.SEE ALSO
getmntent(3), fs(5), findmnt(8), mount(8), swapon(8)REPORTING BUGS
For bug reports, use the issue tracker at <https://github.com/util-linux/util-linux/issues>.AVAILABILITY
fstab is part of the util-linux package which can be downloaded from Linux Kernel Archive <https://www.kernel.org/pub/linux/utils/util-linux/>.2022-05-11 | util-linux 2.38.1 |