| 1 | |
| 2 | == Compact Flash Card, RAM for Cisco ASA5505 == |
| 3 | |
| 4 | File system information for an original, Cisco-branded !CompactFlash card (128 MB): |
| 5 | |
| 6 | {{{ |
| 7 | asa5505> show flash filesys |
| 8 | |
| 9 | ******** Flash Card Geometry/Format Info ******** |
| 10 | |
| 11 | COMPACT 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 | |
| 18 | COMPACT 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 | |
| 27 | asa5505> |
| 28 | }}} |
| 29 | |
| 30 | As a replacement will use **!CompactFlash Elite Pro 2 GB** card made by Kingston ({{{CF/2GB-S}}}). |
| 31 | |
| 32 | 1. Save files/directories from the original CF card to a Linux computer. |
| 33 | |
| 34 | {{{ |
| 35 | # cp -a /media/g . |
| 36 | # ls -loga g |
| 37 | total 23180 |
| 38 | drwxr-xr-x 5 4096 Dec 31 1969 . |
| 39 | drwxr-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 |
| 43 | drwxr-xr-x 2 4096 Feb 13 2007 boot |
| 44 | drwxr-xr-x 2 4096 May 30 2007 crypto_archive |
| 45 | drwxr-xr-x 2 4096 Feb 13 2007 .private |
| 46 | # |
| 47 | # umount /media/g |
| 48 | # |
| 49 | }}} |
| 50 | |
| 51 | 2. 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 | |
| 56 | Disk /dev/sde: 2063 MB, 2063597568 bytes |
| 57 | 16 heads, 12 sectors/track, 20992 cylinders |
| 58 | Units = 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 | |
| 66 | 3. Create an MS-DOS (FAT16) file system. |
| 67 | |
| 68 | {{{ |
| 69 | # mkdosfs -F 16 -n g -S 512 -v /dev/sde1 |
| 70 | mkdosfs 2.11 (12 Mar 2005) |
| 71 | /dev/sde1 has 16 heads and 12 sectors per track, |
| 72 | logical sector size is 512, |
| 73 | using 0xf8 media descriptor, with 4000116 sectors; |
| 74 | file system has 2 16-bit FATs and 64 sectors per cluster. |
| 75 | FAT size is 245 sectors, and provides 62493 clusters. |
| 76 | Root directory contains 512 slots. |
| 77 | Volume ID is 4d9df35b, volume label g . |
| 78 | # |
| 79 | }}} |
| 80 | |
| 81 | 4. 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 | |
| 98 | 5. Put new card in to the appliance, boot it up, inspect the file system. |
| 99 | |
| 100 | {{{ |
| 101 | asa5505# show version | grep Compact Flash |
| 102 | Internal ATA Compact Flash, 2048MB |
| 103 | asa5505# |
| 104 | asa5505# dir disk0:/ |
| 105 | |
| 106 | Directory of disk0:/ |
| 107 | |
| 108 | 2 drw- 0 03:28:22 Apr 07 2011 .private |
| 109 | 7 drw- 0 21:20:48 Feb 12 2007 boot |
| 110 | 9 drw- 0 04:16:12 May 30 2007 crypto_archive |
| 111 | 10 -rw- 8589312 17:32:04 Oct 15 2009 asa724-33-k8.bin |
| 112 | 11 -rw- 8570880 12:23:26 May 19 2010 asa725-k8.bin |
| 113 | 12 -rw- 6507516 12:24:42 May 19 2010 asdm-525.bin |
| 114 | |
| 115 | 2047770624 bytes total (2023784448 bytes free) |
| 116 | asa5505# |
| 117 | asa5505# 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 | |
| 131 | 2023784448 bytes available (23986176 bytes used) |
| 132 | |
| 133 | asa5505# |
| 134 | asa5505# show flash filesys |
| 135 | |
| 136 | ******** Flash Card Geometry/Format Info ******** |
| 137 | |
| 138 | COMPACT 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 | |
| 145 | COMPACT 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 | |
| 154 | asa5505# |
| 155 | }}} |
| 156 | |
| 157 | 6. Check main memory on the security appliance. |
| 158 | |
| 159 | {{{ |
| 160 | asa5505# show version | grep RAM |
| 161 | Hardware: ASA5505, 1024 MB RAM, CPU Geode 500 MHz |
| 162 | asa5505# |
| 163 | asa5505# show memory |
| 164 | Free memory: 1000734536 bytes (93%) |
| 165 | Used memory: 73007288 bytes ( 7%) |
| 166 | ------------- ---------------- |
| 167 | Total memory: 1073741824 bytes (100%) |
| 168 | asa5505# |
| 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 | |
| 176 | If 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 | |
| 189 | http://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 | |
| 191 | http://www.memoryx.net/asa5505.html \\ Cisco ASA 5505 (main memory) |
| 192 | |
| 193 | http://www.memoryx.net/asa5505flash.html \\ Cisco ASA 5505 (flash memory) |
| 194 | |
| 195 | http://cisconews.co.uk/2007/12/27/asa-5505-flash-memory-hack/ \\ Upgrade Cisco ASA5505 Flash memory |
| 196 | |
| 197 | |