Support Support Downloads Knowledge Base Case Manager My Juniper Community

Knowledge Base

Search our Knowledge Base sites to find answers to your questions.

Ask All Knowledge Base Sites All Knowledge Base Sites JunosE Defect (KA)Knowledge BaseSecurity AdvisoriesTechnical BulletinsTechnotes Sign in to display secure content and recently viewed articles

Recovering from a Failed Software Upgrade on an EX-series Switch

0

0

Article ID: KB10914 KB Last Updated: 05 Mar 2017Version: 5.0
Summary:
This recovery installation procedure can be used to recover from a failed software upgrade or if if the CLI is not working for any reason.
Symptoms:
The JUNOS software loads but the CLI is not working for any reason, or if the switch has no software installed.
Solution:
Recovering from a Failed Software Upgrade on an EX-series Switch

If the JUNOS software loads but the CLI is not working for any reason, or if the switch has no software installed, you can use this recovery installation procedure to install the JUNOS software.

If there is already a JUNOS image on the system, you can either install the new JUNOS package in a separate partition and both JUNOS images will remain on the system, or you can wipe the disk clean before the new installation proceeds.

To perform a recovery installation:

  1. Power on the switch. The loader script starts.

  2. After the Loading /boot/defaults/loader.conf displays, you are prompted with:
    Hit [Enter] to boot immediately, or space bar for command prompt
    Hit the space bar to enter the manual loader. The loader > prompt displays. 

  3. Enter the following command: 
    install [––format] source

    Where:
    • --format:  Include the ––format option if you want to wipe the internal disk before installing the software package. If you do not include this option, the system installs the new JUNOS software package in a different partition from any existing JUNOS software package.

    • source:  source represents the name and location of the JUNOS software package either on a server, on the network, or as a file on an external USB drive:
      • Network address of the server and the path on the server. For example, tftp://192.17.1.28/junos/jinstall-ex-9.0R1-domestic.tgz
      • The JUNOS package on a USB device is commonly stored in the root drive as the only file. For example, file:///jinstall-ex-9.0R1-domestic.tgz

  4. The installation proceeds as normal and ends with a login prompt.

Setting the boot partition:

The system disk has two partitions and can have a different software package installed in each partition. You can manually reset the system to boot from the other partition. You can set the system to boot from the other partition on the next reboot only, or make the change permanent so that it will boot from the other partition on all subsequent reboots.

To specify reboot from the partition that is not currently active for the next reboot only, issue the following commands from within the loader:
set currdev=disk0Sdisk-number:
boot


Where disk-number indicates the partition number, either 1 or 2.

To reset the partition that is designated the active partition, exit the CLI and enter the following commands from the UNIX prompt:
# echo "adisk-number" |fdisk –f –/dev/da0
# reboot


Where disk-number indicates the partition number, either 1 or 2.
Comment on this article > Affected Products Browse the Knowledge Base for more articles related to these product categories. Select a category to begin.

Getting Up and Running with Junos

Getting Up and Running with Junos Security Alerts and Vulnerabilities Product Alerts and Software Release Notices Problem Report (PR) Search Tool EOL Notices and Bulletins JTAC User Guide Customer Care User Guide Pathfinder SRX High Availability Configurator SRX VPN Configurator Training Courses and Videos End User Licence Agreement Global Search