2500シリーズのルータのFlashは、SIMMなので8MB+8MBという2枚構成です。
sh flashコマンドで確認すると2つのパーティションに分かれており、
最新の16MBくらいあるIOSイメージは取り込めません。
そこで、2つのパーティションを1つのパーティションに結合するには、
以下の要領で実現することができます。
◎事前確認 sh flashで確認すると確かに2つのパーティションに分かれています
Router#sh flash
System flash directory, partition 1:
File Length Name/status
1 5676352 ic10315
[5676416 bytes used, 2712192 available, 8388608 total]
8192K bytes of processor board System flash (Read/Write)
System flash directory, partition 2:
File Length Name/status
1 7987220 c2500-j-l_112-16.bin
[7987284 bytes used, 401324 available, 8388608 total]
8192K bytes of processor board System flash (Read/Write)
Router#
◎削除 erase flashで削除します
Router#erase flash
Partition Size Used Free Bank-Size State Copy Mode
1 8192K 5543K 2648K 8192K Read/Write Direct
2 8192K 7800K 391K 8192K Read/Write Direct
[Type ?<no> for partition directory; ? for full directory; q to abort]
Which partition? [default = 1] 1
System flash directory, partition 1:
File Length Name/status
1 5676352 ic10315
[5676416 bytes used, 2712192 available, 8388608 total]
Erase flash device, partition 1? [confirm]
Are you sure? [yes/no]: yes
Erasing device... eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee ...erased
Router#
◎続いて2つ目も
Router#erase flash
Partition Size Used Free Bank-Size State Copy Mode
1 8192K 0K 8192K 8192K Read/Write Direct
2 8192K 7800K 391K 8192K Read/Write Direct
[Type ?<no> for partition directory; ? for full directory; q to abort]
Which partition? [default = 1] 2
System flash directory, partition 2:
File Length Name/status
1 7987220 c2500-j-l_112-16.bin
[7987284 bytes used, 401324 available, 8388608 total]
Erase flash device, partition 2? [confirm]
Are you sure? [yes/no]: yes
Erasing device... eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee ...erased
Router#
◎flashが削除されました
Router#sh flash
System flash directory:
No files in System flash
[0 bytes used, 16777216 available, 16777216 total]
16384K bytes of processor board System flash (Read/Write)
Router#
◎パーティションを結合
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#no partition flash
Router(config)#end
Router#
◎新しいIOSイメージをflashへコピー
Router#cop tftp flash
System flash directory:
No files in System flash
[0 bytes used, 16777216 available, 16777216 total]
Address or name of remote host [192.168.1.253]?
Source file name? c2500-is-l.123-16.bin
Destination file name [c2500-is-l.123-16.bin]?
Accessing file 'c2500-is-l.123-16.bin' on 192.168.1.253...
Loading c2500-is-l.123-16.bin from 192.168.1.253 (via Ethernet0): ! [OK]
Device needs erasure before copying new file
Erase flash device before writing? [confirm]
Copy 'c2500-is-l.123-16.bin' from server
as 'c2500-is-l.123-16.bin' into Flash WITH erase? [yes/no]yes
Erasing device... eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee ...erased
Loading c2500-is-l.123-16.bin from 192.168.1.253 (via Ethernet0): !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!(中略)
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[OK - 16228680/16777216 bytes]
Verifying checksum... OK (0x3200)
Flash copy took 0:05:19 [hh:mm:ss]
Router#
◎事後確認
Router#sh flash
System flash directory:
File Length Name/status
1 16228680 c2500-is-l.123-16.bin
[16228744 bytes used, 548472 available, 16777216 total]
16384K bytes of processor board System flash (Read/Write)
Router#
Router#sh ver
Cisco Internetwork Operating System Software
IOS (tm) 2500 Software (C2500-IS-L), Version 12.3(16), RELEASE SOFTWARE (fc4)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2005 by cisco Systems, Inc.
Compiled Wed 24-Aug-05 05:13 by ssearch
Image text-base: 0x0307D960, data-base: 0x00001000
ROM: System Bootstrap, Version 11.0(10c), SOFTWARE
BOOTLDR: 3000 Bootstrap Software (IGS-BOOT-R), Version 11.0(10c), RELEASE SOFTWARE (fc1)
Router uptime is 3 minutes
System returned to ROM by reload
System image file is "flash:c2500-is-l.123-16.bin"
cisco 2511 (68030) processor (revision L) with 14336K/2048K bytes of memory.
Processor board ID 21446292, with hardware revision 00000000
Bridging software.
X.25 software, Version 3.0.0.
1 Ethernet/IEEE 802.3 interface(s)
2 Serial network interface(s)
16 terminal line(s)
32K bytes of non-volatile configuration memory.
16384K bytes of processor board System flash (Read ONLY)
Configuration register is 0x2102
Router#