Configuration Library
Configuration Library

Junos Corrupted Software image Recovery Using USB

[ Edited ]
‎11-11-2010 04:39 AM

Product : SRX , EX Switches

 

Version : 9.x & Above

 

Target : Junos is not coming up  ( boot up is ont complete ) & You need to Fix that

 

1-get a flash & fromt it then put junos.tgz copy on it ( without creating flodres)

For Format : Use FAT if USB  size is less than equal to 2GB or FAT32 if USB is greater than or equal to 4 GB.

 

2-insert the flash into the device at one of the USB ports

 

3-Reboot the device , When junos is coming up , you will see the message :  " HIt  Space to to  abort autoboot "

Hit space , you will be at loader mode , the prompt should be   "loader>" 

 

4-If the prompt is  " > "  , type ">boot"  to make it "loader>"

 

5-  Type the command :

loader>  install   file:///jinstall-ex-3200-10.0S1.1-domestic-signed.tgz  ( or depending on your version  you put on the flash)

 

Now the Jnos will be installed & come up normally again

 

 

3 REPLIES 3
Configuration Library

Re: Junos Corrupted Software image Recovery Using USB

‎11-12-2012 11:59 PM

i alredy do this but still problem

 

U-Boot 1.1.6 (Build time: Nov 19 2009 - 07:52:31)

SRX_100_LOWMEM board revision major:0, minor:0, serial #: AT0610AF0868
OCTEON CN5020-SCP pass 1.1, Core clock: 500 MHz, DDR clock: 266 MHz (532 Mhz dat
a rate)
DRAM:  512 MB
Starting Memory POST...
Checking datalines... OK
Checking address lines... OK
Checking 512K memory for U-Boot... OK.
Running U-Boot CRC Test... OK.
Flash:  4 MB
USB:   scanning bus for devices... 4 USB Device(s) found
       scanning bus for storage devices... 2 Storage Device(s) found
Clearing DRAM....... done
BIST check passed.
Net:   pic init done (err = 0)octeth0
POST Passed
Press SPACE to abort autoboot in 1 seconds
ELF file is 32 bit
Loading .text @ 0x8f000078 (241008 bytes)
Loading .rodata @ 0x8f03ade8 (13908 bytes)
Loading .rodata.str1.4 @ 0x8f03e43c (15972 bytes)
Loading set_Xcommand_set @ 0x8f0422a0 (96 bytes)
Loading .rodata.cst4 @ 0x8f042300 (20 bytes)
Loading .data @ 0x8f043000 (5572 bytes)
Loading .data.rel.ro @ 0x8f0445c4 (120 bytes)
Loading .data.rel @ 0x8f04463c (136 bytes)
Clearing .bss @ 0x8f0446c8 (8304 bytes)
## Starting application at 0x8f000078 ...
Consoles: U-Boot console
Found compatible API, ver. 1.6

FreeBSD/MIPS U-Boot bootstrap loader, Revision 1.6
(builder@ormonth.juniper.net, Thu Nov 19 07:07:59 UTC 2009)
Memory: 512MB
[5]Booting from nand-flash slice 2
Un-Protected 1 sectors
writing to flash...
Protected 1 sectors
Loading /boot/defaults/loader.conf
/kernel data=0x90a784+0xc6a78 syms=[0x4+0x74120+0x4+0xa4230]


Hit [Enter] to boot immediately, or space bar for command prompt.
Booting [/kernel] in 1 second...

Type '?' for a list of commands, 'help' for more detailed help.
loader> elf32_loadimage: read failed
elf32_loadimage: not found
loader> install file:///srx10.0R2.10.tgz
cannot open package (error 95)
loader> install file:///junos-srxsme-10.0R1.8-domestic.tgz
cannot open package (error 95)
loader> 2 Storage Device(s) found
Clearing DRAM....... done
BIST check passed.
Net:   pic init done (err = 0)octeth0
POST Passed
Press SPACE to abort autoboot in 1 seconds
ELF file is 32 bit
Loading .text @ 0x8f000078 (241008 bytes)
Loading .rodata @ 0x8f03ade8 (13908 bytes)
Loading .rodata.str1.4 @ 0x8f03e43c (15972 bytes)
Loading set_Xcommand_set @ 0x8f0422a0 (96 bytes)
Loading .rodata.cst4 @ 0x8f042300 (20 bytes)
Loading .data @ 0x8f043000 (5572 bytes)
Loading .data.rel.ro @ 0x8f0445c4 (120 bytes)
Loading .data.rel @ 0x8f04463c (136 bytes)
Clearing .bss @ 0x8f0446c8 (8304 bytes)
## Starting application at 0x8f000078 ...
Consoles: U-Boot console
Found compatible API, ver. 1.6

FreeBSD/MIPS U-Boot bootstrap loader, Revision 1.6
(builder@ormonth.juniper.net, Thu Nov 19 07:07:59 UTC 2009)
Memory: 512MB
[6]Booting from nand-flash slice 3
Un-Protected 1 sectors
writing to flash...
Protected 1 sectors
\
can't load '/kernel'
can't load '/kernel.old'
Press Enter to stop auto bootsequencing and to enter loader prompt.


Type '?' for a list of commands, 'help' for more detailed help.
loader> boot
can't load '/kernel'
can't load '/kernel.old'
no bootable kernel
loader> install file:///junos-srxsme-10.0R1.8-domestic.tgz
/kernel data=0x90a784+0xc6a78
readin failed

elf32_loadimage: read failed
panic: zfree(

 

Configuration Library

Re: Junos Corrupted Software image Recovery Using USB

[ Edited ]
‎02-11-2013 10:28 AM

Hello;; I have already published a post at link http://forums.juniper.net/t5/Junos-and-Junosphere/EX-3200-4200-Switch-Recovery/m-p/178233.. Actually file system is corrupt in your case and device can not boot in normal way.. Now you have to boot the device from alternate media , make a bootable USB by inserting it in any serviceable device then use same bootable USB to boot up your faulty device. Complete procedure is given at documents attached herewith.

 

Please mark this solution if it works, A kudos is good way to appreciate

 

 

Please mark this as accepted solution if it works for you

A kudos is a good way of appreciation



Kashif Nawaz


JNCIE-Sec #170, JNCIE-SP#2492

JNCSP Ent/ Sec
https://packet-expert.org
Configuration Library

Re: Junos Corrupted Software image Recovery Using USB

‎03-23-2013 10:08 AM

Hi,

 

 

 

I usualy do it by connecting my laptop directly connected to a Juniper device. 

 

First, I configured the switch/router's port with an IP Address on it . 

 

Second, I configured my IP address on my laptop to be the same subnet of what I configured in the switch.

 

Then, it should see each other. 

 

Then, I use filezilla FTP client so that I could upload the firmware to /var/tmp of the switch/router.

 

You need to download the firmware first then copy it to var/tmp/ location in your switch/router 

then issue the command:

 

user@switch> request system software add /var/tmp/file.tgz

 

then mostly it will push through. unless, the software is corrupted when downloaded.

 

Another solution is, using a bootable USB. 

 

Just insert it to your switch/router then you will a massage in your terminal that there is a new bootable device. 

 

make sure that the firmware is in the USB

 

Then, issue the command:

 

user@switch>request system software add /tmp/usb/file.tgz

JNCIA
Juniper Networks Innovative Champion

If you find this as a solution you may click "Accept Solution".
If you think I deserve a kudos, you may also click the star icon at the bottom of my reply/post.