If the root file system type is one which should be checked at boot time (for example ext2), this can be done automatically using the file /etc/fstab. The final column (called fs_passno) indicates the order in which the file systems are checked and whether the file system should be checked or skipped.
| fs_passno> | Description |
|---|---|
| 0 | Use for file systems that don´t need to be checked such as NFS or read-only filesystems | 1 | Use only for the root file system, indicating that it should be checked first |
| 2 | Run a file system check on other non root file systems |