{"id":320,"date":"2019-10-21T19:45:46","date_gmt":"2019-10-21T17:45:46","guid":{"rendered":"http:\/\/linuxboxen2.dk\/?p=320"},"modified":"2019-10-21T19:45:46","modified_gmt":"2019-10-21T17:45:46","slug":"fstab","status":"publish","type":"post","link":"https:\/\/www.linuxboxen.dk\/?p=320","title":{"rendered":"FSTAB"},"content":{"rendered":"<p>FSTAB(5)\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 File Formats\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 FSTAB(5)<\/p>\n<p>NAME<\/p>\n<p>fstab &#8211; static information about the filesystems<\/p>\n<p>SYNOPSIS<\/p>\n<p>\/etc\/fstab<\/p>\n<p>DESCRIPTION<\/p>\n<p>The file fstab contains descriptive information about the various<br \/>\nfile systems.\u00a0 fstab is only read by programs, and not written; it is<br \/>\nthe duty of the system administrator to properly create and maintain<br \/>\nthis file.\u00a0 Each filesystem is described on a separate line; fields<br \/>\non each line are separated by tabs or spaces.\u00a0 Lines starting with<br \/>\n&#8216;#&#8217; are comments, blank lines are ignored. The order of records in<br \/>\nfstab is important because fsck(8), mount(8), and umount(8)<br \/>\nsequentially iterate through fstab doing their thing.<\/p>\n<p>The first field (fs_spec).<br \/>\nThis field describes the block special device or remote<br \/>\nfilesystem to be mounted.<\/p>\n<p>For ordinary mounts it will hold (a link to) a block special<br \/>\ndevice node (as created by mknod(8)) for the device to be<br \/>\nmounted, like `\/dev\/cdrom&#8217; or `\/dev\/sdb7&#8242;.\u00a0 For NFS mounts one<br \/>\nwill have &lt;host&gt;:&lt;dir&gt;, e.g., `knuth.aeb.nl:\/&#8217;.\u00a0 For procfs,<br \/>\nuse `proc&#8217;.<\/p>\n<p>Instead of giving the device explicitly, one may indicate the<br \/>\nfilesystem that is to be mounted by its UUID or LABEL (cf.<br \/>\ne2label(8) or xfs_admin(8)), writing LABEL=&lt;label&gt; or<br \/>\nUUID=&lt;uuid&gt;, e.g., `LABEL=Boot&#8217; or `UUID=3e6be9de-8139-11d1\u2010<br \/>\n-9106-a43f08d823a6&#8242;.<\/p>\n<p>It&#8217;s also possible to use PARTUUID= and PARTLABEL=. These<br \/>\npartitions identifiers are supported for example for GUID<br \/>\nPartition Table (GPT).<\/p>\n<p>See mount(8), blkid(8) or lsblk(8) for more details about<br \/>\ndevices identifiers.<\/p>\n<p>Note that mount(8) uses UUIDs as strings. The string<br \/>\nrepresentation of the UUID should be based on lower case<br \/>\ncharacters.<\/p>\n<p>The second field (fs_file).<br \/>\nThis field describes the mount point for the filesystem.\u00a0 For<br \/>\nswap partitions, this field should be specified as `none&#8217;. If<br \/>\nthe name of the mount point contains spaces these can be<br \/>\nescaped as `\\040&#8242;.<\/p>\n<p>The third field (fs_vfstype).<br \/>\nThis field describes the type of the filesystem.\u00a0 Linux<br \/>\nsupports lots of filesystem types, the most common are ext2,<br \/>\next3, ext4, xfs, btrfs, vfat, sysfs, proc, nfs and cifs. For<br \/>\nmore details, see mount(8).<\/p>\n<p>An entry swap denotes a file or partition to be used for<br \/>\nswapping, cf. swapon(8).\u00a0 An entry none is useful for bind or<br \/>\nmove mounts.<\/p>\n<p>More than one type may be specified in a comma-separated list.<\/p>\n<p>mount(8) and umount(8) support filesystem subtypes.\u00a0 The<br \/>\nsubtype is defined by &#8216;.subtype&#8217; suffix.\u00a0 For example<br \/>\n&#8216;fuse.sshfs&#8217;. It&#8217;s recommended to use subtype notation rather<br \/>\nthan add any prefix to the first fstab field (for example<br \/>\n&#8216;sshfs#example.com&#8217; is deprecated).<\/p>\n<p>The fourth field (fs_mntops).<br \/>\nThis field describes the mount options associated with the<br \/>\nfilesystem.<\/p>\n<p>It is formatted as a comma separated list of options.\u00a0 It<br \/>\ncontains at least the type of mount plus any additional<br \/>\noptions appropriate to the filesystem type. For documentation<br \/>\non the available mount options, see mount(8).\u00a0 For<br \/>\ndocumentation on the available swap options, see swapon(8).<\/p>\n<p>Basic file system independent options are:<\/p>\n<p>defaults<br \/>\nuse default options: rw, suid, dev, exec, auto, nouser,<br \/>\nand async.<\/p>\n<p>noauto do not mount when &#8220;mount -a&#8221; is given (e.g., at boot<br \/>\ntime)<\/p>\n<p>user\u00a0\u00a0 allow a user to mount<\/p>\n<p>owner\u00a0 allow device owner to mount<\/p>\n<p>comment<br \/>\nor x-&lt;name&gt; for use by fstab-maintaining programs<\/p>\n<p>nofail do not report errors for this device if it does not<br \/>\nexist.<\/p>\n<p>The fifth field (fs_freq).<br \/>\nThis field is used for these filesystems by the dump(8)<br \/>\ncommand to determine which filesystems need to be dumped.\u00a0 If<br \/>\nthe fifth field is not present, a value of zero is returned<br \/>\nand dump will assume that the filesystem does not need to be<br \/>\ndumped.<\/p>\n<p>The sixth field (fs_passno).<br \/>\nThis field is used by the fsck(8) program to determine the<br \/>\norder in which filesystem checks are done at reboot time.\u00a0 The<br \/>\nroot filesystem should be specified with a fs_passno of 1, and<br \/>\nother filesystems should have a fs_passno of 2.\u00a0 Filesystems<br \/>\nwithin a drive will be checked sequentially, but filesystems<br \/>\non different drives will be checked at the same time to<br \/>\nutilize parallelism available in the hardware.\u00a0 If the sixth<br \/>\nfield is not present or zero, a value of zero is returned and<br \/>\nfsck will assume that the filesystem does not need to be<br \/>\nchecked.<\/p>\n<p>NOTES<\/p>\n<p>The proper way to read records from fstab is to use the routines<br \/>\ngetmntent(3) or libmount.<\/p>\n<p>The keyword ignore as filesystem type (3rd field) is not more<br \/>\nsupported by the pure libmount based mount utility (since util-linux<br \/>\nv2.22).<\/p>\n<p>FILES<\/p>\n<p>\/etc\/fstab, &lt;fstab.h&gt;<\/p>\n<p>SEE ALSO<\/p>\n<p>findmnt(8), mount(8), swapon(8), fs(5), getmntent(3)<\/p>\n<p>HISTORY<\/p>\n<p>The ancestor of this fstab file format appeared in 4.0BSD.<\/p>\n<p>AVAILABILITY<\/p>\n<p>This man page is part of the util-linux package and is available from<br \/>\nftp:\/\/ftp.kernel.org\/pub\/linux\/utils\/util-linux\/.<\/p>\n<p>COLOPHON<\/p>\n<p>This page is part of the util-linux (a random collection of Linux<br \/>\nutilities) project.\u00a0 Information about the project can be found at<br \/>\n\u27e8https:\/\/www.kernel.org\/pub\/linux\/utils\/util-linux\/\u27e9.\u00a0 If you have a<br \/>\nbug report for this manual page, send it to<br \/>\nutil-linux@vger.kernel.org.\u00a0 This page was obtained from the<br \/>\nproject&#8217;s upstream Git repository<br \/>\n(git:\/\/git.kernel.org\/pub\/scm\/utils\/util-linux\/util-linux.git) on<br \/>\n2014-12-30.\u00a0 If you discover any rendering problems in this HTML ver\u2010<br \/>\nsion of the page, or you believe there is a better or more up-to-date<br \/>\nsource for the page, or you have corrections or improvements to the<br \/>\ninformation in this COLOPHON (which is not part of the original man\u2010<br \/>\nual page), send a mail to\u00a0man-pages@man7.org<\/p>\n<p>util-linux\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 August 2010\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 FSTAB(5)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>FSTAB(5)\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 File Formats\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 FSTAB(5) NAME fstab &#8211; static information about the filesystems SYNOPSIS \/etc\/fstab DESCRIPTION The file fstab contains descriptive information about the various file systems.\u00a0 fstab is only read by programs, and not written; it is the duty of the system administrator to properly create and maintain this file.\u00a0 Each filesystem is described on [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_sitemap_exclude":false,"_sitemap_priority":"","_sitemap_frequency":"","footnotes":""},"categories":[8],"tags":[],"class_list":["post-320","post","type-post","status-publish","format-standard","hentry","category-shell"],"a3_pvc":{"activated":false,"total_views":0,"today_views":0},"_links":{"self":[{"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=\/wp\/v2\/posts\/320","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=320"}],"version-history":[{"count":0,"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=\/wp\/v2\/posts\/320\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=320"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=320"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=320"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}