取消
显示结果 
搜索替代 
您的意思是: 
cancel
5622
查看次数
0
有帮助
9
回复

整个FLASH里的文件被误删除,后悔。。。。。

tony_tan
Spotlight
Spotlight
问题描述:机器是2911,今天下班后远程删除一个FLASH下的文件,当时输入了delete /f /re flash:时电脑突然卡住了,输入其它的也没有反应,不知道怎么按了一下回车,dir flash路由器里什么文件都 没有了,就重启吧,想着不保存应该文件能恢复,就这样路由器再也启动不起来,请各位指点,应该怎么恢复,电脑里有之前的IOS文件和配置文件,请各位老师指点,在线等
9 条回复9

YilinChen
Spotlight
Spotlight
本帖最后由 YilinChen 于 2020-6-6 12:07 编辑
大体思路是这样:人必须到现场,console连上设备,同时网线也连到设备上,设置IP地址,通过FTP或TFTP协议上传IOS镜像文件,和配置文件,就能恢复了。具体配置命令可以参考以下链接:
https://www.cisco.com/c/en/us/td/docs/routers/access/1900/software/configuration/guide/Software_Configuration/appendixCrommon.html#69806

tony_tan
Spotlight
Spotlight
问题已经解决:可能上面提出的问题太弱智了,社区的大师没有人指点,我来把过程写给和我一样的初学者小白,希望不要走同样的弯路,先使用tftp的方式,串口线交叉线都插上,本地连接显示 没有插网线,一直纠结笔记本与电脑连上交叉网线,本地连接显示网线拔出,从昨天晚上到今天早上一直在网上查怎么在ROMMON模式下启用G0/0端口无果暂放弃,后来在网上看到有人发使用U盘也可以导入IOS文件,但我试了,在ROMMON模式下可以看到U盘里的资料,但没有COPY命令就放弃了U盘导入的方法,又尝试通过超级终端的使用xmodem命令,在rommon模式下提示“monitor: command "xmodem" not found”,放弃......又回到第一个方式tftpd,在输入完tftpdlnd命令后端口启来了,太兴奋了,分享给大家,希望各位不要像我一样一直纠结在网络状态不可用那里,整整耽误了3个小时。
rommon 1 > IP_ADDRESS=192.168.1.1
rommon 2 > IP_SUBNET_MASK=255.255.255.0
rommon 3 > DEFAULT_GATEWAY=192.168.1.254
rommon 4 > TFTP_SERVER=192.168.1.10
rommon 5 > TFTP_FILE=c2900-universalk9-mz.SPA.157-3.M6.bin
rommon 6 > sync
rommon 7 > set
PS1=rommon ! >
RTC_STAT=0
TFTP_CS_BYPASS=1
GE_SPEED_MODE=4
LICENSE_BOOT_LEVEL=
TFTP_RETRY_COUNT=20
WARM_REBOOT=FALSE
BOOT=flash0:c2900-universalk9-mz.SPA.157-3.M6.bin,1;
RELOAD_TYPE=1
IP_ADDRESS=192.168.1.1
IP_SUBNET_MASK=255.255.255.0
DEFAULT_GATEWAY=192.168.1.254
TFTP_SERVER=192.168.1.10
TFTP_FILE=c2900-universalk9-mz.SPA.157-3.M6.bin
?=0
CRASHINFO=flash:crashinfo_20191225-021655-GMT
RANDOM_NUM=514155369
BSI=0
RET_2_RTS=21:40:53 beijing Fri Jun 5 2020
RET_2_RCALTS=1591364453
rommon 8 > tftpdnld
IP_ADDRESS: 192.168.1.1
IP_SUBNET_MASK: 255.255.255.0
DEFAULT_GATEWAY: 192.168.1.254
TFTP_SERVER: 192.168.1.10
TFTP_FILE: c2900-universalk9-mz.SPA.157-3.M6.bin
TFTP_MACADDR: cc:ef:48:88:bc:c8
TFTP_DESTINATION: flash0:
GE_PORT: Ge0/0
TFTP_MEDIA_TYPE: Copper
TFTP_VERBOSE: Progress
TFTP_RETRY_COUNT: 20
TFTP_TIMEOUT: 7200
TFTP_CHECKSUM: Yes
GE_SPEED_MODE: 1000MB/FULL
Invoke this command for disaster recovery only.
WARNING: all existing data in all partitions on flash will be lost!
Do you wish to continue? y/n: : y
.
Receiving c2900-universalk9-mz.SPA.157-3.M6.bin from 192.168.1.10 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
File reception completed.
IOS Image Load Test
___________________
Digitally Signed Release Software
Validating checksum.
Copying file c2900-universalk9-mz.SPA.157-3.M6.bin to flash0:.
program load complete, entry point: 0x80803000, size: 0x1b340
Format: All system sectors written. OK...
Format: Total sectors in formatted partition: 1000881
Format: Total bytes in formatted partition: %llu
Format: Operation completed successfully.
program load complete, entry point: 0x80803000, size: 0x1b340
rommon 9 > reset
System Bootstrap, Version 15.0(1r)M12, RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 2011 by cisco Systems, Inc.
Total memory size = 512 MB - On-board = 512 MB, DIMM0 = 0 MB
CISCO2911/K9 platform with 524288 Kbytes of main memory
Main memory is configured to 72/-1(On-board/DIMM0) bit mode with ECC enabled
Readonly ROMMON initialized
program load complete, entry point: 0x80803000, size: 0x1b340
IOS Image Load Test
___________________
Digitally Signed Release Software
program load complete, entry point: 0x81000000, size: 0x695f9d8
Self decompressing the image : ####################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################### [OK]
Smart Init is enabled
smart init is sizing iomem
TYPE MEMORY_REQ
PVDM 0 0x00200000
Onboard devices &
buffer pools 0x0228F000
-----------------------------------------------
TOTAL: 0x0248F000
Rounded IOMEM up to: 40MB.
Using 7 percent iomem. [40MB/512MB]
Restricted Rights Legend
Use, duplication, or disclosure by the Government is
subject to restrictions as set forth in subparagraph
(c) of the Commercial Computer Software - Restricted
Rights clause at FAR sec. 52.227-19 and subparagraph
(c) (1) (ii) of the Rights in Technical Data and Computer
Software clause at DFARS sec. 252.227-7013.
cisco Systems, Inc.
170 West Tasman Drive
San Jose, California 95134-1706
Cisco IOS Software, C2900 Software (C2900-UNIVERSALK9-M), Version 15.7(3)M6, RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2020 by Cisco Systems, Inc.
Compiled Fri 06-Mar-20 06:19 by prod_rel_team
This product contains cryptographic features and is subject to United
States and local country laws governing import, export, transfer and
use. Delivery of Cisco cryptographic products does not imply
third-party authority to import, export, distribute or use encryption.
Importers, exporters, distributors and users are responsible for
compliance with U.S. and local country laws. By using this product you
agree to comply with applicable laws and regulations. If you are unable
to comply with U.S. and local laws, return this product immediately.
A summary of U.S. laws governing Cisco cryptographic products may be found at:
http://www.cisco.com/wwl/export/crypto/tool/stqrg.html
If you require further assistance please contact us by sending email to
export@cisco.com.
Installed image archive
Cisco CISCO2911/K9 (revision 1.0) with 483328K/40960K bytes of memory.
Processor board ID FTX1538AMME
3 Gigabit Ethernet interfaces
1 terminal line
1 Virtual Private Network (VPN) Module
4 Voice FXO interfaces
DRAM configuration is 64 bits wide with parity enabled.
255K bytes of non-volatile configuration memory.
3929072K bytes of USB Flash usbflash0 (Read/Write)
500472K bytes of ATA System CompactFlash 0 (Read/Write)

tony_tan
Spotlight
Spotlight
rommon 1 > IP_ADDRESS=192.168.1.1
rommon 2 > IP_SUBNET_MASK=255.255.255.0
rommon 3 > DEFAULT_GATEWAY=192.168.1.254
rommon 4 > TFTP_SERVER=192.168.1.10
rommon 5 > TFTP_FILE=c2900-universalk9-mz.SPA.157-3.M6.bin
rommon 6 > sync
rommon 7 > set
PS1=rommon ! >
RTC_STAT=0
TFTP_CS_BYPASS=1
GE_SPEED_MODE=4
LICENSE_BOOT_LEVEL=
TFTP_RETRY_COUNT=20
WARM_REBOOT=FALSE
BOOT=flash0:c2900-universalk9-mz.SPA.157-3.M6.bin,1;
RELOAD_TYPE=1
IP_ADDRESS=192.168.1.1
IP_SUBNET_MASK=255.255.255.0
DEFAULT_GATEWAY=192.168.1.254
TFTP_SERVER=192.168.1.10
TFTP_FILE=c2900-universalk9-mz.SPA.157-3.M6.bin
?=0
CRASHINFO=flash:crashinfo_20191225-021655-GMT
RANDOM_NUM=514155369
BSI=0
RET_2_RTS=21:40:53 beijing Fri Jun 5 2020
RET_2_RCALTS=1591364453
rommon 8 > tftpdnld
IP_ADDRESS: 192.168.1.1
IP_SUBNET_MASK: 255.255.255.0
DEFAULT_GATEWAY: 192.168.1.254
TFTP_SERVER: 192.168.1.10
TFTP_FILE: c2900-universalk9-mz.SPA.157-3.M6.bin
TFTP_MACADDR: cc:ef:48:88:bc:c8
TFTP_DESTINATION: flash0:
GE_PORT: Ge0/0
TFTP_MEDIA_TYPE: Copper
TFTP_VERBOSE: Progress
TFTP_RETRY_COUNT: 20
TFTP_TIMEOUT: 7200
TFTP_CHECKSUM: Yes
GE_SPEED_MODE: 1000MB/FULL
Invoke this command for disaster recovery only.
WARNING: all existing data in all partitions on flash will be lost!
Do you wish to continue? y/n: : y
.
Receiving c2900-universalk9-mz.SPA.157-3.M6.bin from 192.168.1.10 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
File reception completed.
IOS Image Load Test
___________________
Digitally Signed Release Software
Validating checksum.
Copying file c2900-universalk9-mz.SPA.157-3.M6.bin to flash0:.
program load complete, entry point: 0x80803000, size: 0x1b340
Format: All system sectors written. OK...
Format: Total sectors in formatted partition: 1000881
Format: Total bytes in formatted partition: %llu
Format: Operation completed successfully.
program load complete, entry point: 0x80803000, size: 0x1b340
rommon 9 > reset
System Bootstrap, Version 15.0(1r)M12, RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 2011 by cisco Systems, Inc.
Total memory size = 512 MB - On-board = 512 MB, DIMM0 = 0 MB
CISCO2911/K9 platform with 524288 Kbytes of main memory
Main memory is configured to 72/-1(On-board/DIMM0) bit mode with ECC enabled
Readonly ROMMON initialized
program load complete, entry point: 0x80803000, size: 0x1b340
IOS Image Load Test
___________________
Digitally Signed Release Software
program load complete, entry point: 0x81000000, size: 0x695f9d8
Self decompressing the image : ####################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################### [OK]
Smart Init is enabled
smart init is sizing iomem
TYPE MEMORY_REQ
PVDM 0 0x00200000
Onboard devices &
buffer pools 0x0228F000
-----------------------------------------------
TOTAL: 0x0248F000
Rounded IOMEM up to: 40MB.
Using 7 percent iomem. [40MB/512MB]
Restricted Rights Legend
Use, duplication, or disclosure by the Government is
subject to restrictions as set forth in subparagraph
(c) of the Commercial Computer Software - Restricted
Rights clause at FAR sec. 52.227-19 and subparagraph
(c) (1) (ii) of the Rights in Technical Data and Computer
Software clause at DFARS sec. 252.227-7013.
cisco Systems, Inc.
170 West Tasman Drive
San Jose, California 95134-1706
Cisco IOS Software, C2900 Software (C2900-UNIVERSALK9-M), Version 15.7(3)M6, RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2020 by Cisco Systems, Inc.
Compiled Fri 06-Mar-20 06:19 by prod_rel_team
This product contains cryptographic features and is subject to United
States and local country laws governing import, export, transfer and
use. Delivery of Cisco cryptographic products does not imply
third-party authority to import, export, distribute or use encryption.
Importers, exporters, distributors and users are responsible for
compliance with U.S. and local country laws. By using this product you
agree to comply with applicable laws and regulations. If you are unable
to comply with U.S. and local laws, return this product immediately.
A summary of U.S. laws governing Cisco cryptographic products may be found at:
http://www.cisco.com/wwl/export/crypto/tool/stqrg.html
If you require further assistance please contact us by sending email to
export@cisco.com.
Installed image archive
Cisco CISCO2911/K9 (revision 1.0) with 483328K/40960K bytes of memory.
Processor board ID FTX1538AMME
3 Gigabit Ethernet interfaces
1 terminal line
1 Virtual Private Network (VPN) Module
4 Voice FXO interfaces
DRAM configuration is 64 bits wide with parity enabled.
255K bytes of non-volatile configuration memory.
3929072K bytes of USB Flash usbflash0 (Read/Write)
500472K bytes of ATA System CompactFlash 0 (Read/Write)
已解决问题

937021887
Level 1
Level 1
误操作啊,误操作,下次小心啊,兄弟

tony_tan
Spotlight
Spotlight
xiaohe 发表于 2020-6-7 15:05
误操作啊,误操作,下次小心啊,兄弟

经过这次知道了

18653465190
Spotlight
Spotlight
给楼主的超强动手能力点个赞

raoshine
Level 1
Level 1
经常备份很重要

goodmaner
Spotlight
Spotlight
备份是个好习惯。我的电脑资料都是一个月备份一次,而且备份到不同的地方,因为有过惨痛的教训:L

tony_tan
Spotlight
Spotlight
感谢各位元老告诫,小弟牢记心中,谢谢!
入门指南

使用上面的搜索栏输入关键字、短语或问题,搜索问题的答案。

我们希望您在这里的旅程尽可能顺利,因此这里有一些链接可以帮助您快速熟悉思科社区:









快捷链接