• Skip to main content
  • Skip to header right navigation
  • Skip to site footer

Roger Perkin

Network Automation Consultant

  • Network Automation
    • Network Automation Consultant
    • Network Automation Courses
    • What is NetDevOps?
    • Workflow Orchestration
    • Ansible Automation Platform
    • Ansible Workshop
    • What is Network Automation?
    • Network Automation Tools
    • ContainerLab
    • Ansible Training
      • What is Ansible?
      • Ansible Tutorial for Beginners
      • Ansible Network Automation
      • Ansible Inventory Example
    • Python Network Automation
      • Nornir
      • Python for Network Engineers
      • Python VENV / Virtual Environment Tutorial
      • Python Tutorial for Beginners
      • pyATS
    • Network Source of Truth
      • NetBox Training
      • Infrahub
      • NautoBot
    • NetDevops
    • DevOps Tutorial
      • Git Training
      • Terraform Training
      • Linux Training
      • Kubernetes Training
      • Devops Training Course
      • Azure Devops Training
    • Terraform
    • GIT
      • Git Commands
      • What is GitHub?
    • Docker Training
    • Confluence
    • Microsoft Azure
  • Cisco
    • ISE
    • SD WAN Training
    • Password Recovery
    • Software-Upgrade-Guides
    • BGP
    • Data Center
    • WIRELESS
  • CCIE
  • Blog
  • About
    • My Red Special Guitar
  • Contact

Warning: This device has booted from the backup junos image

Home » Juniper Tutorials

Whilst configuring a Juniper EX4200 switch I came across the issue where the primary boot partition had got corrupted, you get the infamous warning: This device has booted from the backup junos image banner, from here you have two options, re-install Junos or perform a recovery. As this is a new switch just sat on the bench I opted for the recovery option,  using the command request system snapshot slice alternate

login: root
Password:

— JUNOS 11.4R1.6 built 2011-11-15 10:11:59 UTC
root@SW1:RE:0% cli
***********************************************************************
**  WARNING: THIS DEVICE HAS BOOTED FROM THE BACKUP JUNOS IMAGE
**  It is possible that the primary copy of JUNOS failed to boot up  **
**  properly, and so this device has booted from the backup copy.    **
**  Please re-install JUNOS to recover the primary copy in case      **
**  it has been corrupted.
root@SW1>

root@SW1> request system snapshot slice alternate
Formatting alternate root (/dev/da0s1a)…

Copying ‘/dev/da0s2a’ to ‘/dev/da0s1a’ .. (this may take a few minutes)
The following filesystems were archived: /

root@NHC0-PUR-SWA001> request system reboot

Reboot the system ? [yes,no] (no) yes

The switch reboots and the warning message goes away

If you still get the warning message you need to force the switch to reboot from the newly formatted partition.

root@SW1> request system reboot slice alternate

The advice given here is purely for informational purposes, if you are applying this fix to production equipment I cannot hold any responsibility for any corruption or failure of any device as a result of using this command.

It worked for me whilst setting up a new switch and the information is provided here for informational purposes only.

 

Category: Juniper TutorialsTag: Junos
ansible course for network engineers
Get Access to my Ansible Course NOW
Previous Post:How to Find Port from IP Address Juniper Switch
Next Post:What is a CCIE? How to become a CCIE

Sidebar

Hi I'm Roger Perkin,
Based in the UK working as a Network Automation Architect, CCIE #50038
About Roger | Twitter | Linkedin

Python for Network Engineers Course

Topics

Network Automation
Ansible Network Automaton
Python for Network Automation
CCIE
BGP
OSPF
Network Automation Conferences
auvik promo banner
Pluralsight Trial

Git for Network Engineers

Ansible vs Nornir

Start learning today with my Network Automation Courses

Master Ansible, Python, Git, Nornir, Jenkins and more..


Buy me a coffeeBuy me a coffee

ansible network automation course

Have you seen my YouTube Channel?

YouTube Subscribe

Let’s get started

Take a look at my premium courses on Ansible, Nornir & Git or buy them all with the Network Automation Bundle!

Network Automation Courses

Navigation

Python VENV Tutorial
Python for Network Engineers Course

Network Automation
Network Automation Courses
Network Discovery Tools
Network Automation Conferences
Ansible Training
What is Ansible?
Devops Tutorial
Network Source of Truth
DevOps Glossary
Network Monitoring Software

Contact

Contact

Get in touch with me here

[email protected]

  • Twitter
  • LinkedIn
  • YouTube
Buy me a coffeeBuy me a coffee

Copyright © 2026 · Roger Perkin · All Rights Reserved · Privacy Policy – Terms