* Broken BTRFS Partition
@ 2025-08-14 3:21 AccSwtch50
2025-08-14 5:13 ` Qu Wenruo
0 siblings, 1 reply; 2+ messages in thread
From: AccSwtch50 @ 2025-08-14 3:21 UTC (permalink / raw)
To: linux-btrfs
Hi, How do I fix my broken btrfs partition?
This is the dmesg log when I tried to mount it:
[22709.506970] BTRFS info (device sda21): first mount of filesystem
853da0a7-a25b-423a-8b42-4ef0cec712fe
[22709.506989] BTRFS info (device sda21): using crc32c (crc32c-x86)
checksum algorithm
[22709.506997] BTRFS info (device sda21): using free-space-tree
[22709.809320] BTRFS error (device sda21): level verify failed on logical
205872398336 mirror 1 wanted 1 found 0
[22709.809395] BTRFS error (device sda21): failed to load root free space
[22709.810018] BTRFS error (device sda21): open_ctree failed: -5
And here's the output of btrfs check:
Opening filesystem to check...
ERROR: root [10 0] level 0 does not match 1
ERROR: could not setup free space tree
ERROR: cannot open file system
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Broken BTRFS Partition
2025-08-14 3:21 Broken BTRFS Partition AccSwtch50
@ 2025-08-14 5:13 ` Qu Wenruo
0 siblings, 0 replies; 2+ messages in thread
From: Qu Wenruo @ 2025-08-14 5:13 UTC (permalink / raw)
To: AccSwtch50, linux-btrfs
在 2025/8/14 12:51, AccSwtch50 写道:
> Hi, How do I fix my broken btrfs partition?
History please.
This is a pretty serious failure of COW.
Unless you were using nobarrier mount option and a sudden power loss
happened, it may indicate your storage doesn't properly handle FUA/FLUSH
commands.
>
> This is the dmesg log when I tried to mount it:
> [22709.506970] BTRFS info (device sda21): first mount of filesystem
> 853da0a7-a25b-423a-8b42-4ef0cec712fe
> [22709.506989] BTRFS info (device sda21): using crc32c (crc32c-x86)
> checksum algorithm
> [22709.506997] BTRFS info (device sda21): using free-space-tree
> [22709.809320] BTRFS error (device sda21): level verify failed on logical
> 205872398336 mirror 1 wanted 1 found 0
> [22709.809395] BTRFS error (device sda21): failed to load root free space
> [22709.810018] BTRFS error (device sda21): open_ctree failed: -5
You can try "ro,rescue=all", which will make btrfs to ignore the
corrupted free space tree.
If lucky enough, you can still salvage your data.
>
> And here's the output of btrfs check:
> Opening filesystem to check...
> ERROR: root [10 0] level 0 does not match 1
Repair will not help much in this case.
Thanks,
Qu
>
> ERROR: could not setup free space tree
> ERROR: cannot open file system
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-08-14 5:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-14 3:21 Broken BTRFS Partition AccSwtch50
2025-08-14 5:13 ` Qu Wenruo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox