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

[M/MX/T] How to install Junos Install Media on a PCMCIA flash card using Cygwin

0

0

Article ID: KB12170 KB Last Updated: 20 Feb 2020Version: 5.0
Summary:

If a routing engine (RE) is down and cannot boot up from either the compact flash (CF) or a hard drive, the image may be corrupt or absent. A procedure is needed to install the Junos OS install-media software onto a PCMCIA card from a computer, rather than using another router. This article describes how to re-load the image on the CF using Cygwin.

 

Symptoms:

The routing engine is down and cannot boot up from either CF or hard drive. A procedure is needed to install the Junos OS install-media software onto a PCMCIA card from a computer, rather than using another router.

 

Solution:

Windows does not allow access to raw devices. Therefore, for this article, Cygwin needs to be installed and can be downloaded here: http://cygwin.com/setup.exe. Once installed, the Cygwin icon should be installed on the computer desktop.

Plug in the CF into the PCMCIA sleeve adapter first. Then insert the CF device in the computer slot meant for PCMCIA. Follow the procedure below to complete the installation.

  1. Click the Cygwin software icon on the desktop and it will launch a command prompt. The command prompt for Cygwin is:
PC-name@PC-name-lt ~
$
  1. Type the command dd if=/dev/sdb of=/dev/null count=10.

$ dd if=/dev/sdb of=/dev/null count=10

Note: You will get this error message if there is a problem accessing the CF inserted in the PC

dd: opening `/dev/sdb': No such file or directory
  1. Once the CF is installed, correct the command success with the following output:

PC-name@PC-name-lt ~
$ dd if=/dev/sdb of=/dev/null count=10
10+0 records in
10+0 records out
5120 bytes (5.1 kB) copied, 0.062 s, 82.6 kB/s
  1. Assuming that the Junos OS install-media image is on D drive, change directory to the source folder:

PC-name@PC-name-lt ~
$ cd d:
PC-name@PC-name-lt /cygdrive/d
$ cd code
PC-name@PC-name-lt /cygdrive/d/code
$ dir
install-media-16.2R1.6-domestic
  1. The following command is used to write the code onto the CF.

$ dd if=install-media-16.2R1.6-domestic of=/dev/sdb bs=64k

3912+0 records in
3912+0 records out
256376832 bytes (256 MB) copied, 274.843 s, 933 kB/s

Note:

For M Series, T Series, and MX Series, the install media file name looks like install-media-16.2R1.6-domestic.

 

Related Links

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