I'd like to install Ubuntu 20.04 on the same drive where my Win8.1. For Ubuntu I want a full disk encryption with Luks/LVM. Additionally I want to install the Ubuntu boot loader (kernels/grub menu) on an external USB stick. The goal is to boot Windows normally without the USB stick present but when I plug in the USB drive it should boot Ubuntu 20.04 instead. Does anyone tell me how to archive this? This is what I tried but it failed to boot properly and I ended up in a Grub prompt (Minimal Bash-like line editing is supported...)
1. I started Ubuntu with the Live-CD
2. I created the disk encryption with cryptsetup
3. Then I ran the "Install Ubuntu 20.04" ubiquity installerPHP Code:
cryptsetup luksFormat /dev/sda6
cryptsetup luksOpen /dev/sda6 box
pvcreate /dev/mapper/box
vgcreate cryptbox /dev/mapper/box
lvcreate -n root -L 30g cryptbox
lvcreate -n home -l 100%FREE cryptbox
4. I choose "Normal installation" without Internet connection and "Install third-party software for graphics and Wi-Fi hardware..."
5. On screen "Installation Type" I choose "Something else" to get into the partioning dialog.
6. There I mapped /dev/mapper/cryptbox-root to / and /dev/cryptbox-home to /home
7. For "Device for boot loader installation:" I picked my external USB stick which is on /dev/sdc1
8. On "Installation Complete" I clicked "Continue Testing" to return to the terminal once again
9.
10. ThenPHP Code:
blkid /dev/sda6 (needed for crypttab later on)
mount /dev/mapper/cryptbox-root /mnt
mount /dev/mapper/cryptbox-home /mnt/home
mount /dev/sdc1 /mnt/boot
chroot /mnt
mount -t proc proc /proc
mount -t sysfs sys /sys
mount -t devpts devpts /dev/pts
nano /etc/crypttab
box UUID=<from blkid on sda6> none luks
(Here I didn't see any useful output)PHP Code:
update-initramfs -k all -c
11. Exit terminal and reboot
But I only into a Grub> prompt. Can anyone help where I went wrong? I want the start-up kernel(s) on my external USB drive only root and home directories on my normal hard drive. BTW, did I miss /boot somewhere? I thought the installer is taking care of it.
Any hints and help is greatly appreciated.
Bookmarks