I had to replace a failed motherboard and was then motivated to install ‘anyflavor’ 24.04 LTS.
I read many posts from Debian tree users expressing their opinions about the Calamares installer and the partition options available when selecting LVM with encryption. A few of them described convoluted techniques to install the OS with LUKS with their preferred partition scheme for placing various system directories into separate lvs as has been promoted by some linux users for a decade or three.
The Calamares installation puts the entire OS in (1) LV in the encrypted drive.
Could a person lvreduce the ubuntu-lv from a Live session, then lvcreate a few new lvs in the encrypted group and then the tricky part... how would one move the contents of the selected system directories into the new lvs AND have the OS update the paths to the relocated files?
I don’t want to break the system.
I don’t want to manually edit the path entries of thousands of files.
Example: Say I installed some programs into /usr and adjusted some user preferences to suit. Those settings might be stored in /home. I create a new lv, usr-lv. How do I move the program files from /usr into usr-lv so that the programs still run and the settings in /home would be applied?
I’m sure it couldn’t be as easy as mounting usr-lv at mnt/usr?
Thanks.