Unexpected inconsistency run fsck MANUALLY798295477

just posted @ 2008年12月20日 20:26 in linux , 3957 阅读

这是由于系统非正常关机引起的  
  运行:e2fsck   -c   /dev/hda  
  类似于windows中的scandisk

//////////////////////
我的是Fedora8,今天启动是出现问题,提示如下
checking filesystem
/: unexpected inconsistency;RUN fsck MANUALLY
An error occurred during the filesystem check
Propping you to shell the system will reboot
when you leave the shell
Give root password for mantennance

问题很简单,磁盘出了毛病,解决方法如下

在命令行输入
#mount | grep ''on /''
得到你root用户所在分区/dev/your_partition,然后输入
fsck -y /dev/your_partition
即,检测并修复磁盘/dev/your_partition,-y 选项指定检测每个文件是自动输入yes
重启,问题解决

问题解决了,自己总结方法,也希望能给遇到相同问题的Linux用户有所帮助


================================


重開機時發現進不去,一直卡在這邊.....
Checking root filesystem
/contains a file system with errors,check forced.
/:
Unattached inode 34190
/:Unexpected inconsistency;run fsck manually
(i.e,without -a or -p options)

***An error occurred during the file system check
***Dropping you to a shell;the system will reboot
***when you leave shell
Give root password for maintenance
(or type Control-D for normal startup):
-----------------------------------------------------------
解決辦法:

別按Ctrl + D,直接打root密碼,這樣就能以root登入
然後會出現 Repair filesystem)#
如果輸入Ctrl+D,則會出現=>系統重開,並且一堆partition,not mounted.

這時請輸入 df, 則會出現以下訊息:
/dev/hda1
/dev/hda2
/dev/hda3

hdax 是視你切了幾個Partition和幾顆HDD, 反正dev 有幾個後面是甚麼
都給它記住.
然後輸入 e2fsck /dev/hda1
問你yes or no 都答 y 就對了, 依次執行每個 dev 就OK 了
成功的機率應該有 70~80%, 如果再不行就死了

  • 无匹配
  • 无匹配

登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter