Ubuntu – installing ubuntu with full disk encryption including encrpyted boot on i-USB Pendrive ii-A regular HDD

bootencryptionhard driveinstallationusb

Hi how to install Ubuntu 12.04+ with full disk encryption including encrypted boot partition :
a- to a USB drive ie. 16GB or 32GB
b- to a HDD

Best Answer

It's extremely useful to have an "on-the-go" Ubuntu running on USB with full disk encryption. Imagine you can boot up on almost every computer with your USB, and work in your own personalized environment anywhere, without carrying a notebook. I managed to install Ubuntu 16.04 in a USB HDD this way:

  1. Download the latest Ubuntu installer.

  2. Make a bootable pendrive. I use LiLi on Windows and dd command on Linux. You can google it.

  3. Boot up from Ubuntu pendrive. The Ubuntu installer detects the internal HDD and offers to install Ubuntu and keep the other OS, or make a clean install, optionally with encryption. However, this window only shows the internal HDD. If you want to install to USB, you have to select the "Other" option. But it is really hard to setup an encrypted install manually.

  4. I did the following: take out my internal HDD from my notebook, and boot up Ubuntu installer again. If the USB drive is connected, but the internal HDD is taken out, the installer will display the USB drive as primary drive and offers to make a clear install with encryption. You can also choose to overwrite your disk before install if you want.

  5. Start the installation with your preferred options. Same as usual from now on.

I tested my USB Ubuntu on 5 different computer from old to "new" and it works like a charm. No problem with drivers, not a single error or question window when I boot up on a different PC.