linux reboot have Unexpected inconsistency problem

linux 重開機後出現 “Unexpected inconsistency"

當電腦重開機時發現進不去,一直卡在這邊…..

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%, 如果再不行就死了