Hi all.
I have a bit of an issue here.
I’m working on adapting a website based software: as such, I needed the whole LAMPS, but as I didn’t want that eating resources on my main machine I created a virtual(box) machine with LAMPS installed, and just installed the new software to start the modifications. It was working fine but I’ve got bored with the repos errors in packakit. After some updates in the repositories (but no system update!), I found a black screen. Restarting did not work.
Since it did not occur to me to backup the modifications I was doing on the software running inside the virtual machine, I have no other option than resurrecting this!
@JulinaB and @susejunky helped me as far as they could at https://forums.opensuse.org/showthread.php/558839-Leap-15-2-Grub-error-on-virtualized-machine-after-repos-update. However, the error was identified to be related to a btrfs error, preventing / from being mounted, and I was suggested to open this new thread.
Following some instructions found somewhere else, I got the following:
#btrfs check --readonly /dev/sda2
Opening filesystem to check...
checksum verify failed on 147865600 found 4653BB36 wanted 464C457F
checksum verify failed on 147865600 found 4653BB36 wanted 464C457F
checksum verify failed on 147865600 found 4653BB36 wanted 464C457F
bad tree block 147865600, bytenr mismatch, want=147865600, have=15762873573703680
Couldn'r read tree root
ERROR: cannot open file system
#dmesg
...
7807.849496] BTRFS error (device sda2): bad tree block start, want 147865600 have 15762873573703680
7807.857000] BTRFS error (device sda2): bad tree block start, want 147865600 have 15762873573703680
7807.857013] BTRFS warning (device sda2): failed to read tree root
7807.893221] BTRFS error (device sda2): open_ctree failed
Anybody has any idea on what should be my next step to (as safely as possible) recover the this (virtual) machine and raise it back from its (virtual) death? Should I now go straight to “btrfs check --repair” or should I try something else before? (I’ve read something, maybe outdated, that the tools are not as good as they should and as such there is a higher risk of loosing data)
Thanks a lot in advance for any suggestions!
