Ubuntu – How to Make BIOS/UEFI Flash Drive with Full Disk Encryption

18.04encryptionlive-usbmkusbusb

Ubuntu 18.04 Full Disk Encryption now works on Full install flash drives.

The ability to separately encrypt home directory / home partition has been eliminated.

How to make an Encrypted BIOS/UEFI Flash Drive with different passwords for home and system using a script?

Best Answer

BIOS/UEFI Flash Drive with Full Disk Encryption (18.04)

I have been playing with Paddy Landau's Manual Full System Encryption: https://ubuntuforums.org/showthread.php?t=2399092

Out of the box the script works UEFI only.

With a mkusb base, almost anything BIOS/UEFI is possible.

At this point the flash drive will be UEFI only.

enter image description here

  • Now mount the ESP boot partition and copy ESP/EFI/ubuntu/grub/grub.cfg and overwrite ESP/boot/grub/grub.cfg.

Your Bootable flash drive will now have encrypted system, home and swap files and will boot either BIOS or UEFI.

Notes:

  • *Separate home, swap and NTFS partitions are optional.
  • Many people recommend against using swap with a bootable USB or SSD for fear of wear.
  • The swap partition, if used, can be encrypted using ecryptfs-utils.
  • The NTFS partition, if used, can be encrypted using VeraCrypt so that it can be used in both Linux and Windows.
  • If there are problems reusing the installer drive on a second encrypted install, confirm /mnt/root/ has been deleted and that the correct UUID for sdx3 has been used in fstab.
  • GParted on the encrypted drive may not work.
Related Question