I have heard that ext file system is easy to crash.
Today i forced to shutdown Ubuntu.
As a result,it cannot start up.
It remind me disk error on sda2,should use fsck.
So i input 'fsck /dev/sda2',then pressed several yes.
It's ok.Everything is recovered.
So don't dare any trouble,find the hint.
Ubuntu崩了,不要着急。其实是因为强制关机造成文件系统组长块不知道组员是谁了,可以进入recovery模式进行文件系统修复,fsck(file system check),一路上按yes就行了,然后重启。我的系统是/dev/sda2报错,于是fsck /dev/sda2.
fsck常用参数:
-a 自动修复文件系统,不询问任何问题。
-A 依照/etc/fstab配置文件的内容,检查文件内所列的全部文件系统。
-P 当搭配"-A"参数使用时,则会同时检查所有的文件系统。
-r 采用互动模式,在执行修复时询问问题,让用户得以确认并决定处理方式。
-s 依序执行检查作业,而非同时执行。
-T 执行fsck指令时,不显示标题信息。