btrfs文件系统损坏恢复

本文记录了一次在Fedora系统中修复损坏的Btrfs文件系统的经历。通过使用LiveCD启动并尝试不同的挂载选项,最终成功解决了无法启动的问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

最近使用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/


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值