問題大概是這樣,個人有個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