Config Router

  • Google Sheets
  • CCNA Online training
    • CCNA
  • CISCO Lab Guides
    • CCNA Security Lab Manual With Solutions
    • CCNP Route Lab Manual with Solutions
    • CCNP Switch Lab Manual with Solutions
  • Juniper
  • Linux
  • DevOps Tutorials
  • Python Array
You are here: Home / Juniper / How to prepare an Emergency USB Boot Disk with install-media file for high-end SRX

How to prepare an Emergency USB Boot Disk with install-media file for high-end SRX

May 12, 2016 by Marques Brownlee

The procedures outlined in this section discuss how to create an emergency USB boot disk for SRX 3K and 5K Series with the help of a install-media file.

This applies to the following Junos platforms:

  • SRX1400
  • SRX3400
  • SRX3600
  • SRX5400
  • SRX5600
  • SRX5800

If the router’s Junos Software is damaged hence preventing the Junos Software from loading completely, you can use the emergency USB boot disk to revive the router. The emergency boot disk repartitions the primary disk and reloads a fresh installation of the Junos Software. The Junos software is kept as a backup in USB so that if there is any damage to the installed software it can be revived from the USB drive itself.

Perform the following procedure to prepare a USB Boot disk with install-media file:

1. Download install media file from the Juniper support website.

2. Login into a working firewall using root username and password.

3. Create the directory

/var/tmp/test/: % mkdir /var/tmp/test/

4. Use FTP to copy the installation media into the firewall’s

/var/tmp/test

directory.

5. Run this command from shell prompt:

 % dd if=/dev/zero of=/dev/da0 count=20

(Make sure that the USB is on slot0 of routing engine)

6. Run this command from shell prompt:

% dd if=/var/tmp/test/install-media-package-name of=/dev/da0 bs=64k

Once it completes, unplug the USB and plug into a another firewall (slot0 of routing engine) in which compact flash is corrupted and then reboot the device.

Then you will observe a message that the device is booting from USB

===================================================
FreeBSD/PowerPC U-Boot bootstrap loader, Revision 2.2
([email protected], Thu Aug 21 08:51:56 PDT 2008)
Memory: 1024MB
Trying to boot from USB  Loading /boot/defaults/loader.conf

=================== Bootstrap installer starting ===================

Initialized the environment
Routing engine model is RE-SRX3600
Discovered that flash disk = ad0 , hard disk = ad2
Disk to install is ad0 ad2
mfs: available=1923744
Using 1923744 for /tmp
WARNING: The installation will erase the contents of your disks.
Do you wish to continue (y/n)?

Press Y to format the compact-flash and reinstall the Junos packages on it.

Once the installation is complete, the device will reboot automatically and prompt for ejecting the USB so that it can boot from the Compact-flash as shown below.

ep: /mnt/etc/db/pkg/*/+COMMENT: No such file or directory machdep.bootsuccess: 0 -> 1 machdep.nextbootdev: usb -> compact-flash 
Eject the installation media and hit [Enter] to reboot?

Once the device will reboot completely it will ask for user name, and it will allow you to go inside CLI> of the device.

Related

Filed Under: Juniper Tagged With: SRX, USB Boot Disk

Recent Posts

  • How do I give user access to Jenkins?
  • What is docker volume command?
  • What is the date format in Unix?
  • What is the difference between ARG and ENV Docker?
  • What is rsync command Linux?
  • How to Add Music to Snapchat 2021 Android? | How to Search, Add, Share Songs on Snapchat Story?
  • How to Enable Snapchat Notifications for Android & iPhone? | Steps to Turn on Snapchat Bitmoji Notification
  • Easy Methods to Fix Snapchat Camera Not Working Black Screen Issue | Reasons & Troubleshooting Tips to Solve Snapchat Camera Problems
  • Detailed Procedure for How to Update Snapchat on iOS 14 for Free
  • What is Snapchat Spotlight Feature? How to Make a Spotlight on Snapchat?
  • Snapchat Hack Tutorial 2021: Can I hack a Snapchat Account without them knowing?

Copyright © 2025 · News Pro Theme on Genesis Framework · WordPress · Log in