You are not logged in.

#1 2023-06-04 19:13:52

mkriseev
Member
Registered: 2023-06-04
Posts: 1

BTRFS unable to mount, error corrupt leaf

Today I was trying to boot my PC and was greeted with error pointing at my /home partition not being mounted.
Mount shows me this:
   

mount: /mnt/hdd: wrong fs type, bad option, bad superblock on /dev/sdb1, missing codepage or helper program, or other error.
        dmesg(1) may have more information after failed mount system call.

dmesg reports this: https://pastebin.com/NbLyb1A6

After this I ran `btrfs check /dev/sdb1`. Here's the output https://pastebin.com/bMt3FFsd

I searched for a solution and couldn't find anything useful. I could mount fs with -o ro,rescue=all but it still gave those errors in dmesg, just ignored them, so I can at least copy everything (or most of the data) and recreate file system.

Is there a way to fix it without copying data and then recreating fs from scratch?

Offline

#2 2023-06-10 16:03:42

ua4000
Member
Registered: 2015-10-14
Posts: 559

Re: BTRFS unable to mount, error corrupt leaf

Sorry, in my experience is btrfs not repairable if damaged.
Keep you backup nearby, or start to grab anything from the drive before it gets more corrupted.

Figure out, why the damage has occurred, e.g. watch the smart values of your drive and look for other errors in the dmesg.
Read https://wiki.archlinux.org/title/Btrfs for some tips in the Troubleshooting section and don't miss the notes on "btrfs check with the --repair" option - be prepared to loose the home data entirely during your tests.

Offline

Board footer

Powered by FluxBB