- 论坛徽章:
- 0
|
修复linux损坏的文件系统
有一台文件系统换掉了,登陆进去后发现/data分区所有文件变成只读的,一段时间后系统自动重启了。
悲剧发生了,启动的时候出现如下错误:Press enter for maintenance- (or type Control-D to continue):
- /dev/sda5 contains a file system with errors, check forced.
- /dev/sda5: Inodes that were part of a corrupted orphan linked list found.
- /dev/sda5: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.
- (i.e., without -a or -p options)
- Press enter for maintenance
- (or type Control-D to continue):
- 复制代码
复制代码 在(or type Control-D to continue)后输入root用户的密码
1.首先在修复filesystem时要umount掉运行该命令:2.运行- #fsck.ext3 -p /dev/sda3
- 复制代码
复制代码 修复不成功
3.运行- #fsck.ext3 -y /dev/sda5
- 复制代码
复制代码 或- #fsck.ext3 /dev/sda5
- 复制代码
复制代码 过程中一直yes就可以了
修复成功!
|
|