Hello,
I’m afraid I did a terrible mistake [*] and messed up my LUKS encrypted btrfs:
This is an Artemis installation with last updates from about 2 weeks ago.
I configured hibernation to swapfile.
That’s on a Dell XPS 13 9350, 2TB ssd retrofitted.
Everything (AFAICT) was working fine, till now.
It’s the first time I’m trying btrfs and luks encryption.
First,
on the user side, before booting after entering the passphrase, after the “Slot 0 opened”,
I get “error: unknown filesystem.”
Then I’m left with grub rescue-mode.
Trying to mount the partition on the old system (on which I’m writing this) I get
mount: /media/mz/TEMP: wrong fs type, bad option, bad superblock on /dev/mapper/luks-2d88a6e5-65b9-484d-aef5-633cd1b775c7, missing codepage or helper program, or other error.
upon trying to mount the bad fs.
I tried this with
mount -o ro,usebackuproot /dev/mapper/luks-2d88a6e5-65b9-484d-aef5-633cd1b775c7 /media/me/TEMP/
syslog shows:
Aug 6 10:29:26 e-minor kernel: [ 4286.264663] BTRFS info (device dm-0): flagging fs with big metadata feature
Aug 6 10:29:26 e-minor kernel: [ 4286.264671] BTRFS info (device dm-0): using free space tree
Aug 6 10:29:26 e-minor kernel: [ 4286.264676] BTRFS info (device dm-0): has skinny extents
Aug 6 10:29:26 e-minor kernel: [ 4286.281070] BTRFS error (device dm-0): parent transid verify failed on 334692352 wanted 14761 found 14765
Aug 6 10:29:26 e-minor kernel: [ 4286.281416] BTRFS error (device dm-0): parent transid verify failed on 334692352 wanted 14761 found 14765
Aug 6 10:29:26 e-minor kernel: [ 4286.281436] BTRFS error (device dm-0): failed to read block groups: -5
Aug 6 10:29:26 e-minor kernel: [ 4286.321874] BTRFS error (device dm-0): open_ctree failed
dmesg writes:
[ 2343.327025] BTRFS: device fsid 2d1dc6b4-84ab-4c64-91a0-669b6228c516 devid 1 transid 14761 /dev/dm-0
[ 2343.610293] BTRFS info (device dm-0): flagging fs with big metadata feature
[ 2343.610296] BTRFS info (device dm-0): using free space tree
[ 2343.610297] BTRFS info (device dm-0): has skinny extents
[ 2343.616005] BTRFS error (device dm-0): parent transid verify failed on 334692352 wanted 14761 found 14765
[ 2343.616187] BTRFS error (device dm-0): parent transid verify failed on 334692352 wanted 14761 found 14765
[ 2343.616193] BTRFS error (device dm-0): failed to read block groups: -5
[ 2343.659569] BTRFS error (device dm-0): open_ctree failed
blkid:
/dev/nvme0n1p1: LABEL="NO_LABEL" UUID="2F5D-2584" TYPE="vfat" PARTUUID="6b7d850e-38a4-044a-b526-16d5f1860b57" /dev/nvme0n1p2: UUID="2d88a6e5-65b9-484d-aef5-633cd1b775c7" TYPE="crypto_LUKS" PARTLABEL="root" PARTUUID="9e456477-7b1c-d84d-99a2-27aa32c90206" /dev/sda1: UUID="C57C-D866" TYPE="vfat" PARTLABEL="EFI System Partition" PARTUUID="ccf8d7e2-92b9-4eff-8f62-ccb5b8abf35a" /dev/sda2: UUID="e0e2a28e-3780-4a63-8636-3b712c6d9e23" TYPE="ext4" PARTUUID="4b66127e-1190-4093-9c8e-b77420a735a2" /dev/sda3: UUID="a68c5bb0-f919-4100-8b8c-870b37c808aa" TYPE="swap" PARTUUID="0d55ec7b-c084-4196-b9fa-1b1bf1bccd12" /dev/nvme0n1: PTUUID="8ed72cef-dfe2-3244-8975-0157bc9f9e96" PTTYPE="gpt"
lsblk:
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 1 460,3G 0 disk |-sda1 8:1 1 512M 0 part /boot/efi |-sda2 8:2 1 220,7G 0 part / `-sda3 8:3 1 17,3G 0 part [SWAP] nvme0n1 259:0 0 1,8T 0 disk |-nvme0n1p1 259:1 0 300M 0 part `-nvme0n1p2 259:2 0 1,8T 0 part
Also:
# cryptsetup status /dev/mapper/luks-2d88a6e5-65b9-484d-aef5-633cd1b775c7
/dev/mapper/luks-2d88a6e5-65b9-484d-aef5-633cd1b775c7 is active.
type: LUKS1
cipher: aes-xts-plain64
keysize: 512 bits
key location: dm-crypt
device: /dev/nvme0n1p2
sector size: 512
offset: 4096 sectors
size: 3906406400 sectors
mode: read/write
I’m at the point where I’m just able to poke around and fit in missing knowledge, but also being stuck.
What can I do to rescue this partition?
Thank you very much!
Michael.
[*] I do have my old system (Mint 19.3) on a USB stick which I configured as a boot option.
I put EOS into hibernation and booted from the USB stick (some SW still is missing on my EOS installation).
My mistake (I think) started with mounting the EOS btrfs to Mint, exchanging some files, putting Mint to hibernation and trying to continue on EOS.
Now I tried to access an already mounted (encrypted) FS… which did not work.
I’m not sure if/what I’m missing but that’s the picture I have right now.