Fortigate – USB

  1. List USB Devices
  2. List disk content wrong partioning
  3. Format the disk
  4. No fnsysctl
  5. List the primary and secondary firmware

List USB Devices

FG5H0E (root) # execute usb-device list


T:  Bus=02 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#=  2 Spd=5000 MxCh= 0
D:  Ver= 3.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 9 #Cfgs=  1
P:  Vendor=0781 ProdID=5581 Rev= 1.00
S:  Manufacturer=SanDisk
S:  Product=Ultra
S:  SerialNumber=XXX
C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=224mA
I:* If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E:  Ad=81(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms
E:  Ad=02(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms

List disk content wrong partioning

FG5H0E (root) # execute usb-disk list

unable to mount usb disk
Command fail. Return code -160

Format the disk

FG5H0E (root) # execute usb-disk format
This operation will ERASE all data in USB disk!
Do you want to continue? (y/n)y

Format USB disk /dev/sdb1 ...
Create file system on /dev/sdb1 ...

No fnsysctl

FG5H0E (global) # fnsysctl
fnsysctl cannot be executed when external USB disk is inserted.

List the primary and secondary firmware

FG5H0E (global) # diag sys flash list
Partition Image TotalSize(KB) Used(KB) Use% Active
1 FG5H0E-7.04-FW-build2573-240201 253871 118942 47% Yes
3 EXDB-1.00000 14866900 69136 0% No
Image was built at Feb 1 2024 17:25:08 for b2573