问题大概是这样,个人有个1TB硬盘平分成两个磁区,分别代称A和B好了
之前用到一半突然变成唯独,重开检查以后发现坏轨,B可以唯独挂载后备份档案
把B用badblock扫过之后再用低阶格式化后已无坏轨
A则仍然无法挂载,所以用dd把A整个备份到原先B的位置尝试修复,但是仍然无法挂载
[email protected]:~$ sudo mount -o recovery,ro /dev/sdb1 /mnt
mount: wrong fs type, bad option, bad superblock on /dev/sdb1,
missing codepage or helper program, or other error
[email protected]:~$ dmesg | tail
[749736.867905] BTRFS info (device sdb1): enabling auto recovery
[749736.867914] BTRFS info (device sdb1): disk space caching is enabled
[749736.867917] BTRFS: has skinny extents
[749736.915400] BTRFS info (device sdb1): bdev /dev/sdb1 errs: wr 205, rd 6,
flush 0, corrupt 0, gen 0
[749736.927646] BTRFS error (device sdb1): parent transid verify failed on
900661248 wanted 48881 found 48633
[749736.934362] BTRFS error (device sdb1): parent transid verify failed on
900661248 wanted 48881 found 48633
尝试使用btrfs的相关指令修复
[email protected]:~$ sudo btrfs check