Skip to main content
shaun23
New Member
January 8, 2019
Question

Filesystem Disk Check CLI

  • January 8, 2019
  • 3 replies
  • 54463 views

Hi,

 

I need to run a filesystem disk check on our Fortigates, the easy way out is to just select 'Reboot and scan disk now' button upon first logging in, but I want to do this from the CLI. I'm running FortiOS 5.4.

 

When I attempt to check the disk via CLI this is what I see:

 

FGT1 # execute disk scan 1 Invalid reference number 1: not exist, check 'disk list'. Command fail. Return code -39 FGT1 # execute disk list Disk HDD1            ref:  16 111.8GB    type: SSD [ATA F2CSTK251M3T-012] dev:/dev/sdb   partition ref:  17 110.0GB, 109.9GB free  mounted: Y  label: LOGUSEDX79799EA7 dev: /dev/sdb1 start: 63 Disk HDD2            ref:  32 111.8GB    type: SSD [ATA F2CSTK251M3T-012] dev:/dev/sdc   partition ref:  33 110.0GB, 109.9GB free  mounted: Y  label:WANOPTXX72DC00F4 dev: /dev/sdc1 start: 63 FGT1 # execute disk scan HDD1 Invalid parameters HDD1, must be '-rj', '-ij'. Command fail. Return code -39

 

Any ideas on what the -rj and -ij arguments do? I can't see any reference to them in the FortiOS 5.4 documentation.

 

Cheers

Shaun

 

 

 

    3 replies

    GusTech
    New Member
    January 8, 2019

     

    exec disk scan ref

    ref is only number from list disk integer

    Yngve0
    New Member
    January 8, 2019

    Try using the ref;

    "execute disc scan 16"

    "execute disk scan 32"

    shaun23
    shaun23Author
    New Member
    January 8, 2019

    Whoops!

     

    Yes I see now, thanks both!