btrfs文件系统损坏恢复

最近使用fedora19, 似乎很不稳定啊! 特别是更新源很多问题,一个不小心就更新死掉了. 到目前为止已经死了4次,重装3次.

        在此记录最近一次修复btrfs的过程.


        这次遇到的是在vmware中安装的fedora, 发现开不了机,系统也进不去.


用livecd登入系统, 按如下方式挂载损坏的文件系统, 我采用的是第一种: mount -o clear_cache /dev/sda3 /tmp/dd

挂载成功, 看起来似乎能使用了. 里边的文件也在. 重启,进入硬盘系统.  一切OK,搞定. 

First of all, you should try with a very recent kernel. I think Fedora 18 comes with a 3.6 kernel, maybe find alive cd with a more recent kernel (3.8).

Then, you can try mounting your file system with one of the following options:

mount -o clear_cache /dev/sdX /your/mountpoint

(this will delete the freezspace cache, which is sometimes a cause for btrfs refusing to mount)

or:

mount -o recovery /dev/sdX /your/mountpoint

(will try to use an ‘old but known as good’ filesystem root.)

If it doesn’t work, you may want to try btrfsck with the latest btrfs tools from git (you will have to download and compile them yourself)


参考:  http://qandasys.info/unknown-btrfs-error-partition-wont-mount-3/


  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值