12-01-2008 03:38 AM
I'm trying to create a PCMCIA boot flash card for a M7i from my Windows XP PC. I managed to write the CF card with physdiskwrite v0.5.1:
170977280/170977280 bytes written in total
- how can I check if the flash card is OK for booting the router ?
- is there a way to see which software is installed on a card ?
12-01-2008 09:14 AM
As I remember when I wrote this type of file on my PC when the result was the one you have (equal values on the incoming and outgoing bytes) the result was OK.
You can insert the card in a live router and if you monitor the log messages you will see this:
Dec 1 17:54:59 M10i /kernel: pccard: card inserted, slot 0
Dec 1 17:55:03 M10i chassisd: CHASSISD_SNMP_TRAP7: SNMP trap generated: FRU insertion (jnxFruContentsIndex 9, jnxFruL1Index 1, jnxFruL2Index 1, jnxFruL3Index 0, jnxFruName Routing Engine 0 PCMCIA Card 0, jnxFruType 6, jnxFruSlot 1)
Dec 1 17:55:05 M10i pccardd: Card "CF Card"("CFA 256MB CHH") [5.0] [[none]] matched "CF Card" ("/.*/") [(null)] [(null)]
Dec 1 17:55:10 M10i /kernel: ata4 at port 0x240-0x247,0x24e irq 15 slot 0 on pccard0
Dec 1 17:55:10 M10i /kernel: ad3: 244MB <256MB CHH> [695/15/48] at ata4-master BIOSPIO
Dec 1 17:55:10 M10i pccardd: ata4: CF Card (/.*/) inserted.
Dec 1 17:55:13 M10i /kernel: ad3: cannot find label (no disk label)
Dec 1 17:55:13 M10i /kernel: ad3s2: cannot find label (no disk label)
Dec 1 17:55:18 M10i /kernel: ad3: cannot find label (no disk label)
Dec 1 17:55:18 M10i /kernel: ad3s2: cannot find label (no disk label)
This test has been done with a compact fash with the same version as you have.
After that the normal way I would use is a normal boot of the router with the card pluged in:
You will normaly see this during the boot process:
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
JUNOS 8.5R4.3 #0: 2008-08-12 23:11:38 UTC
Timecounter "i8254" frequency 1193182 Hz quality 0
=================== Bootstrap installer starting ===================
Initialized the environment
Routing engine model is RE-850
Discovered that flash disk = ad0 , hard disk = ad1
Disk to install is ad0 ad1
Using 1Gb for /tmp
WARNING: The installation will erase the contents of your disks.
Do you wish to continue (y/n)?
Here you will be able to answer no if you don't want to install the version shown before.
I believe there is certainly another way but you would need to mount the PCMCIA card and then see the files in it but I wouldn't be able to help you in this way
Hope this helps you
12-02-2008 02:18 AM
I know that I can check the contents of a card by rebooting a router, but I was looking for an easier way. Actually I have several cards I have to check.
I already tried to mount ad3, but I get errors, it seems not to be that simple:
mount /dev/ad3 /root/cfcard/
mount: /dev/ad3 on /root/cfcard: incorrect super block
fsck: Could not determine filesystem type
12-08-2008 01:37 PM
You can get the md5 checksum of the PCMCIA image. And compare that to the install image. The md5 of the install image is on the downloads page.
1. Install the PCMCIA card in another router, (or PC with md5 and dd util)
2. Note the size of the original image file
3. Use dd to output the PCMCIA image to md5.
4. Compare the result with original checksum
/* Example done on router shell */
The install-media-8.5R4.3-domestic image file was 170977280 bytes. So, I divide that by 1K blocks (1024 bytes) for dd util. That gives me (170977280B / 1024B) = 166970 blocks.
root@router% dd if=/dev/ad3 bs=1K count=166970 | md5
166970+0 records in
166970+0 records out
170977280 bytes transferred in 197.903333 secs (863943 bytes/sec)
12-09-2008 09:54 PM
I want to use my CompactFlash with CompackFlash PC Card Adapter to write image file by PC, and then remove adapter left only CF card to boot M7i, which image file can be used?
I tried write 'install-media-XXRYY-AAAA' image file, this can boot router if using PCMCIA card; but when i using only CF card insert the RE, i cann't boot router.
12-10-2008 11:36 AM
You can create the PCMCIA disk, using your PC w/ the install-media. But, you can not install to CompactFlash via your PC. You will need to install JUNOS on the compact flash, installed in the router, using the jinstall- package, or by booting with the PCMCIA, while the CompactFlash is installed in the router.
The PCMCIA card is only used to wipe the entire filesystem and re-install on the router's primary partion.