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:
user@host>request system software add junos-srxsme-23.4R2-S3.9.tgz no-copy no-validate partition reboot
Step-By-Step Procedure
To install Junos OS with the partition option:
In the J-Web UI, select Device Administration>Software Management>Install Package.
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.
Click the Reboot If Required check box to set the device to reboot automatically when the upgrade is complete.
Click the Do not save backup check box to bypass saving the backup copy of the current Junos OS package.
Click the Format and re-partition the media before installation check box to format the internal media with dual-root partitioning.
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:
Upgrade the device to Junos OS using the CLI.
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.
Reinstall the Junos OS Release 10.0 or later image.
root@srx340>request system software add /var/tmp/junos-install-srxsme-mips-64-24.4R2.16.tgz no-copy no-validate partition reboot Ignoring partition flag when the target image is a bsdx image Installing package '/var/tmp/junos-install-srxsme-mips-64-24.4R2.16.tgz'...
From configuration mode, confirm your configuration by entering the
show system storage partitionscommand. 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, entercommitfrom configuration mode.
Sample Output
Sample output on a system with dual-root partitioning:
user@host> show system storage partitions
Boot Media: internal (da0)
Active Partition: da0s2a
Backup Partition: da0s1a
Currently booted from: active (da0s2a)
Partitions Information:
Partition Size Mountpoint
s1a 293M altroot
s2a 293M /
s3e 24M /config
s3f 342M /var
s4a 30M recovery
If the output shows the intended configuration, enter commit from the
configuration mode.