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
Article Id 193298
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


Comments
fredery
Staff
Staff

The number referenced by 'execute disk scan' is specific to the platform, example below for FGT101F for which it is 259:

FortiGate-101F (global) # execute disk list
Disk Internal        ref: 258 447.1GiB    type: SSD [ATA Micron_5200_MTFD] dev: /dev/sda
  partition ref: 259 440.1GiB, 439.0GiB free  mounted: Y  label: LOGUSEDX0661E0CF dev: /dev/sda1 start: 2048 .

 

 

Contributors