CCIE Pursuit Blog

December 12, 2007

LFU 12: Know Your Flash From A Hole In The Ground

I was using a 2600 router for r6.  It had a single FastEthernet port (with a single serial port).  The Internetwork Expert lab topography calls for 2 Ethernet ports for r6.  So far this has not been a problem as all of the scenarios I have done have only used one Ethernet interface.  Volume II Lab 3 requires 2 Ethernet interfaces, so it was time for me to replace r6. 

I couldn’t find a 2600 with more than one Ethernet interface and using a 2800 seemed like overkill.  I found a bunch of 3725s (a model that I am not familiar with) and one actually still had a Compact Flash card in it.  It was 2 rack units, but at least no one would miss it so I nabbed it.

I downloaded the appropriate IOS image (c3725-adventerprisek9-mz.124-10.bin) from CCO and started my TFTP server:

r6#sh flash: all
Partition   Size    Used      Free      Bank-Size  State          Copy Mode
  1        31167K      0K    31167K        0K      Read/Write     Direct

System CompactFlash directory:
No files in System CompactFlash
[0 bytes used, 31916028 available, 31916028 total]
31168K bytes of ATA System CompactFlash (Read/Write)

 Chip information NOT available.

r6#
*Mar  1 00:29:29.587: %FILESYS-5-CF: External CompactFlash removed
Flash card inserted in slot0. Reading filesystem on the device…
Wait for the completion message before accessing device
Filesystem read completed in slot0.
Device in slot0 available for use

r6#copy tftp flash:
Address or name of remote host [10.1.1.100]?
Source filename [c3725-adventerprisek9-mz.124-10.bin]?
Destination filename [c3725-adventerprisek9-mz.124-10.bin]?
Accessing tftp://10.1.1.100/c3725-adventerprisek9-mz.124-10.bin…
Erase flash: before copying? [confirm]
Erasing the flash filesystem will remove all files! Continue? [confirm]
Erasing device… eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
eeeeeeeeeeeeeeeeeeeeeeeee …erased
Erase of flash: complete
Loading c3725-adventerprisek9-mz.124-10.bin from 10.1.1.100 (via FastEthernet0/0): !
%Error copying tftp://10.1.1.100/c3725-adventerprisek9-mz.124-10.bin (Not enough space on device)

WTF???  I have a blank 64M flash card and it can’t fit a 36M bin file?

I went and found a 128M card and I got the same error.

r6#sh flash: all
Partition   Size    Used      Free      Bank-Size  State          Copy Mode
  1        31167K      0K    31167K        0K      Read/Write     Direct

System CompactFlash directory:
No files in System CompactFlash
[0 bytes used, 31916028 available, 31916028 total]
31168K bytes of ATA System CompactFlash (Read/Write)

 Chip information NOT available.

Question:  Why is there only 31M available on an empty 128M flash card? 
Answer:Cuz I is dumb…dumb as dirt.

The router did its best to inform my stupid ass that the card was in SLOT0, but I just assumed that flash: meant external CompactFlash.  If I would have bothered to look a little closer at the IOS output I would have seen that the external CompactFlash card was in slot0 and that the CompactFlash in flash: was systemCompactFlash.  I would have saved myself some time and wiped that dumb look off my face if I would have taken just a little time to read.  Well, I would have saved some time…the dumb look is permanent.  :-)

r6#sh slot0:
-#- –length– ———date/time——— path
1     21228464 Mar 01 1993 02:49:42 +00:00 c3725-js-mz.123-9a.bin
2     22889736 Mar 01 1993 18:20:48 +00:00 c3725-adventerprisek9-mz.123-9a.bin
3      3207168 Mar 01 1993 00:16:52 +00:00 sdm.tar
4      1452032 Mar 01 1993 00:33:16 +00:00 qdm.tar

r6#copy tftp slot0:
Address or name of remote host [10.1.1.100]?
Source filename [c3725-adventerprisek9-mz.124-10.bin]?
Destination filename [c3725-adventerprisek9-mz.124-10.bin]?
Accessing tftp://10.1.1.100/c3725-adventerprisek9-mz.124-10.bin…
Erase slot0: before copying? [confirm]
Erasing the slot0 filesystem will remove all files! Continue? [confirm]
Current DOS File System flash card in slot0: will be formatted into Low End File
 System flash card!  Continue? [confirm]
Erasing device… eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee …erased
Erase of slot0: complete
Loading c3725-adventerprisek9-mz.124-10.bin from 10.1.1.100 (via FastEthernet0/0
): !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[OK - 36934872 bytes]

r6#sh slot0

Slot0 CompactFlash directory:
File  Length   Name/status
  1   36934872  c3725-adventerprisek9-mz.124-10.bin
[36934936 bytes used, 27159268 available, 64094204 total]
62592K bytes of ATA Slot0 CompactFlash (Read/Write)

Remember to change your boot statement…which leads to my next LFU.

Make sure your router can boot from compact flash.  I could not get this stupid 3725 to boot from slot0.  I finally gave up and dropped an IP base image into flash: and booted to that.  Hopefully there’s no IPv6 on r6.  :0

The Rubric Theme Blog at WordPress.com.

Follow

Get every new post delivered to your Inbox.

Join 109 other followers