In this article, you'll find information on how to copy Junos OS from a computer to a bootable device using PHYSDISKWRITE.EXE or Win32DiskImager.
Note: To create a Junos OS bootable media on your Windows-based system using the Cygwin software, refer to: KB12170 - How to install Junos Install Media on a PCMCIA flash card using Cygwin [juniper.net] .
IMPORTANT NOTE: once you turn the USB media into a bootable media/USB, it should be used only in the device the download image is intended for. This because the USB will not work anymore as a storage device but as a booting stick for that specific device.For example: junos-vmhost-install-usb-mx-x86-64-23.2R1.13.img.gz should only be used in MX960.
To know which version is intended for a specific platform please verify https://support.juniper.net/support/downloads/
In the Juniper downloads page, you can type the name of your platform and after that you can look for "Install Media" tab, there you find the USB installation image for your platform.Once the USB is converted into a bootable media, all you need to do is insert it into the respective Juniper device and restart it, the bootable media will install the version on its own.Once you finished the installation process, the USB can be formatted again in your PC to become a regular USB storage device.WARNING: The installation via USB will erase the contents of your Routing Engine disks.
Please notice that any configuration and stored files will be removed from the device, as the CLI indicates during the installation process.
The need to use other bootable devices can arise for a couple of reasons:
Requirements:
OR ... to use the PhysGUI, perform the following steps: Right-click PhysGUI and click Properties. Under the Compatibility tab, check "Run this program as an administrator."Double-click PhysGUI.exe, which comes with Physdiskwrite.exe.Click Yes to elevate privileges in UAC if prompted.Right-click on the Flash drive and select Image laden > Offnen (translated means upload image > open).When the warning "Remove 2GB restriction (WARNING!)" displays, select the checkbox.Another warning in German appears; click OK.A CMD window displays and the "bytes written" increments. When it is done, the CMD window closes. The message "Physdiskwrite beendet" appears (translated means closed Physdiskwrite); click OK.Go to Windows Explorer, right-click on the Removable Disk (E:), and select Eject.If your PC has "Safely Remove Hardware" in the System Tray, click the message. Go to the "Using the bootable media to erase the Routing Engine" section.
Which disk do you want to write? (0..1) 1 About to overwrite the contents of disk 1 with new data. Proceed? (y/n) y
Found compressed image file 5259264 bytes written
External USB present ... Will try to boot from USB nand-flash0 nand-flash1 ... Trying to boot from USB Loading /boot/defaults/loader.conf ... WARNING: The installation will erase the contents of your disks. Do you wish to continue (y/n)? Note: This is why you MUST be on the console, so you can respond to this prompt. Otherwise the router will appear to hang, as it waits at this prompt.
External USB present ... Will try to boot from USB nand-flash0 nand-flash1 ... Trying to boot from USB Loading /boot/defaults/loader.conf ... WARNING: The installation will erase the contents of your disks. Do you wish to continue (y/n)?
Eject the installation media and hit [Enter] to reboot?
External USB present ... Will try to boot from USB nand-flash0 nand-flash1 FreeBSD/PowerPC U-Boot bootstrap loader, Revision 2.2 ([email protected], Wed Feb 3 09:50:07 PST 2010) Memory: 2048MB Trying to boot from nand-flash0
Amnesiac (ttyu0)
login: root root@% cli
root> configure Entering configuration mode [edit] root# set system host-name new-MX80 [edit] root# commit [edit] 'system' Missing mandatory statement: 'root-authentication' error: commit failed: (missing statements) [edit] root# set system root-authentication plain-text-password New password: Retype new password: [edit] root# commit commit complete [edit] root@new-MX80#
root@new-MX80# load override terminal [Type ^D at a new line to end input] (paste in the config, then type ctrl+D, then commit).
root@new-MX80#save /var/tmp/my-MX80-config.conf
11/29/2023 dconejomoraI added the following note so the customer will not get confused using a bootable USB and a regular USB storage device.
"IMPORTANT NOTE: once you turn the USB media into a bootable media/USB it should be only used in the device the download image is intended for, this because the USB will not work anymore as a storage device but as a booting stick for that specific device. Once you finished the installation process, the USB can be formatted again in your PC to become a regular USB storage device."