linux下repairfilesystem模式修复方法实践
repairfilesystem1#一般是什么引起的和该怎样解决
第一种情况:非正常关机引起的磁盘分区问题不能正常进入系统
大家好~!
麻烦大家教教我如下问题一般是如何引起和应该怎么样解决呢?
Findingmoduledependencies;[OK]
modprobe:modprobe:can''tlocatemoduleblock-major-3
fsck.ext3Possiblynon-existentorswapdevice?
:NOsuchdeviceoraddresswhiletryingtoopen/dev/hdb1
/boot:clena,41/26104files.12679/104391blocks
[FAILED]
ANerroroccurredduringthefilesystemcheck
Droppingyoutoashell;thesystmwillreboot
whenyouleavetheshell
Giverootpasswordformaintenance
(ortypeControl-Dtocontinue):
Loginincorrect.
(Repairfilesystem)1#
作者:auhtcode发布日期:2008-10-20
上次非正常关机引起的,用fsck/dev/hdaX后reboot进入,或只用fsck来修复,只管y回车
作者:wen114999发布日期:2008-11-05
第二种情况:由于/etc/fstab文件编辑错误而引起的不能正常进入系统
解决方法就是修改/etc/fstab文件成原来正常格式删除错误的或者是不存在的挂载目录
操作:根据提示进入修复模式Loginincorrect.
(Repairfilesystem)1#vim/etc/fstab
但是修复模式下(read-onlysystem)文件是被保护的不能修改运行下面命令把系统文件权限改成可读写(rw)
(Repairfilesystem)1#mount-oremount,rw/
使根目录可写.即可以修复/etc/fstab文件,使之可写.然后就可以vi修改了
保存wq
(Repairfilesystem)1#reboot
搞定!!!RHLE正常界面又出来了。
为了您的安全,请只打开来源可靠的网址
打开网站取消
来自:http://hi.baidu.com/michael7768/blog/item/7081a703ffbd507d3912bb29.html
|
|