I am kind of new to arch (endeavour os particularly), but i am not sure that the problem is in the system. In short, my laptop won’t go to hibernation after it’s lid is closed because it didn’t have a swap file to save session to. I then proceed with creating by guide written on arch wiki, using command mkswap
. After doing some stuff described on arch wiki, i tried to hibernate my laptop, but nothing happened. For some days, my system worked fine, but then i tried to update using yay
and reboot. Laptop didn’t reboot but it has loaded that session from when i tried to hibernate it. And after rebooting from that session, it didn’t boot up. The problem was with the system partition, but fsck
did fix it. Then it didn’t boot because it couldn’t mount that corrupted btrfs partition. For information, problematic btrfs partition is right before linux system partition, and contain important data without backups.
My hypothesis is that mkswap
has tried to make up swap partition by squeezing system partition, but somehow it affected btrfs partition, and i believe, it didn’t recognize it.
This is the output from btrfs check
:
Opening filesystem to check...
checksum verify failed on 246038528 wanted 0x00000000 found 0xb6bde3e4
checksum verify failed on 246038528 wanted 0x00000000 found 0xb6bde3e4
checksum verify failed on 246038528 wanted 0x00000000 found 0xb6bde3e4
bad tree block 246038528, bytenr mismatch, want=246038528, have=0
ERROR: could not setup csum tree
ERROR: cannot open file system
Important note that system partition is fully functional, and i am using my lap in dualboot, where w10 see that btrfs partition corrupted too.
Tried btrfs check --repair
:
Starting repair.
Opening filesystem to check...
checksum verify failed on 246038528 wanted 0x00000000 found 0xb6bde3e4
checksum verify failed on 246038528 wanted 0x00000000 found 0xb6bde3e4
checksum verify failed on 246038528 wanted 0x00000000 found 0xb6bde3e4
bad tree block 246038528, bytenr mismatch, want=246038528, have=0
WARNING: could not setup csum tree, skipping it
parent transid verify failed on 71958528 wanted 45315 found 45751
parent transid verify failed on 71958528 wanted 45315 found 45751
parent transid verify failed on 71958528 wanted 45315 found 45751
Ignoring transid failure
parent transid verify failed on 201768960 wanted 45297 found 45330
parent transid verify failed on 201768960 wanted 45297 found 45330
parent transid verify failed on 201768960 wanted 45297 found 45330
Ignoring transid failure
checksum verify failed on 202014720 wanted 0x00000000 found 0xb6bde3e4
checksum verify failed on 202014720 wanted 0x00000000 found 0xb6bde3e4
checksum verify failed on 202014720 wanted 0x00000000 found 0xb6bde3e4
bad tree block 202014720, bytenr mismatch, want=202014720, have=0
ERROR: failed to read block groups: Input/output error
ERROR: cannot open file system
Tried btrfs restore -v
(skipping wall of repetitive text about items):
ERROR: root [5 0] level 0 does not match 2
Could not open root, trying backup super
ERROR: superblock bytenr 274877906944 is larger than device size 101518934016
Could not open root, trying backup super
I even tried resizing it in GParted, but it didn’t allow due to errors