首页 centos系统无法启动

centos系统无法启动

举报
开通vip

centos系统无法启动一台NF5220的机器,SN munber:209777348 ,安装的CENTOS 5.4 X64位的操作系统,共6块硬盘,没有做RAID。其中SDE有故障,在进系统的情况下,没有卸载SDE盘,就直接把硬盘拨出后重启,启动不了,情景如下图 图1 输入密码后,显示如下 *** AN error occurred during the file system check *** Dropping you to a shell; the systm will reboot *** when you leave th...

centos系统无法启动
一台NF5220的机器,SN munber:209777348 ,安装的CENTOS 5.4 X64位的操作系统,共6块硬盘,没有做RAID。其中SDE有故障,在进系统的情况下,没有卸载SDE盘,就直接把硬盘拨出后重启,启动不了,情景如下图 图1 输入密码后,显示如下 *** AN error occurred during the file system check *** Dropping you to a shell; the systm will reboot *** when you leave the shell Give root password for maintenance (or type Control-D to continue):              (输入密码前要等几分钟,登入模块启动慢) Login incorrect. (Repair filesystem) 1 #  由于刚开始不知道服务器的密码所以想进入单用户模式更改root密码 可是进入到如下图就走不下去了 图2 这种不能正常进入系统的情况引起的原因有多种,但我的情况是原因/etc/fstab文件编辑错误 而引起的不能正常进入系统,如图1,在加载/HOME目录之后,报一个 Failed错误,这说明在加载挂载目录的时候出错。 解决方法就是修改/etc/fstab文件成原来正常格式 删除错误的或者是不存在的挂载目录 操作:根据提示进入修复模式 Login incorrect. (Repair filesystem) 1 # vim /etc/fstab 但是修复模式下(read-only system) 文件是被保护的不能修改 运行下面命令 把系统文件权限改成可读写(rw) (Repair filesystem) 1 # mount -o remount,rw / 使根目录可写.即可以修复/etc/fstab文件,使之可写.然后就可以vi修改了 保存 wq (Repair filesystem) 1 #reboot 如下图是没有修改前的 fstab文件。 把LABEL=/usr和  LABEL=/data0两行去掉保存后,仍进不了系统,报错依旧如 图1. 当把LABEL=/cache5这一行去掉保存时,就能进系统了。可是输入root用户名后,报系统下没有此用户。 接着把把LABEL=/usr和  LABEL=/data0两行加进来,进系统正常如下 拓展: Finding module dependencies; [OK] modprobe:modprobe:can't locate module block-major-3 fsck.ext3Possibly non-existent or swap device? :NO such device or address while trying to open /dev/hdb1 /boot: clena, 41/26104 files. 12679/104391 blocks [FAILED] *** AN error occurred during the file system check *** Dropping you to a shell; the systm will reboot *** when you leave the shell Give root password for maintenance (or type Control-D to continue): Login incorrect. (Repair filesystem) 1 # 有时这种情况用fsck /dev/hdaX后reboot进入,或只用fsck来修复,只管y回车 Press enter for maintenance (or type Control-D to continue): 输入 passwd 后进入 (Repair filesystem)# 运行fsck -y / (因为修复时会问是否修复,所以要加上-y 参数 转速和进给参数表a氧化沟运行参数高温蒸汽处理医疗废物pid参数自整定算法口腔医院集中消毒供应 。) 成功修复。 注意:在修复其它filesystem时要umount掉运行该命令。 指令:fsck 使用权限 : 超级使用者 使用方式 : fsck --help fsck 1.35 (28-Feb-2004) fsck.ext3: invalid option -- h Usage: fsck.ext3 [-panyrcdfvstDFSV] [-b superblock] [-B blocksize] [-I inode_buffer_blocks] [-P process_inode_size] [-l|-L bad_blocks_file] [-C fd] [-j ext-journal] [-E extended-options] device Emergency help: -p Automatic repair (no questions) ;自动修复 -n Make no changes to the filesystem ;模拟修复 -y Assume "yes" to all questions ;所有的问题都回答yes -c Check for bad blocks and add them to the badblock list ;检查坏块,并记录下坏块列表 -f Force checking even if filesystem is marked clean ;对标记为“干净”的文件系统进行强制检查 v Be verbose ;详细信息 -b superblock Use alternative superblock -B blocksize Force blocksize when looking for superblock -j external-journal Set location of the external journal -l bad_blocks_file Add to badblocks list -L bad_blocks_file Set badblocks list
本文档为【centos系统无法启动】,请使用软件OFFICE或WPS软件打开。作品中的文字与图均可以修改和编辑, 图片更改请在作品中右键图片并更换,文字修改请直接点击文字进行修改,也可以新增和删除文档中的内容。
该文档来自用户分享,如有侵权行为请发邮件ishare@vip.sina.com联系网站客服,我们会及时删除。
[版权声明] 本站所有资料为用户分享产生,若发现您的权利被侵害,请联系客服邮件isharekefu@iask.cn,我们尽快处理。
本作品所展示的图片、画像、字体、音乐的版权可能需版权方额外授权,请谨慎使用。
网站提供的党政主题相关内容(国旗、国徽、党徽..)目的在于配合国家政策宣传,仅限个人学习分享使用,禁止用于任何广告和商用目的。
下载需要: 免费 已有0 人下载
最新资料
资料动态
专题动态
is_079973
暂无简介~
格式:doc
大小:23KB
软件:Word
页数:6
分类:互联网
上传时间:2019-02-12
浏览量:27