Changes between Initial Version and Version 1 of CiscoASA5505CFRAM


Ignore:
Timestamp:
Apr 8, 2011 1:13:35 AM (14 years ago)
Author:
iva
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • CiscoASA5505CFRAM

    v1 v1  
     1
     2== Compact Flash Card, RAM for Cisco ASA5505 ==
     3
     4File system information for an original, Cisco-branded !CompactFlash card (128 MB):
     5
     6{{{
     7asa5505> show flash filesys
     8
     9******** Flash Card Geometry/Format Info ********
     10
     11COMPACT FLASH CARD GEOMETRY
     12   Number of Heads:            8
     13   Number of Cylinders       980
     14   Sectors per Cylinder       32
     15   Sector Size               512
     16   Total Sectors          250880
     17
     18COMPACT FLASH CARD FORMAT
     19   Number of FAT Sectors     122
     20   Sectors Per Cluster         8
     21   Number of Clusters      31033
     22   Number of Data Sectors 248544
     23   Base Root Sector          245
     24   Base FAT Sector             1
     25   Base Data Sector          277
     26
     27asa5505>
     28}}}
     29
     30As a replacement will use **!CompactFlash Elite Pro 2 GB** card made by Kingston ({{{CF/2GB-S}}}).
     31
     321. Save files/directories from the original CF card to a Linux computer.
     33
     34{{{
     35# cp -a /media/g .
     36# ls -loga g
     37total 23180
     38drwxr-xr-x 5    4096 Dec 31  1969 .
     39drwxr-xr-x 3    4096 Apr  6 21:29 ..
     40-rwxr-xr-x 1 8589312 Oct 16  2009 asa724-33-k8.bin
     41-rwxr-xr-x 1 8570880 May 19  2010 asa725-k8.bin
     42-rwxr-xr-x 1 6507516 May 19  2010 asdm-525.bin
     43drwxr-xr-x 2    4096 Feb 13  2007 boot
     44drwxr-xr-x 2    4096 May 30  2007 crypto_archive
     45drwxr-xr-x 2    4096 Feb 13  2007 .private
     46#
     47# umount /media/g
     48#
     49}}}
     50
     512. Partition the card, make sure that partition size is 2048 MB (or less), even though an actual card has slightly higher capacity.
     52
     53{{{
     54# fdisk -l /dev/sde
     55
     56Disk /dev/sde: 2063 MB, 2063597568 bytes
     5716 heads, 12 sectors/track, 20992 cylinders
     58Units = cylinders of 192 * 512 = 98304 bytes
     59
     60   Device Boot      Start         End      Blocks   Id  System
     61/dev/sde1               1       20834     2000058    6  FAT16
     62
     63#
     64}}}
     65
     663. Create an MS-DOS (FAT16) file system.
     67
     68{{{
     69# mkdosfs -F 16 -n g -S 512 -v /dev/sde1
     70mkdosfs 2.11 (12 Mar 2005)
     71/dev/sde1 has 16 heads and 12 sectors per track,
     72logical sector size is 512,
     73using 0xf8 media descriptor, with 4000116 sectors;
     74file system has 2 16-bit FATs and 64 sectors per cluster.
     75FAT size is 245 sectors, and provides 62493 clusters.
     76Root directory contains 512 slots.
     77Volume ID is 4d9df35b, volume label g          .
     78#
     79}}}
     80
     814. Copy files onto the replacement card.
     82
     83{{{
     84# mount -t vfat /dev/sde1 /mnt
     85# mkdir /mnt/.private
     86# cp -a --no-preserve ownership .private/mode.dat /mnt/.private
     87# cp -a --no-preserve ownership .private/license.dat /mnt/.private
     88# cp -a --no-preserve ownership .private/DATAFILE /mnt/.private
     89# cp -a --no-preserve ownership .private/startup-config /mnt/.private
     90# cp -a --no-preserve ownership boot /mnt
     91# cp -a --no-preserve ownership crypto_archive /mnt
     92# cp -a --no-preserve ownership asa724-33-k8.bin asa725-k8.bin asdm-525.bin /mnt
     93# sync
     94# umount /mnt
     95#
     96}}}
     97
     985. Put new card in to the appliance, boot it up, inspect the file system.
     99
     100{{{
     101asa5505# show version | grep Compact Flash
     102Internal ATA Compact Flash, 2048MB
     103asa5505#
     104asa5505# dir disk0:/
     105
     106Directory of disk0:/
     107
     1082      drw-  0           03:28:22 Apr 07 2011  .private
     1097      drw-  0           21:20:48 Feb 12 2007  boot
     1109      drw-  0           04:16:12 May 30 2007  crypto_archive
     11110     -rw-  8589312     17:32:04 Oct 15 2009  asa724-33-k8.bin
     11211     -rw-  8570880     12:23:26 May 19 2010  asa725-k8.bin
     11312     -rw-  6507516     12:24:42 May 19 2010  asdm-525.bin
     114
     1152047770624 bytes total (2023784448 bytes free)
     116asa5505#
     117asa5505# show flash       
     118-#- --length-- -----date/time------ path
     119  2 0          Apr 07 2011 03:28:22 .private
     120  3 12         Feb 12 2007 21:16:08 .private/mode.dat
     121  4 40         Feb 12 2007 21:19:56 .private/license.dat
     122  5 3390       Apr 04 2011 10:42:58 .private/DATAFILE
     123  6 22185      Apr 04 2011 10:42:56 .private/startup-config
     124  7 0          Feb 12 2007 21:20:48 boot
     125  8 210        Apr 04 2011 10:42:58 boot/grub.conf
     126  9 0          May 30 2007 04:16:12 crypto_archive
     127 10 8589312    Oct 15 2009 17:32:04 asa724-33-k8.bin
     128 11 8570880    May 19 2010 12:23:26 asa725-k8.bin
     129 12 6507516    May 19 2010 12:24:42 asdm-525.bin
     130
     1312023784448 bytes available (23986176 bytes used)
     132
     133asa5505#
     134asa5505# show flash filesys
     135
     136******** Flash Card Geometry/Format Info ********
     137
     138COMPACT FLASH CARD GEOMETRY
     139   Number of Heads:           16
     140   Number of Cylinders      7872
     141   Sectors per Cylinder       32
     142   Sector Size               512
     143   Total Sectors          4030464
     144
     145COMPACT FLASH CARD FORMAT
     146   Number of FAT Sectors     245
     147   Sectors Per Cluster        64
     148   Number of Clusters      62493
     149   Number of Data Sectors 4000116
     150   Base Root Sector          491
     151   Base FAT Sector             1
     152   Base Data Sector          523
     153
     154asa5505#
     155}}}
     156
     1576. Check main memory on the security appliance.
     158
     159{{{
     160asa5505# show version | grep RAM
     161Hardware:   ASA5505, 1024 MB RAM, CPU Geode 500 MHz
     162asa5505#
     163asa5505# show memory
     164Free memory:      1000734536 bytes (93%)
     165Used memory:        73007288 bytes ( 7%)
     166-------------     ----------------
     167Total memory:     1073741824 bytes (100%)
     168asa5505#
     169}}}
     170
     171{{{
     172#!html
     173<div align="center"><a href="/img/cisco/asa5505-int-1000x750.jpg"><img src="/img/cisco/asa5505-int-640x480.jpg" width="640" height="480"></a></div>
     174}}}
     175
     176If need more memory, can use rather standard **DDR-400MHz CL3 Non-ECC !UnBuffered 184-Pin SDRAM DIMM** from a 4-5 years old PC.
     177
     178  The following module will work for sure:
     179
     180    1GB PC3200U-30330 - hynix HYMD512646CP8J-D43 AA \\ Dell: {{{SNPJ0203C/1G}}} \\ Compatible: Dell Dimension 3000, Compaq Presario SR1055CL
     181
     182  This module might work as well, most likely:
     183
     184    1GB PC3200U-30331-E0 - Samsung M368L2923CUN-CCC 0635 \\ Dell: {{{DJ0203.D}}} \\ Compatible: Dell Dimension 3000
     185
     186
     187=== See Also ===
     188
     189http://www.cisco.com/en/US/docs/security/asa/hw/maintenance/5505guide/procs.html \\ Cisco ASA 5505 Adaptive Security Appliance Hardware Installation Guide - Maintenance and Upgrade Procedures
     190
     191http://www.memoryx.net/asa5505.html \\ Cisco ASA 5505 (main memory)
     192
     193http://www.memoryx.net/asa5505flash.html \\ Cisco ASA 5505 (flash memory)
     194
     195http://cisconews.co.uk/2007/12/27/asa-5505-flash-memory-hack/ \\ Upgrade Cisco ASA5505 Flash memory
     196
     197