I have a laptop with 16GB of RAM, but SSD is only 64GB. I need to install Ubuntu 15.04 with both standard options – "Encrypt the new Ubuntu installation for security" and "Use LVM with the new Ubuntu installation". I don't want to create a swap partition, or at the very least I need to decrease it to the minimum, because by default it's taking up 16GB that will never be used.
How can I make this work? If I choose "Something else" I can't see any clear options how to accomplish this.
Best Answer
The ubuntu installer (ubiquity) is quite limited in this regard. So we need to do it manually instead of the installer.
So when you run the Live CD/USB, choose "Try ubuntu", and launch gparted to partition your drive.
You need to make an ESP (sda1) (if you use EFI+GPT), a boot partition (256MB for example, sda2), another partition (for example, sda3) that will hold the crypted container called LUKS.
Then open a terminal (ctrl-alt-t)
Setup LUKS device
Setup LVM on LUKS
If you don't want to use multiple partition, you can skip the following paragraph and avoid LVM. In that case, use
/dev/mapper/crypted
as you root latter on insteadInstallation
Keep the terminal opened and now run the installation. Choose "Something else" when partitioning and specify
At the end of the installation, don't reboot but just click "Continue trying ubuntu"
Post-install
In our opened terminal:
Create
/etc/crypttab
to add crypted partitionThat's it ! Reboot now.