BTRFS chunk tree corruption on UGREEN DXP2800 NAS, orphaned block groups blocking mount, standard repair tools failing

Posted by osoatwork@reddit | sysadmin | View on Reddit | 15 comments

Running a UGREEN DXP2800 NAS (Intel N100, UGOS/Debian-based) with two 8TB WD Red drives in BTRFS RAID1. After a power loss, Volume 1 mounted read-only with chunk tree corruption.

**Current state:**

- Both drives pass SMART

- `btrfs check --chunk-root 29573120 --repair --force` successfully opens the filesystem and repairs extent references

- Two orphaned block groups remain that cause it to abort: `Block group[4769591590912]` and `Block group[4770665332736]` — "didn't find relative chunk"

- Filesystem will not mount

**What I've tried:**

- `btrfs rescue chunk-recover` — device busy

- `btrfs rescue zero-log` — couldn't open ctree

- `btrfs check --repair` with all 4 backup chunk roots from superblock

- `--clear-space-cache v2` — completed successfully

- `--init-extent-tree` — crashes with assertion error

- SystemRescue live USB for unmounted repair — auto-reboots before repair can complete

**Specific question:** How do I remove or fix these two orphaned block groups? Is there a way to manually delete them from the chunk tree, or force BTRFS to ignore them on mount?

Any help appreciated.