📄 fstab.5
字号:
.\" SCCSID: @(#)fstab.5 8.1 9/11/90.TH fstab 5 .SH Namefstab \- file containing static information about known file systems.SH Description.NXR "fstab file" "format".NXR "file system" "getting information".NXAM "quotacheck command" "fstab file".NXAM "swapon command" "fstab file".NXAM "dump command" "fstab file".NXAM "fsck command" "fstab file".NXAM "mount command (general)" "fstab file".NXR "fstab file" "mounting file systems"The .PN /etc/fstabfile contains descriptive information about the known filesystems.By convention, .PN /etc/fstabis created and maintained as a read-onlyfile by the system administrator.Each file system is described by its own line within .PN /etc/fstab .The order of these lines and the file systems they representis important because.PN fsckand.PN mount sequentially process .PN /etc/fstabin the performance of their tasks..PPThe format of each file system description in .PN /etc/fstabis as follows:.EXspec:file:type:freq:passno:name:options.EEThe meanings of these fields are:.IP spec 10The block special file name of the device on which the file system is located. It can also be a network name for .PN nfs ,such as .PN /@erie or .PN /@suez ..IP fileThe pathname of the directory on which the file system is mounted..IP typeHow the file system is mounted. The ways in which a filesystem can be mounted are:.br rw - mount the file system read-write.brro - mount the file system read only .brrq - mount the file system read-write with quotas.brsw - make the special file part of the swap space.brxx - ignore the entry.IP freqThe frequency (in days) with which the.PN dumpcommand dumps the rw, ro, and rq file systems..IP passnoThe order in which the.PN fsckcommand checks the rw, ro, and rq file systemsat reboot time..IP nameThe name of the file system type.File systems can have the followingtypes:ufs -- ULTRIX file system andnfs -- SUN Network file system..IP optionsThe options field. This field contains an arbitrary stringmeaningful only when mounting file systems with the specifiedfile system type name, such as NFS.The specific options are described in the.PN mountreference pages..PPSpecial actions occur for file systems of type sw and rq atsystem boot time.File systems of type sw are made part of the swap space by the.MS swapon 8command anddisk quotas are automatically processed by the .MS quotacheck 8command and then enabled by the .MS quotaon 8command for rq filesystems. .SH Examples.NXR(e) "fstab file"Here is a sample.PN fstabfile:.EX 0/dev/ra0a:/:rw:1:1:ufs::/dev/ra1g:/usr:rw:1:2:ufs::/@bigvax:/bigvax:rw:0:0:nfs::/usr/uws2.0@bigvax:/usr/uws2.0:rw:0:0:nfs:soft,bg,nosuid:/usr/dec@bigvax:/usr/dec:rw:0:0:nfs:bg,soft,nosuid:/usr/pro/xyz@vax:/usr/pro/xyz:rw:0:0:nfs:bg,soft,intr,nosuid:.EEThe last three entries in the.PN fstabsample shown use NFS options as described in the.MS mount 8nfsreference page..SH Restrictions.NXR "fstab file" "restricted"The passno field of the root file system should be specified as 1. Other file systems should have larger values. File systems on the same device should have distinct passno fields.File systems on different devices may have the identical passnofields to allow them to be simultaneously checked..PPAll field delimiters (:) must exist within each file system description;only the options field may not be present. However,only the fields spec and type are meaningful to sw file systems andonly the type field is meaningful to xx file systems..PPThe file system description within .PN /etc/fstabshould be parsedonly through use of the.PN getfsentroutines..SH Files.TP 15.PN /etc/fstabFile system information file.SH See Alsogetfsent(3x), dump(8), fsck(8), mount(8), mount(8nfs), mount(8ufs)quotacheck(8), quotaon(8), swapon(8)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -