- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Filesystem Disk Check CLI
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
exec disk scan ref
ref is only number from list disk integer
Fortigate <3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Try using the ref;
"execute disc scan 16"
"execute disk scan 32"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Whoops!
Yes I see now, thanks both!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can also force it on next reboot:
https://community.fortinet.com/t5/FortiGate/Technical-Tip-Run-a-File-System-Check-automatically/ta-p...
