Description | This article describes how to erase and add a new FortiOS image to the Non-Active partition. |
Scope | FortiGate. |
Solution |
The following output shows two different images on each partition:
FortiGate # diagnose sys flash list
FortiGate has v7.2.8 in the Partition 1 and FortiOS 7.4.1 in the Partition 2. The active partition at the moment is Partition 2.
To erase and install a different FortiOS image in the Non-Active partition (Partition 1 in this example) there are two options. Either upload the firmware directly to the second partition via TFTP, or it is possible to keep the active partition on Partition 2 and then do a normal firmware upgrade. The firmware upgrade will always overwrite the Non-Active partition.
execute restore secondary-image tftp <filename> <ip>
Where 'filename' is the name of the firmware image file, and 'ip' is the IP address of the FTP/TFTP server.
FortiGate # execute restore secondary-image tftp Image.out 192.168.158.10 Please wait... Connect to tftp server 192.168.158.10 ... Get image from tftp server OK. Restore to backup partition. FortiGate # Firmware upgrade in progress ...
The errors in red are displayed because the Active boot partition is Partition 2. The previous image is erased. FortiGate does not boot, the Active FortiOS remains v7.4.1:
FortiGate # diagnose sys flash list
FortiGate # get system status
Related article: |