Can't install EndeavourOS with two LUKS partition

No! Wrong order.
You would destroy the underlying filesystem by first shrinking the logical volume before shrinking the filesystem.

+-------------------------------------------------+
| filesystem: EXT4       | filesystem: EXT4       |  (4)
| /                      | /home                  | 
|_ _ _ _ _ _ _ _ _ _ _ _ |_ _ _ _ _ _ _ _ _ _ _ _ |
| logical volume: lvroot | logical volume: lvhome |  (3)
| /dev/vg0/lvroot        | /dev/vg0/lvhome        | 
|_ _ _ _ _ _ _ _ _ _ _ _ |_ _ _ _ _ _ _ _ _ _ _ _ |
|         (physical) volume group: vg0            |  (2)
|_________________________________________________|
|          LUKS partition: /dev/sda2              |  (1)
+-------------------------------------------------+

But if you would want to shrink or grow the /dev/sda2 partition for instance, you have to take care to do things in a specific order.

e. g. SHRINK the physical partition sda2 (1)

  1. shrink the filesystem of /home (4) to minimal size
  2. shrink the logical volume lvhome (3)
  3. grow the filesystem (4) to the new maximum size
  4. shrink the (LVM) Physical Volume (2)
  5. resize the LUKS container (1) to LVM size
  6. shrink the (crypt) physical partition /dev/sda2 (1)
  7. change partition table to reflect start and new end of (1)

So, if you’re shrinking stuff you have to manipulate from (4) to (1).

If you want to GROW stuff you’d have to reverse the order and work your way up from (1) to (4).

1 Like