fsck

from Wikipedia, the free encyclopedia

fsck (for " f ile s ystem c hec k " or " f ile s ystem c onsistency chec k ") is a software for checking the consistency of file system for UNIX derivatives . When booting or after a restart , fsck checks all partitions that are mounted by default in accordance with the specifications in the / etc / fstab file . Just after a power failure or a computer crash can inconsistencies occur in the file system. With large partitions, journaling file systems greatly reduce repair times. Under many Linux distributions, you can use e2fsck or kernel parameters to determine that the standard partitions are compulsorily checked after a specified number of mounts or at certain time intervals, even if no errors have been found so far.

If errors are found, the user is usually asked whether he would like an immediate attempt at repair. If profound changes to the file system are necessary, further questions are asked. Typically, there are options for an automatic repair as well as for simply listing the errors found without actually changing the file system.

fsck can also be run manually by the system administrator if necessary . As a front end , fsck does not take on the work on the specific file system itself, but calls the specific file system check program, e.g. B. fsck.ext4 , for the specified file system. The user does not need to know which file system is on the partition to be checked.

If the UFS2 filesystem is used on FreeBSD , fsck runs in the background. This means that there is usually no need to wait for fsck to complete before the hard drive can be accessed.

The scrub program for the ZFS file system provides a real check, even with journaling file systems .

In Microsoft systems, ScanDisk and with NT CHKDSK are used.

Remarks

  1. When will fsck run if maximum mount count is -1? superuser.com, August 17, 2017, accessed July 17, 2018 .

Web links