When I startup my Dell Xps 13 9350 on which the Ubuntu 18.04 is the only OS installed, after inserting the encryption/decryption password for the ssd, I get the following error.
Error: failed to connect to lvmetad. Falling back to device scanning.
Volume group "ubuntu-vg" not found
Cannot process volume group ubuntu-vg.
Warning: failed to connect to lvmetad.Falling back to device scanning.
Reading all physical volumes. This may take a while...
Found volume ubuntu-vg using metadata type lvm2
Warning: failed to connect to lvmetad. Falling back to device scanning.
2 logical volume(s) in volume-group "ubuntu-vg" now active
Gave up waiting
touch: /dev/.initramfs/jasper.log: no such file or directory
/dev/mapper/ubuntu--vg--root: clean 1469151/30154752 files, 119168259/120604672 blocks
I flashed Ubuntu on a USB stick and thought I can use fsck
to repair the encrypted disk.
Since the disk is encrypted I did:
cryptsetup luksOpen /dev/nvme0n1p3 someName
and entered the password.
Now I tried to run:
sudo e2fsck /deve/mapper/someName
but I get the error:
/dev/mapper/someName is in use:
e2fsck cannot continue, aborting.
I tried to umount
bothe someName
and the ecnrypted disk partition /dev/nvme0n1p3
but neither of them is mounted.
How can I repair my disck with e2fsck
or any other way (without loosing my files)?