- The /etc/fstab (or file systems table) file typically lists all used disks and disk partitions and indicates how they are to be used or otherwise integrated into the overall system’s file system.
- The /etc/fstab is referenced each time the system boots to create the desired filesystem hierarchy. It consists of six fields per line for each filesystem to be connected to the “tree” as follows:
Description of each of the fields is below:
- device– The device file name (e.g. /dev/sysvg/homelv) or filesystem label of the device (e.g./devsdb2) to mount
- mount_point– The path used to access the filesystem (where the device is to be attached to the filesystem)
- FS_type– The filesystem type
- options– A comma-separated list of options
- dump_freq– Level 0 dump frequency; 1=daily, 2=every other day, etc.; 0=never dump. Set to 0 if you do not use dump command to backup.
- fsck_order– The order in which the fsck utility will scan the partitions for errors when the system boots up. 0=ignore, 1=first (the root filesystem should have this value), 2-9=second, third, etc. Fileystems that have the same number greater than 1 are checked in parallel. Network fileystems and CD-ROMS should be ignored.