Linux启动报错UNEXPECTED INCONSISTENCY解决方法
2014-04-10 16:39
281 查看
以2950为例
重起交换机:按MODE键进入到switch:模式 如下
C2950 Boot Loader (C2950-HBOOT-M) Version 12.1(11r)EA1, RELEASE SOFTWARE (fc1)
Compiled Mon 22-Jul-02 17:18 by antonino
WS-C2950-24 starting...
Base ethernet MAC Address: 00:13:1a:9a:2b:80
Xmodem file system is available.
The system has been interrupted prior to initializing the
flash filesystem. The following commands will initialize
the flash filesystem, and finish loading the operating
system software:
flash_init
load_helper
boot
switch: flash_init
Initializing Flash...
flashfs[0]: 4 files, 1 directories
flashfs[0]: 0 orphaned files, 0 orphaned directories
flashfs[0]: Total bytes: 7741440
flashfs[0]: Bytes used: 3090944
flashfs[0]: Bytes available: 4650496
flashfs[0]: flashfs fsck took 6 seconds.
...done initializing flash.
Boot Sector Filesystem (bs:) installed, fsid: 3
Parameter Block Filesystem (pb:) installed, fsid: 4
switch: load_helper
switch: dir
List of filesystems currently registered:
flash[0]: (read-write)
xmodem[1]: (read-only)
null[2]: (read-write)
bs[3]: (read-only)
switch: dir flash:
Directory of flash:/
2 -rwx 736 <date> vlan.dat
3 -rwx 3086336 <date> c2950-i6q4l2-mz.121-22.EA2.bin
5 -rwx 1558 <date> config.text #########交换机启动时应用的配置
6 -rwx 5 <date> private-config.text
4650496 bytes available (3090944 bytes used)
switch: rename flash:config.text flash:config-old.txt #########重命名config.text
switch: reset #########重起交换机
Are you sure you want to reset the system (y/n)?y
System resetting...
重起交换机后由于交换机不会再应用配置文件,因为刚才已把配置文件的名字更改。交换机会进入到配置的对话模式。如查
--- System Configuration Dialog ---
Would you like to enter the initial configuration dialog? [yes/no]: n
Switch#dir
Directory of flash:/
2 -rwx 736 Mar 01 1993 00:19:14 +00:00 vlan.dat
3 -rwx 3086336 Jan 01 1970 01:12:26 +00:00 c2950-i6q4l2-mz.121-22.EA2.bin
5 -rwx 1558 Mar 01 1993 02:36:44 +00:00 config-old.txt
6 -rwx 5 Mar 01 1993 02:36:44 +00:00 private-config.text
7741440 bytes total (4650496 bytes free)
Switch#copy config-old.txt running-config
Destination filename [running-config]?
1558 bytes copied in 1.152 secs (1352 bytes/sec)
sw#config t
Enter configuration commands, one per line. End with CNTL/Z.
sw(config)#line console 0
sw(config-line)#no pass cisco #########清除console口密码
sw(config)#no enable secret #########清除enable密码
sw(config)#no enable password #########清除enable密码
sw#write #########重新保存
重起交换机:按MODE键进入到switch:模式 如下
C2950 Boot Loader (C2950-HBOOT-M) Version 12.1(11r)EA1, RELEASE SOFTWARE (fc1)
Compiled Mon 22-Jul-02 17:18 by antonino
WS-C2950-24 starting...
Base ethernet MAC Address: 00:13:1a:9a:2b:80
Xmodem file system is available.
The system has been interrupted prior to initializing the
flash filesystem. The following commands will initialize
the flash filesystem, and finish loading the operating
system software:
flash_init
load_helper
boot
switch: flash_init
Initializing Flash...
flashfs[0]: 4 files, 1 directories
flashfs[0]: 0 orphaned files, 0 orphaned directories
flashfs[0]: Total bytes: 7741440
flashfs[0]: Bytes used: 3090944
flashfs[0]: Bytes available: 4650496
flashfs[0]: flashfs fsck took 6 seconds.
...done initializing flash.
Boot Sector Filesystem (bs:) installed, fsid: 3
Parameter Block Filesystem (pb:) installed, fsid: 4
switch: load_helper
switch: dir
List of filesystems currently registered:
flash[0]: (read-write)
xmodem[1]: (read-only)
null[2]: (read-write)
bs[3]: (read-only)
switch: dir flash:
Directory of flash:/
2 -rwx 736 <date> vlan.dat
3 -rwx 3086336 <date> c2950-i6q4l2-mz.121-22.EA2.bin
5 -rwx 1558 <date> config.text #########交换机启动时应用的配置
6 -rwx 5 <date> private-config.text
4650496 bytes available (3090944 bytes used)
switch: rename flash:config.text flash:config-old.txt #########重命名config.text
switch: reset #########重起交换机
Are you sure you want to reset the system (y/n)?y
System resetting...
重起交换机后由于交换机不会再应用配置文件,因为刚才已把配置文件的名字更改。交换机会进入到配置的对话模式。如查
--- System Configuration Dialog ---
Would you like to enter the initial configuration dialog? [yes/no]: n
Switch#dir
Directory of flash:/
2 -rwx 736 Mar 01 1993 00:19:14 +00:00 vlan.dat
3 -rwx 3086336 Jan 01 1970 01:12:26 +00:00 c2950-i6q4l2-mz.121-22.EA2.bin
5 -rwx 1558 Mar 01 1993 02:36:44 +00:00 config-old.txt
6 -rwx 5 Mar 01 1993 02:36:44 +00:00 private-config.text
7741440 bytes total (4650496 bytes free)
Switch#copy config-old.txt running-config
Destination filename [running-config]?
1558 bytes copied in 1.152 secs (1352 bytes/sec)
sw#config t
Enter configuration commands, one per line. End with CNTL/Z.
sw(config)#line console 0
sw(config-line)#no pass cisco #########清除console口密码
sw(config)#no enable secret #########清除enable密码
sw(config)#no enable password #########清除enable密码
sw#write #########重新保存
相关文章推荐
- Linux启动时 Error 15: File not found 问题解决方法
- Linux操作操作两种常见启动故障解决方法
- linux无法启动及解决方法
- Linux修改fstab引起系统无法启动问题的解决方法
- 解决部分Linux系统中无法启动Android模拟器的方法
- 双系统只能启动linux,无法启动Windows的解决方法
- 双系统下删除Linux系统方法和Windows无法启动解决小结
- Linux启动网卡时出现RTNETLINK answers File exists错误解决方法
- linux中启动tomcat后浏览器无法访问的解决方法
- Linux 下 squid 服务启动失败,无法写入cache.log,Permission denied 解决方法
- 卸载linux或linux出毛病后,连windows都无法启动----解决方法。
- Linux解决安装ElasticSearch启动报错方法
- Linux启动ftp服务器530 Permission denied解决方法
- Linux下安装MariaDB后无法启动的问题解决方法
- Linux启动ftp服务器530 Permission denied解决方法
- DELL服务器M100E中linux5.5无法启动的解决方法
- linux 系统无法启动的基本解决方法
- Linux安装Apache服务器tomcat启动后无法访问解决方法
- 卸载linux或linux出毛病后,连windows都无法启动----解决方法。
- linux远程服务器启动mysql时显示:/tmp/mysql.sock 不存在的解决方法