青青世界929那个大屁股:彻底解决Flash卡内在不足的方法!!!!

来源:百度文库 编辑:九乡新闻网 时间:2024/05/02 07:59:11

彻底解决Flash卡内在不足的方法!!!!

Flash卡不足

1.保存配置到FLASH卡,提示内存容量不足
Switch#copy running-config sup-slot0:
Destination filename [Switch-confg]? 110731.21.3.Switch-confg     
%Error copying system:/running-config (Not enough space on device)

2.查看FLASH存储内容及容量,发现只有10236 bytes,但是一个配置文件大约也要50000bytes
Switch#dir sup-slot0:
Directory of slot0:/
    1  -rw-    19817692  Nov 27 2007 04:17:40 +00:00  ubr7200-ik9s-mz.122-15.BC2h.bin
    2  -rw-       45891  Jan 16 2011 13:43:52 +00:00  110116.21.3.Switch-confg
    3  -rw-       46005  Jan 23 2011 14:36:55 +00:00  110123.21.3.Switch-confg
    4  -rw-       46058  Jan 31 2011 06:47:10 +00:00  110130.21.3.Switch-confg
    5  -rw-       46011  Feb 17 2011 10:37:27 +00:00  110217.21.3.Switch-confg
    6  -rw-       46069  Feb 20 2011 09:51:49 +00:00  110220.21.3.Switch-confg
    7  -rw-       45725  Mar 06 2011 09:59:55 +00:00  110306.21.3.Switch-confg
    8  -rw-       45655  Mar 20 2011 08:54:59 +00:00  110320.21.3.Switch-confg
    9  -rw-       45655  Mar 25 2011 16:31:34 +00:00  110326.21.3.Switch-confg
   10  -rw-       45655  Mar 27 2011 09:16:38 +00:00  110327.21.3.Switch-confg
   11  -rw-       45529  Apr 04 2011 11:21:07 +00:00  110404.21.3.Switch-confg
   12  -rw-       45548  Apr 17 2011 11:17:57 +00:00  110417.21.3.Switch-confg
   13  -rw-       46639  May 01 2011 11:29:15 +00:00  110501.21.3.Switch-confg
   14  -rw-       48683  Jul 10 2011 08:49:52 +00:00  110710.21.3.Switch-confg
   15  -rw-       49539  Jul 17 2011 08:36:09 +00:00  110717.21.3.Switch-confg
   16  -rw-       49660  Jul 24 2011 08:22:13 +00:00  110724.21.3.Switch-confg
   17  -rw-       49855  Jul 26 2011 07:07:39 +00:00  110726.21.3.Switch-confg
20578304 bytes total (10236 bytes free)

3.删除之前的配置,然后查看FLASH卡容量,发现文件已经删除,但显示的内存容量还是只有只有10236 bytes
 而且保存配置仍提示内存不足
Switch#delete sup-slot0:110116.21.3.Switch-confg ?
  
Switch#delete sup-slot0:110116.21.3.Switch-confg
Delete filename [110116.21.3.Switch-confg]?
Delete slot0:110116.21.3.Switch-confg? [confirm]
。。。
。。。
。。。
Switch#dir sup-slot0:
Directory of slot0:/
    1  -rw-    19817692  Nov 27 2007 04:17:40 +00:00  ubr7200-ik9s-mz.122-15.BC2h.bin
    8  -rw-       45655  Mar 20 2011 08:54:59 +00:00  110320.21.3.Switch-confg
    9  -rw-       45655  Mar 25 2011 16:31:34 +00:00  110326.21.3.Switch-confg
   10  -rw-       45655  Mar 27 2011 09:16:38 +00:00  110327.21.3.Switch-confg
   11  -rw-       45529  Apr 04 2011 11:21:07 +00:00  110404.21.3.Switch-confg
   12  -rw-       45548  Apr 17 2011 11:17:57 +00:00  110417.21.3.Switch-confg
   13  -rw-       46639  May 01 2011 11:29:15 +00:00  110501.21.3.Switch-confg
   14  -rw-       48683  Jul 10 2011 08:49:52 +00:00  110710.21.3.Switch-confg
   15  -rw-       49539  Jul 17 2011 08:36:09 +00:00  110717.21.3.Switch-confg
   16  -rw-       49660  Jul 24 2011 08:22:13 +00:00  110724.21.3.Switch-confg
   17  -rw-       49855  Jul 26 2011 07:07:39 +00:00  110726.21.3.Switch-confg
20578304 bytes total (10236 bytes free)

Switch#copy running-config sup-slot0:
Destination filename [Switch-confg]? 110731.21.3.Switch-confg     
%Error copying system:/running-config (Not enough space on device)

4.清空FLASH中已经删除的文件,并查看内存容量,发现有286776 bytes
Switch#squeeze sup-slot0:
All deleted files will be removed. Continue? [confirm]
Squeeze operation may take a while. Continue? [confirm]
                     
Squeeze of slot0 complete    ............................额在此处敲回车时的心情是多么纠结,怕一下子把Flash卡清除了,额的网
                                                                          管生涯估计就到此结束了啊!!!
Switch#dir sup-slot0:                           
Directory of slot0:/
    1  -rw-    19817692  Nov 27 2007 04:17:40 +00:00  ubr7200-ik9s-mz.122-15.BC2h.bin
    2  -rw-       45655  Mar 20 2011 08:54:59 +00:00  110320.21.3.Switch-confg
    3  -rw-       45655  Mar 25 2011 16:31:34 +00:00  110326.21.3.Switch-confg
    4  -rw-       45655  Mar 27 2011 09:16:38 +00:00  110327.21.3.Switch-confg
    5  -rw-       45529  Apr 04 2011 11:21:07 +00:00  110404.21.3.Switch-confg
    6  -rw-       45548  Apr 17 2011 11:17:57 +00:00  110417.21.3.Switch-confg
    7  -rw-       46639  May 01 2011 11:29:15 +00:00  110501.21.3.Switch-confg
    8  -rw-       48683  Jul 10 2011 08:49:52 +00:00  110710.21.3.Switch-confg
    9  -rw-       49539  Jul 17 2011 08:36:09 +00:00  110717.21.3.Switch-confg
   10  -rw-       49660  Jul 24 2011 08:22:13 +00:00  110724.21.3.Switch-confg
   11  -rw-       49855  Jul 26 2011 07:07:39 +00:00  110726.21.3.Switch-confg
20578304 bytes total (286776 bytes free)

5.保存配置成功
Switch#  copy running-config sup-slot0:
Destination filename [Switch-confg]? 110731.21.3.Switch-confg
49708 bytes copied in 3.188 secs (15592 bytes/sec)

:victory:


编后感:
   原以为只是简简单单的清除一下Flash 卡的内容就可以,没有想到还有那么曲折啊!!!!
   呵呵 ....主要是设备太贵重,不敢乱操作,万一不小心把Flash的镜像文件给清除了,额可是万死莫辞啊!!!
   写出此贴,希望各位午饭,引以为鉴,可以快速的完成保存!!!