I have a luks encrypted system with a btrfs root fs that is having some issues.
Previously, from a Tumbleweed recovery CD, I was able to do the following and the final mount command would succeed, granting access to the file system.
Given dmesg was showing btrfs verify errors, I attempted a btrfs scrub which was aborting immediately after starting. A btrfs repair was not run.
After I reboot I started getting ‘can’t read superblock on /dev/mapper/system-root’ though btrfs rescue super-recover ‘All supers are valid, no need to recover’
Is this a matter of the lvm superblock not being found, but the btrfs supers are? Any suggestions how to recover this partition so as to be able to mount again?
smartctrl on the ssd shows no issues, pending or bad sectors, or other health issues.
Interestingly, mount -t btrfs -o recovery /dev/mapper/system-root /tmp/root does work and presents the filesystem contents. But I’d like, if possible, to be able to recover the LV so it mounts directly again if possible.
Thanks for any tips.
Cheers,
0:rescue:~ # lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
loop0 7:0 0 58.9M 1 loop /parts/mp_0000
loop1 7:1 0 14M 1 loop /parts/mp_0001
loop2 7:2 0 33.3M 1 loop /mounts/mp_0000
loop3 7:3 0 46.1M 1 loop /mounts/mp_0001
loop4 7:4 0 4.1M 1 loop /mounts/mp_0002
sda 8:0 0 232.9G 0 disk
├─sda1 8:1 0 399M 0 part
└─sda2 8:2 0 232.5G 0 part
└─encrypted_device 254:0 0 232.5G 0 crypt
├─system-root 254:1 0 228.5G 0 lvm
└─system-swap 254:2 0 4G 0 lvm
sr0 11:0 1 4G 0 rom
0:rescue:~ # file -s /dev/sda2
/dev/sda2: LUKS encrypted file, ver 1 [aes, xts-plain64, sha1] UUID: d5702fad-4d29-4b8a-9662-3b1fe32a7c71
0:rescue:~ # cryptsetup luksOpen /dev/sda2 encrypted_device
Enter passphrase for /dev/sda2:
0:rescue:~ # lvscan
ACTIVE '/dev/system/root' [228.49 GiB] inherit
ACTIVE '/dev/system/swap' [4.00 GiB] inherit
0:rescue:~ # mount /dev/mapper/system-root /tmp/root
mount.bin: /tmp/root: can't read superblock on /dev/mapper/system-root.
0:rescue:~ # mount -t btrfs -o recovery /dev/mapper/system-root /tmp/root
mount.bin: /tmp/root: can't read superblock on /dev/mapper/system-root.
0:rescue:~ # btrfs rescue super-recover /dev/mapper/system-root
All supers are valid, no need to recover
You choose for OTHER VERSION. That should have triggered you to mention the openSUSE version as one of the first things in your thread. I can not find it. Please do not let people guess.