Description

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 Information