Need to re-install using LVM keeping encrypted /home LV unformatted

Well, this is weird… :crazy_face:

After two years of a happy honey moon with Manjaro, I got a read only root partition and a kernel panic :bomb: :right_anger_bubble: after a reboot on my daily driver Thinkpad T440s.

Booting a live USB was a breeze, but then I missed the good ol’ days of Debian or even Red Hat / CentOS text based install tools: the Manjaro installer (Calamare’s the name…?) hangs when trying to create a new Volume Group. No matter if I got the Plasma live USB image or the Deepin one –this is what I really want. It hangs at the very same step.

What do I have:

  • Two physical SSD disks: one with the OS-that-runs-better-with-windows :roll_eyes: (license already payed, so…) with a minimal free space, a /boot ext4 partition and a free space available as a Physical Volume for my say gabrielvg Volume Group.

  • Eventually, I bought another beautiful NVMe SSD disk and created another PV, so the VG was extended.

Now, a more deep step:

The Volume Group was populated with three Logical Volumes: rootlv, which holds my BTRFS /root partition, swaplv (guess what was in there…), and a password-at-boot-time-proyected crypto device /home partition. Honestly, I don’t remember if it’s LUKS. May be so.
I do have copies of my /etc/fstab and /etc/mkinitcpio.conf in a safe place.

What do I want:

  • Yes, you are thinking inside the box: I want Manjaro with Deepin DE and I do want to keep my cypher /home partition unchanged and accessible as before the kernel panic situation. So, I thought: «Lets rebuild the volume group from zero!». I wiped the /root partition, deleted the file system, then the partition and even the logical volume. Said bye-bye to my swap, too. Just in case.

  • A fresh start with only an encrypted item. Well, let’s go!

  • Some fancy housekeeping after booting the live minimal Manjaro Deeping and launched the installer for the fourth time.

  • Selected the main disk (the one with MS-Windows and the the other Linux stuff) and selected the little /boot partition. Checked it for being formatted and to be mounted as /boot. So far, so good.

  • Didn’t touch the Windows partitions by now. Not important in this stage.

  • Moved into the second “device” marked as the ‘vgroot’, the name I used to use with the VG before the crash. And there it is the /home encrypted partition and the rest of the disk, free (remember I deleted all the remains of my latter system, R.I.P.).

  • Now, I create a new partition and mark it as ‘LVM PV’, so I can create a new VG. When I click on ‘CREATE VG’, Calamares do some checks and hangs. No error messages, no console output

  • Only demsg logging a segmentation fault:

[ 4525.430142] calamares[27603]: segfault at 7f224e5bbe50 ip 00007f25deede20e sp 00007ffea4d23f60 error 4 in libkpmcore.so.21.08.2[7f25deead000+9f000]

So, I think: «I need to work it out it in the CLI». I know how to manage LVM in Linux (or IBM AIX) using the CLI but the real thing here is that is the installer who needs to manage the LVM set up, not me from the outside. Am I wrong? :thinking:

I am stuck here, really thought It will be easier for a modern distro to solve an easy situation like that. :weary:

Any hints would be highly appreciated.
Thanks in advance, folks :v:

It is a well-known issue that Calamares is not good with LVM - maybe it will at some point - it’s just not now.

It is quite possible to install Manjaro using CLI only.

You will need to know how and to that end I have made my notes available in several topics. Search for the phrase [root tip] or jump into my notepad.

I have never used LVM with any success - the most I have bothered to learn is systemd-boot using LUKS encrypted containers. So you will have to apply own knowledge of LVM - perhaps consult the LVM - ArchWiki

Thankfully, managing LVM is not an issue in this case. As I pointed in the original post, I am used to it, even in other OSes.

Thing is, I’ve found no matter what LVM stuff I do, but is the install process which is responsible of doing it in the proper way, isn’t it?

Anyway, I’ll follow your links and post back. :+1:

Why not first attempt to recover the installation via live USB + manjaro-chroot and/or Timeshift if applicable?

That would have been a great move, winnie.

What a pity I didn’t know about manjaro-chroot before wiping my root partition file system and logical volume… :no_mouth:

You are welcome to use my personal architect iso

I agree with @linux-aarhus that this is easy to do through manjaro-architect, but I prefer to load any official image and just execute in the console:

sudo pacman -Sy manjaro-architect && \
setup