• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

fstab

fstab

fstab Static information about the file systems.
The fstab files contains descriptive information about the various file systems. The fstab is only read by programs, not written by them. Each file system is described on a separate line. Fields in each line are separated by tabs or spaces. The order of records in the fstab is important because fsck (8), mount (8), and umount (8) sequentially iterate through the fstab.
The first field (fs_spec) describes the block special device or remote file system to be mounted. For file systems of type ffs, the special filename is the block special filename, and not the character special filename.
The second field (fs_file) describes the mount point for the file systems. For swap partitions, the field should be specified as none.
The third field (fs_vfstype) describes the type of file system. The currently supported file systems are
adosfs AmigaDOS file system.
cd9660 ISO 9660 CD ROM.
fdesc An implementation of /dev/fd.
ffs A local file system.
kernfs Various kernel statistics.
mfs A local memory-based file system.
msdos MSDOS FAT file system.
nfs Sun Microsystems compatible Network File System.
procfs A local file system of process information.
swap Disk partition to be used for swapping.
union A translucent file system.
The fourth field (fs_mntops) describes mount options associated with the file system. It is formatted as a comma-separated list of options. It contains at least the mount type and any additional options appropriate to the file system type.
The option auto can be used in the noauto form to cause a file system not to be automatically mounted (with mount -a or at system boot time).
The options userquota and/or groupquota cause the file system to be automatically processed by quotacheck (8) command, and user and/or group disk quotas are enabled with quotaon (8). By default, file system quotas are maintained in the files named quota.user and quota.group located at the root of the associated file system. The defaults may be overridden by using the appending to the quota option =<absolute-path-to-quota-file>.
The fifth field (fs_freq) is used by dump (8) to determine which file systems need to be dumped. If the field is not present or is zero, a value of zero is returned, and dump assumes that the file system does not need to be dumped.
The sixth field (fs_passno) is used by fsck (8) to determine the order in which file system checks should be done at reboot time. The root file system should be specified with a value of 1. Other file systems should have a value of 2. File systems within a drive are checked sequentially, whereas file systems on different drives are checked at the same time to use parallelism available in the hardware. If the field is not present or is zero, a value of zero is returned, and fsck assumes that the file system does not need to be checked.



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint