接着昨天

昨天头比较晕,没有理清思路,今天着重思考几个问题:
CF卡的问题;
网络为什么不能引导的问题;
Flash是否有问题;

(1)CF卡
昨天一开始测试时候既然是好的,那么一定是后面的操作出了问题;
想起来一开始的时候都是用format slot0指令格式化,后来有一次用erase格式化成功后
就再也没成功过,并且接连出现不能换路由器读取CF,插到哪里都报错等等问题:
C3725_up#dir slot0:
%Error opening slot0:/ (No device available)
C3725_up#dir slot0:
%Error opening slot0:/ (No device available)
C3725_up#dir slot0:
%Error opening slot0:/ (No device available)

是不是需要用format再格式化一遍呢?开始注意到一个细节问题:

C3745#erase slot0:
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... eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee ...erased
Erase of slot0: complete

然后尝试:

C3745#format slot0:
Format operation may take a while. Continue? [confirm]
Format operation will destroy all data in "slot0:". Continue? [confirm]
Enter volume ID (up to 64 chars)[default slot0]:
Current Low End File System flash card in slot0 will be formatted into DOS File System flash card! Continue? [confirm]
Format: Drive communication & 1st Sector Write OK...


Writing Monlib sectors.
.......................................................................................................
Monlib write complete
....
Format: All system sectors written. OK...

Format: Total sectors in formatted partition: 1969458
Format: Total bytes in formatted partition: 1008362496
Format: Operation completed successfully.

Format of slot0 complete

这样格式化出来的CF卡,不仅仅各个路由器可以访问,PC机也可以访问了,
至此,CF卡故障的原因搞清楚了。

erase类似于低级格式化,而format类似于高级格式化;
新的或者逻辑损坏的CF卡必须先erase过,否则无论插到哪个非本机erase的路由器都会报

*Apr 3 17:36:21.403: %PCMCIAFS-5-DIBERR: PCMCIA disk 1 is formatted from a
different router or PC. A format in this router is required before an p_w_picpath
can be booted from this device


必须先erase然后format,这样copy文件就正常引导了;而且最好不要一卡多机使用。

说道这里,45正常了,两台25还是不正常。

不管,先解决tftp引导的问题,昨天网络引导不成功一度认为是网络通信不好造成;
今天将两台25接到一个交换机上,tftpserver也接着;配置全部清空;
然后引导;发现两台均不正常。无法从tftp获取IOS;

病轻的25在配置
boot system slot0:c3725-adventerprisek9-mz.124-7.bin
boot system tftp c3725-adventerprisek9-mz.124-7.bin 10.1.1.100

后第一次报CF无法读取;第二次读网络的时候反而可以读取CF中的IOS
而病重的那台索性就没有反应了。什么都不报就直接引导flash进入系统;
着实很奇怪。

实在无奈只好拆机了,小心翼翼的打开路由器;(先验证一下sdram是否通用,验证可用;
这个部分另文叙述)
接着验证flash能否用非cisco的CF卡更换。

下面讲的CF就是自己买的kingston的1G卡,flash就是cisco原装的flash卡
CF接入flash插槽,无法开机,flash接入slot0,可以识别;看来cisco还是认为自家
兄弟亲,shit~
再次拔插flash和CF,好,这下都可以用了,而且CF可以从flash槽内启动;
前提是要先用这台25format一下,然后用tftp装入IOS,然后用这张卡引导。

但是还是无法用原来的flash卡引导slot0内的CF,只能讲CF换到flash槽上使用;
而且病重的25现在用原flash引导slot0的IOS都不报错了;什么信息都没有;直接进入
flash的IOS;极度的晕啊~

现在为了先解决眼前的问题,赶快托人买了几张512的CF卡,等着回来以后的消息。。