Creating an Emergency Boot Device for QFX Series Switches
If Junos OS on the device is damaged in some way that prevents the software from loading properly, you can use an emergency boot device to repartition the primary disk and load a fresh installation of Junos OS. Use the following procedure to create an emergency boot device.
Before you begin, you need to the installation media image for your device and Junos OS release from https://www.juniper.net/customers/support/ .
You can create the emergency boot device on another Juniper Networks switch or router, or any PC or laptop that supports Linux. The steps you take to create the emergency boot device vary, depending on the device.
To create an emergency boot device:
- Use FTP to copy the installation media image into the
/var/tmpdirectory on the device.
- Use gunzip to unzip the image file.
- Insert a USB device into the USB port.
- From the Junos OS command-line interface (CLI), start
user@device> start shell
- Switch to the root account using the su command:
The password is the root password for the device. If you logged in to the device as root, you do not need to perform this step.
- Enter the following command on the device:
root@device% dd if=/var/tmp/filename of=/dev/da1 bs=1m
The device writes the installation media image to the USB device:
root@device% dd if=install-media-qfx-5e-15.1X53-D30.5-domestic.img of=/dev/da0 bs=1m 1399+0 records in 1399+0 records out 1466957824 bytes transferred in 394.081902 secs (3722469 bytes/sec)
- Log out of the shell: