Nov 4

[转]解决journal block not found错误 雨

linuxing , 22:47 , 基础知识 » 故障处理 , 评论(0) , 引用(0) , 阅读(22351) , Via 本站原创 | |
   某机器,系统运行一段时间之后根分区都会变成只读。当使用光盘进入拯救模式后,用

# dumpe2fs -h /dev/sda1

可以看到文件系统的状态是“clean with errors”
用fsck进行系统检查时,报如下错误:
引用
journal_bmap_Rsmp_6199acb1: journal block not found at offset 5132 on md(9,0)
Aborting journal on device md(9,0).
ext3_abort called.
EXT3-fs abort (device md(9,0)): ext3_journal_start: Detected aborted journal
Remounting filesystem read-only

该错误表明ext3文件系统有一部分的日志丢失了。由于fsck并不能恢复日志,需要手动重建磁盘日志。

重建ext3的日志:
进入rescue模式
1)将sda1转换为ext2,即去掉ext3的日志:

# tune2fs -O ^has_journal /dev/sda1

2)对sda1进行fsck

# e2fsck -yf /dev/sda1

3)将sda1从ext2转换为ext3,重建日志

# tune2fs -j /dev/sda1

完成后,重启系统,根分区恢复正常。

※ 以上内容来自赵超 zhaochao#redflag-linux.com
Tags:
发表评论
表情
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
打开HTML
打开UBB
打开表情
隐藏
记住我
昵称   密码   游客无需密码
网址   电邮   [注册]