Checks a FAT filesystem for consistency (INtime Distributed RTOS only).
fatcheck [–l] [-v] [-f] [-w seconds] devicename
The fatcheck utility verifies and repairs FAT file systems (more commonly known as DOS file systems).
The first form of fatcheck preens the specified file systems. It is normally started by fatcheck run from /etc/rc during automatic reboot, when a FAT file system is detected.
When preening file systems, fatcheck will fix common inconsistencies non-interactively. If more serious problems are found, fatcheck does not try to fix them, indicates that it was not successful, and exits.
The second form of fatcheck checks the specified file systems and tries to repair all detected inconsistencies, requesting confirmation before making any changes.
Fatcheck uses contiguous free clusters on the disk for a scratch area when check file system consistency. Therefore fatcheck can fail if the disk is too full, or heavily fragmented. Fatcheck allocates RT memory for each FAT (2) on the system. So fatcheck can fail on a large disk if this FAT memory exceeds the amount of system memory available.
-v
-l
-f
-w seconds
The fatcheck utility is enabled via the SYSAPPSMASK variable (or via the System screen of the admin utility). It is normally run automatically during startup of INtime Distributed RTOS.
The default options are -l and -w 3, signifying that any errors should be written to the syslog and the utility will wait for three seconds for user approval before continuing to check the file system.
This configuration may be overwritten by editing the FATCHECK_ARGS variable in the INITLOADER section of the Advanced options to change the command line options.