我无法挂载 BTRFS 分区,错误是
BTRFS critical (device sdb2): corrupt node, bad key order: block=369396563968, root=1, slot=164
BTRFS critical (device sdb2): corrupt node, bad key order: block=369396563968, root=1, slot=164
BTRFS error (device sdb2) failed to read block groups
BTRFS error (device sdb2) open_ctree failed
无论我做什么,我都无法安装该分区。这些btrfs
命令似乎根本不起作用。
使用-o recovery,ro
或进行安装-o usebackuproot
会出现此错误。
mount -o usebackuproot /dev/sdb2 /mnt/t
mount: /mnt/t: wrong fs type, bad option, bad superblock on /dev/sdb2, missing codepage or helper program, or other error.
使用btrfs check --repair /dev/sdb2
:
ERROR: cannot open file system
输出btrfs fi show /dev/sdb2
Label: none uuid: d81d07ed-7307-4eb3-a7b1-468f2ab6eb1c
Total devices 1 FS bytes used 1.33TiB
devid 1 size 4.03TiB used 1.36TiB path /dev/sdb2
答案1
运行btrfs check --init-extent-tree /dev/sdb2
两次就可以挂载了。