[j-nsp] create a bootable compact flash
Yevgeniy Voloshin
yevgeniy.voloshin at gmail.com
Thu Apr 16 23:47:56 EDT 2009
Hi,
check recipe 1.24 from JUNOS Cookbook By Aviva Garrett - Creating an
Emergency Boot Disk:
*Problem
You want to create a boot disk to use in an emergency if the software and
filesystems on the router become so damaged that you just want to
reconfigure the router from scratch.
**
Solution
Create a PCMCIA boot flash card that contains the JUNOS install media.
First, copy the install media from the JUNOS software download page on the
Juniper Networks support site ( http://www.juniper.net/support). On M-series
and T-series routers, copy this file to the router's /var/tmp directory.
Then, insert a PC card into the router's drive and copy the install media to
the PC card:
aviva at router1> start shell
aviva at router1% cd /var/tmp
aviva at router1% su
root at router1%
dd if=/dev/zero of=/dev/rad3 count=20
root at router1% dd if=install-media-7.4R1.7-domestic of=/dev/rad3 bs=64k
To create a boot flash card for a J-series router, copy the install media to
a Windows or Unix PC and uncompress it with gzip or WinZip. Connect a PCMCIA
adapter or USB card reader to the PC and insert a compact flash card into
the device. On a Unix PC, use the following commands to copy the image to
the compact flash:
root at RouterJ# dd if=junos-jseries-7.4R1.7-export-cf256. of=/dev/hde
250368+0 records in
250368+0 records out
On a Windows XP or Windows 2000 PC, use either the Norton Ghost utility or
the dd command shown previously.
Discussion
One of the tasks you can do to prepare for router disaster recovery is to
create an emergency PCMCIA boot media. This is a bootable media that
contains an image of a specific JUNOS software release. When you boot the
router from this media, it installs the complete router from scratch, first
doing a full reformat of the hard disk and flash, then completing a full new
install of all the JUNOS software.
Use the PCMCIA boot media in disaster recovery when a router is hosed and
you need to execute a complete reinstall from scratch. To boot from this
media, the PCMCIA must first be inserted into the slot on the Routing
Engine. When the router boots, the first thing it looks for is a PCMCIA in
the slot. If it's not there, it moves on to the flash drive. If the PCMCIA
is there, the router stops and waits for a user with console access to the
router to press Enter to continue. The router does not automatically execute
the reformat and reinstallation; you must tell it to do so. That way, if
someone inserts the PCMCIA in the slot by mistake, the router doesn't format
and reinstall when you didn't plan for it to do so.
The J-series router follows the same procedure but uses a compact flash card
instead of a PCMCIA card. This recipe shows the commands to use for a 256-MB
compact flash.J-series install media are also available for other sizes,
including 128, 512, and 1,024 MB.
See Also
Juniper Networks web site (http://www.juniper.net/support)
*I use second example to create CF on my Windows and WinImage
http://www.winimage.com/winimage.htm and Install media (You can download it
from juniper.net for different size CF)
---
Yev.
Mitch Hedberg<http://www.brainyquote.com/quotes/authors/m/mitch_hedberg.html>
- "I drank some boiling water because I wanted to whistle."
2009/4/17 snort bsd <snortbsd at yahoo.com.au>
>
> Hi all:
>
> How could i create a bootable compact flash? Basically I want the m7i boot
> from compact flash and running the system off the compact flash.
>
> Thanks
>
>
> The new Internet Explorer 8 optimised for Yahoo!7: Faster, Safer,
> Easier.
> _______________________________________________
> juniper-nsp mailing list juniper-nsp at puck.nether.net
> https://puck.nether.net/mailman/listinfo/juniper-nsp
>
More information about the juniper-nsp
mailing list