0

The next week I'll have to install Ubuntu 19.10 on a workstation with UEFI firmware and configured with these disks:

  • 128GB SATA SSD
  • 2x 500GB SATA HDDs
  • 512GB NVMe SSD

I'd to configure LVM on LUKS so, for testing, I'm trying on a virtual machine... I create a virtual machine with VMware Workstation with UEFI firmware and four virtual disks like the real machine (but smaller in proportion); when I try to install Ubuntu the installation is succesfull but at after first reboot a initramfs/BusyBox shell is shown.

In the virtual machine /dev/sda is the virtual 128GB SATA SSD, /dev/sdb is the first 500GB SATA HDD, /dev/sdc the second 500GB SATA HDD and /dev/nvme0n1 the 512GB NVMe SSD.

Here what I did (/* for comments */):

I booted from the Ubuntu 19.10 install disk and before to start installation I opened terminal and:

sudo -i

PARTITIONS CREATION:

fdisk /dev/sda
-> g /* to create a new empty GPT partition table */
-> n /* to add a new 512M partition */
-> t /* to change partition type to 1 (EFI System) */
-> n /* to add a new 1G partition, Linux filesystem (20) for /boot */
-> n /* to add a new partition of the size of the remaining space */
-> t /* to change partition type to 31 (Linux LVM) */

fdisk /dev/sdb
-> g /* to create a new empty GPT partition table */
-> n /* to add a new partition sizes as whole disk (500GB) */
-> t /* to change partition type to 31 (Linux LVM) */

fdisk /dev/sdc
-> g /* to create a new empty GPT partition table */
-> n /* to add a new partition sizes as whole disk (500GB) */
-> t /* to change partition type to 31 (Linux LVM) */

fdisk /dev/nvme0n1
-> g /* to create a new empty GPT partition table */
-> n /* to add a new partition sizes as whole disk (512GB) */
-> t /* to change partition type to 31 (Linux LVM) */

LUKS CONFIGURATION (--type=luks1 because I read GRUB2 with Ubuntu 19.10 doesn't support luks2 yet):

cryptsetup luksFormat --type=luks1 /dev/sda3
cryptsetup luksOpen /dev/sda3 sda3crypt

cryptsetup luksFormat --type=luks1 /dev/sdb1
cryptsetup luksOpen /dev/sdb1 sdb1crypt

cryptsetup luksFormat --type=luks1 /dev/sdc1
cryptsetup luksOpen /dev/sdc1 sdc1crypt

cryptsetup luksFormat --type=luks1 /dev/nvme01n1p1
cryptsetup luksOpen /dev/nvme01n1p1 nvme01n1p1crypt

LVM CONFIGURATION:

/* Physical volumes */
pvcreate --dataalignment 1m /dev/mapper/sda3crypt
pvcreate /dev/mapper/sdb1crypt
pvcreate /dev/mapper/sdc1crypt
pvcreate --dataalignment 1m /dev/mapper/nvme01n1p1crypt

/* Volume groups (two groups: one for SSDs and one for HDDs) */
vgcreate ssd_vg /dev/mapper/sda3crypt
vgextend ssd_vg /dev/mapper/nvme0n1p1crypt

vgcreate hdd_vg /dev/mapper/sdb1crypt
vgextend hdd_vg /dev/mapper/sdc1crypt

/* Logical volumes */
lvcreate -C y -L 4G ssd_vg -n swap_lv
lvcreate -l +70%FREE ssd_vg -n home_lv
lvcreate -l +100%FREE ssd_vg -n root_lv
lvcreate -l +100%FREE hdd_vg -n media_lv

SOME PARTITIONS FORMATTING

mkfs.fat -F32 /dev/sda1 /* for EFI */
mkswap /dev/mapper/ssd_vg-swap_lv

After I click on "Install Ubuntu 19.10" icon, during installation I formatted as ext4 logical volumes and specified mount points; I specified /boot as mount point for /dev/sda2 partition and chose /dev/sda for GRUB. What's the problem? Screenshot after reboot

SOLUTION! Ok, I found solution following this tutorial on YouTube from 10:28. Before restart system it's mandatory to follow the tutorial!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.