FortiGate
FortiGate Next Generation Firewall utilizes purpose-built security processors and threat intelligence security services from FortiGuard labs to deliver top-rated protection and high performance, including encrypted traffic.
spatni
Staff
Staff
Description
This article describes how to run a File System Check automatically. This feature adds the option to perform an automatic file system check if the FortiGate shuts down ungracefully.
By default, automatic file system check is disabled. When disabled, the next time an administrator logs in after an ungraceful shutdown, a warning message will advise them to manually run a file system check.

GUI warning:

CLI warning:
WARNING: File System Check Recommended! Unsafe reboot may have caused inconsistency in disk drive.
It is strongly recommended that you check file system consistency before proceeding.
Please run 'execute disk scan 17'
Note: The device will reboot and scan during startup. This may take up to an hour


Solution
Automatic file system checking can be enabled using both the GUI and the CLI.

GUI


1) On the FortiGate, go to System -> Settings

2) In the "Start Up Settings" section, enable "Auto file system check", as illustrated below:



3) Click "Apply"

CLI

# config system global
    set autorun-log-fsck enable
end


Contributors