Install Ubuntu to USB Encrypted UEFI & BIOS Bootable

Ubuntu Logo

Install Ubuntu to USB Encrypted UEFI & BIOS Bootable

Setup

  • On a UEFI System, boot from the Ubuntu ISO and choose “Try Ubuntu”
  • Click Install Ubuntu
  • Install as per normal
  • At the Installation Type choose “Advanced Features”
    • Use LVM
      • Encrypt the new Ubuntu installation for security
  • Once the Installation is complete choose “Continue Testing”
  • Open a terminal and run the following (Assuming the install was to /dev/sda
sudo mkdir -p /mnt/efi
sudo mkdir -p /mnt/boot
sudo mount /dev/sda1 /mnt/efi
sudo mount /dev/sda2 /mnt/boot

sudo cp -R /cdrom/boot /mnt/efi/

sudo cp /mnt/boot/grub/grub.cfg /mnt/efi/boot/grub/

sudo apt install grub-efi-amd64-bin

sudo grub-install --efi-directory=/mnt/efi --boot-directory=/mnt/efi/boot --target x86_64-efi --removable /dev/sda

sudo grub-install --boot-directory=/mnt/boot --target=i386-pc --removable --force /dev/sda
  • Shutdown the system
  • Ready to boot in either UEFI or BIOS systems
  • https://askubuntu.com/questions/1086309/how-to-make-bios-uefi-flash-drive-with-full-disk-encryption