设为首页收藏本站language 语言切换
查看: 1704|回复: 2
收起左侧

repair filesystem

[复制链接]
发表于 2011-6-28 15:28:41 | 显示全部楼层 |阅读模式
linux下repair filesystem模式修复方法实践
repair filesystem 1 #一般是什么引起的和该怎样解决
第一种情况:非正常关机引起的磁盘分区问题 不能正常进入系统
大家好~!
麻烦大家教教我如下问题一般是如何引起和应该怎么样解决呢?
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回车
作者: wen114999 发布日期: 2008-11-05
第二种情况:由于/etc/fstab文件编辑错误 而引起的不能正常进入系统
解决方法就是修改/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
搞定!!! RHLE正常界面又出来了。

 楼主| 发表于 2012-7-19 11:57:04 | 显示全部楼层
沙发 2012-7-19 11:57:04 回复 收起回复
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 论坛注册

本版积分规则

QQ|Archiver|手机版|小黑屋|sitemap|鸿鹄论坛 ( 京ICP备14027439号 )  

GMT+8, 2025-4-30 15:49 , Processed in 0.079593 second(s), 24 queries , Redis On.  

  Powered by Discuz!

  © 2001-2025 HH010.COM

快速回复 返回顶部 返回列表