ON THIS PAGE
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.
Requirements
Before you start the installation, back up important system data and configurations. This ensures you can quickly recover if any issues occur during the upgrade process.
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 the partition
option is used, the format and install process is
scheduled to run on the next reboot. Therefore, we recommend that this option be used
together with the reboot
option.
The process takes 15–20 minutes, during which the device is unreachable. It erases all data except the current configuration, so back up any important files beforehand.
In Junos OS Release 24.4R1, we re-named the software install images. Images named
junos-install-srsxme*
are recognized by the system to install Junos OS
Release 24.4R1 or later. Images named junos-srxsme*
are recognized by the
system to install Junos OS Release 23.4R1 or previous
releases.
In this example, add the software package junos-srxsme-10.0R2-domestic.tgz with the following options:
Option | Purpose |
---|---|
no-copy |
Installs without saving a local copy (saves space) |
no-validate |
Skips config validation (use only if advised by JTAC) partition |
partition |
Formats and sets up dual-root partitioning |
reboot |
Reboots the device after installation |
Configuration
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-10.0R2-domestic.tgz no-copy no-validate partition reboot
GUI Quick Configuration
Step-By-Step Procedure
To install Junos OS with the partition
option:
In the J-Web user interface, 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.
Select the Reboot If Required check box to set the device to reboot automatically when the upgrade is complete.
Select the Do not save backup check box to bypass saving the backup copy of the current Junos OS package.
Select 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
The following example requires you to navigate various levels in the configuration hierarchy. For instructions on how to do that, 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 Release 10.0 or later image.
user@host>request system software add junos-srxsme-10.0R2-domestic.tgz no-copy no-validate partition reboot Copying package junos-srxsme-10.0R2-domestic.tgz to var/tmp/install Rebooting ...
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.
Sample Output
Sample output on a system with single root partitioning:
user@host> show system storage partitions
Boot Media: internal (da0) Partitions Information: Partition Size Mountpoint s1a 898M / s1e 24M /config s1f 61M /var
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 you are done configuring the device, enter commit
from
configuration mode.