首页 > 代码库 > Linux文件系统修复

Linux文件系统修复

checking root filesystem

/dev/sdb5 contains a file system with errors, check forced

/dev/sdb5:

Unattached inode 68338812

/dev/sdb5: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY

(i.e., without -a or -p options)

FAILED

/contains a file system with errors check forced

an eror occurred during the file system check

****dropping you to a shell;the system will reboot

****when you leave the shell

Press enter for maintenance

(or type Control-D to continue):

give root password for maintenance

上述提示,系统在开机后,没有完成文件系统的自动回复功能,在这个页面下若按Ctrl+D会自动重启机器,若输入root密码,则进入Linux的修复模式进行强行修复。


千万要注意,在修复之前一定要先卸载该设备。

unmount  /dev/sdb5

fsck.ext3  -y  /dev/sdb5

本文出自 “常用文档” 博客,请务必保留此出处http://yujianglei.blog.51cto.com/7215578/1562318

Linux文件系统修复