Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

Install Junos OS on SRX Series Firewalls Using the Partition Option

Learn how to install Junos OS with the partition option which helps formats the internal media, installs the image with dual-root partitioning, and reboots the device to complete the setup.

This applies to the SRX300 Line of Firewall only. Also, the following information does not apply to Junos OS version 24.4 and later. When using the partition option, the Junos partition will be rewritten, and the contents of the /var/log and /var/tmp directories will be cleared. However, the configuration and database (db) partitions will be preserved.

Requirements

Before you start the installation, back up important system data and configurations. This step ensures that you can quickly recover your device in case of an upgrade failure.

Installation Overview

To reinstall Junos OS with dual-root partitioning, use the request system software add command with the partition and reboot options.

The request system software add command:

  • Formats the internal media.

  • Installs the image with dual-root partitioning.

  • Reboots the device to complete the setup. The device also boots up with the image installed with the dual-root partitioning scheme.

When you use the partition option, the internal media formatting and image installation are scheduled to run on the next reboot. Therefore, we recommend that you use this option with the reboot option.

The installation process takes 15–20 minutes, during which, the device is unreachable. The process erases all data except the current configuration, so back up any important files beforehand.

In Junos OS Release 24.4R1, we renamed the software install images.

The system recognizes images named:

  • junos-installsrsxme* to install Junos OS Release 24.4R1 or later releases.
  • junossrxsme* to install Junos OS Release 23.4R1 or previous releases.

In this example, add the software package junos-srxsme-23.4R2-S3.9.tgz with the following options:

Option Purpose
no-copy Installs without saving a local copy (saves space)
no-validate Skips configuration validation (use only if advised by JTAC)
partition Formats and sets up dual-root partitioning
reboot Reboots the device after installation

Install Junos OS - Partition Option

Procedure

CLI Quick Configuration

To install Junos OS with the partition option, enter the following command from operational mode:

Step-By-Step Procedure

To install Junos OS with the partition option:

  1. In the J-Web UI, select Device Administration>Software Management>Install Package.

  2. On the Install Package page, specify the FTP or HTTP server, file path, and software package name. Type the full address of the software package location on the FTP or HTTP. Example: ftp://hostname/pathname/junos-srxsme-xx.0R2-domestic.tgz or http://hostname/pathname/junos-srxsme-xx.0R2-domestic.tgz.

    Specify the username and password, if the server requires one.

  3. Click the Reboot If Required check box to set the device to reboot automatically when the upgrade is complete.

  4. Click the Do not save backup check box to bypass saving the backup copy of the current Junos OS package.

  5. Click the Format and re-partition the media before installation check box to format the internal media with dual-root partitioning.

  6. Click Fetch and Install Package. The software is activated after the device reboots.

    This formats the internal media and installs the new Junos OS image on the media with dual-root partitioning.

Step-by-Step Procedure Using CLI

The following example requires you to navigate various levels in the configuration hierarchy. For detailed instructions, see Using the CLI Editor in Configuration Mode.

To install Junos OS Release 10.0 or later with the partition option:

  1. Upgrade the device to Junos OS using the CLI.

  2. After the device reboots, upgrade the boot loader to the latest version. See Preparing the USB Flash Drive to Upgrade Junos OS on SRX Series Devices.

  3. Reinstall the Junos OS Release 10.0 or later image.

  4. From configuration mode, confirm your configuration by entering the show system storage partitions command. If the output does not display the intended configuration, repeat the configuration instructions in this example to correct it. If the output shows the intended configuration, enter commit from configuration mode.

Sample Output

Sample output on a system with dual-root partitioning:

If the output shows the intended configuration, enter commit from the configuration mode.

Verify the Partition Scheme Details

Purpose

Verify that the partitioning scheme on the SRX Series Firewall are configured.

Action

From operational mode, enter the show system storage partitions command.

Meaning

Verifies whether partitioning scheme details on the SRX Series Firewall are configured correctly.