btrfs check in btrfs-progs-5.19.1 should be able to detect and fix this.
(I'm running Ubuntu 22.04.3 LTS and it has an old version, btrfs-progs
v5.16.2, so that would need to be upgraded manually.)
https://github.com/kdave/btrfs-progs/issues/522#issuecomment-1973892509
btrfs-progs-5.19.1
TLDR:
I had the "device total_bytes should be at most X but found Y" error which
prevented me from mounting the btrfs filesystem. It was apparently caused by a
HDD's usable disk space/partition size shrinking by about 1MB (perhaps the HDD
detected bad sectors). "btrfs check" found no errors. I
2 matches
Mail list logo