Results 1 to 5 of 5

Thread: How to install Lubuntu 18.10 w/ LVM using Calamares installer?

  1. #1
    Join Date
    Oct 2018
    Beans
    7

    How to install Lubuntu 18.10 w/ LVM using Calamares installer?

    Hello,

    I am working with one disk and I am simply trying to encrypt my Linux partitions. I do have non-Linux partitions on this disk for which I cannot remove for provisional reasons (not dual-boot).

    I initially installed Lubuntu with distinct partitions for /, home, and swap. What I didn't realize at the time was that I would then only be able to encrypt my home and swap with ecryptfs (after the install).

    I wanted to apply FDE as far as I could with Linux and after some Googling, I was led to LUKS. I remembered seeing that option during the install and so I researched what was needed and went ahead with the install again.

    My process during manual partition creation via the installer was as such:

    1) Created boot partition w/ appropriate mount point and flag(s)
    2) Created LVM2 PV partition w/ encryption (including passphrase)
    3) Attempted to create volume group where previously "created" PV was recognized but once OK was clicked, nothing happened.

    That's as far as I could get and I'm not sure if it's simply because Calamares has a limitation or if I'm doing something wrong.

    As I understand it, in order to achieve the LUKS partition with LVM, I need to a create a PV—which itself has a volume group—which then stores the distinct LV.



    Forewarning:
    I have never worked with LVM and I used Ubuntu resources as well as other sources on github to verify what it is I wasn't getting.

    TL;DR:
    I am 90% sure that calamares simply won't do what I'm going for on its own and I might need to do stuff via terminal. I don't want to do that 'cause I'm lazy. Should it be the case that calamares can't do what I'm seeking to do, is anyone aware of a GUI tool that can?

    Additional Info:
    *PC is a Sony Vaio laptop
    *Machine is running in UEFI mode
    *Partition table is GUID
    *Lubuntu 18.10 is currently installed on target PC with distinct partitions and only home, swap are encrypted via ecryptfs.

    TIA

    EDIT: See post #5 for answer/result.
    Last edited by thatrandomguy+; October 24th, 2018 at 02:24 AM. Reason: edit

  2. #2
    Join Date
    Jun 2007
    Location
    Arizona U.S.A.
    Beans
    3,892

    Re: How to install Lubuntu 18.10 w/ LVM using Calamares installer?

    Just a couple of comments:

    Calamares can install to an LVM logical volume, but I always set up the LV before using the installer. You may have to bite the bullet and do it that way. Also I don't use encryption, so have no comment on that aspect. Sorry.

    My own recent experience on installing Lubuntu 18.10 with Calamares: it would only install on my BIOS computer (this was done using an LVM setup). On my UEFI machine, the install failed. I ended up installing as a VM on that machine.

    Calamares can do UEFI - I have done it with other OS that use this installer, but something seems amiss with the current Lubuntu Calamares installer and UEFI.

  3. #3
    Join Date
    Oct 2018
    Beans
    7

    Re: How to install Lubuntu 18.10 w/ LVM using Calamares installer?

    @Dennis N
    Thanks for the feedback!

    Incidentally, the PC in question is a Sony VAIO laptop. I don't know how Sony works their BIOS nor if I can even switch it to legacy (<> UEFI).

    I currently have Lubuntu installed with UEFI, it just isn't a LVM setup.

    I wasn't aware that LVM and UEFI had a conflict within Calamares—so thank you for bringing that to my attention.

    I will investigate some more and eventually provide my results here. Let's hope this thread doesn't close before then.
    Last edited by thatrandomguy+; October 23rd, 2018 at 06:29 PM. Reason: smiley

  4. #4
    Join Date
    Jun 2007
    Location
    Arizona U.S.A.
    Beans
    3,892

    Re: How to install Lubuntu 18.10 w/ LVM using Calamares installer?

    I currently have Lubuntu installed with UEFI, it just isn't a LVM setup.
    Well, that's interesting. I didn't try the UEFI install on a regular partition - just LVM. I may try UEFI without LVM since another disk in that UEFI computer has regular GPT partitions, and it could go there.

  5. #5
    Join Date
    Oct 2018
    Beans
    7

    Re: How to install Lubuntu 18.10 w/ LVM using Calamares installer?

    UPDATE:
    It turns out that one does in fact need to setup a preliminary PV and VG before running the Calamares installer. This can be done via terminal or a GUI tool, KPVM. KPVM might just only work on this instance 'cause LXQt borrows from KDE.

    Once the appropriate partition is created and the LVM is preliminarily setup, you can start the installer.

    My mistake was not noticing that you had to change the disk view within the installer to get into the volume group. Objectively, having to manually select that from the drop down menu isn't nearly as intuitive as the installer automatically changing the view into the volume once it's been created. In the end, it wouldn't matter if once did create a volume group or not because the installer will not actually write those changes to the disk—hence why I said preliminary LVM setup is needed. Once that's out of the way, you can simply start creating the desired partitions on the volume and that's it.

    Last edited by thatrandomguy+; October 24th, 2018 at 02:21 AM. Reason: typo

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •