Boot from a live system and do btrfs check /dev/YOURSYSTEMROOTPARTITION on the unmounted partition. You will get error messages which will help you to look at further steps.
Afterwards, try to mount the partition and look for error messages here too: sudo dmesg | grep "BTRFS"
sudo journalctl -p3
I have recently fixed my btrfs partiton after several system hangs which prbb. caused the failure. Your error message was different from mine. Do you get more error messages?
You can also reboot the live system and make an image of your inaccessible drive, then copy the data from it.
When done, mount the image to rescue/save/back up the data, for instance your >10gb files: sudo mount -o ro,rescue=nologreplay /your/path/to/another/storage/device/btrfsimage /run/media/manjaro/btrfsimagemounted
Hello, thanks for answering, as I’m telling you, I’m new to this environment, you know that it detects them as in the /dev folder, otherwise in /run/media when I try to check them from USB LIVE and yes my drive is encrypted
This is you mounting the partition (to /run/media). Once you see the content, it’s mounted.
Reboot and don’t mount (i. e. don’t click on the drive in e.g. Dolphin). Work in terminal. You need to luksOpen the partition (that’s just decryting and not mounting).
then you can sudo btrfs check /dev/mapper/systemroot
or make the image like described above.
Mounted, means like you described, you see the files in /run/media/… afterwards, is when you click on the in Dolphin or other file managers too.
Then you get error messages in sudo dmesg | grep "BTRFS"
this is the output: sudo cryptsetup luksOpen /dev/nvme0n1p2 systemroot sudo btrfs check /dev/mapper/systemroot
Opening filesystem to check...
Checking filesystem on /dev/mapper/systemroot
UUID: 26104594-05bf-4666-9597-41ce148cfe64
[1/7] checking root items
[2/7] checking extents
tree extent[144273260544, 16384] parent 8796999598080 has no tree block found
tree extent[144273260544, 16384] parent 906575872 has no backref item in extent tree
incorrect global backref count on 144273260544 found 6 wanted 5
backpointer mismatch on [144273260544 16384]
ERROR: errors found in extent allocation tree or chunk allocation
[3/7] checking free space tree
[4/7] checking fs roots
[5/7] checking only csums items (without verifying data)
[6/7] checking root refs
[7/7] checking quota groups
ERROR: bytenr ref not found for parent 8796999598080
ERROR: not enough memory: accounting for refs for qgroups
ERROR: failed to check quota groups
found 713982095360 bytes used, error(s) found
total csum bytes: 677695472
total tree bytes: 2638954496
total fs tree bytes: 1693843456
total extent tree bytes: 135331840
btree space waste bytes: 437251418
file data blocks allocated: 1451661459456
referenced 722020425728
Ok, before we do anything with the broken drive or filesystem itself, we’ll try to make an image of it. Do you have another drive at hand? Then make the image.
When done, mount the image to rescue/save/back up the data, for instance your >10gb files: sudo mount -o ro,rescue=nologreplay /your/path/to/another/storage/device/btrfsimage /run/media/manjaro/btrfsimagemounted
this commands will help for the image creation and backup?
The image is a big file where all the individual files of the partition are in.
The first command makes the image.
The second one mounts it with some safety mount options ( ro,rescue=nologreplay).
Once mounted you are hopefully able to see the files.
Then you can copy them to your USB drive.