How to install Ubuntu 12.04.1 in EFI mode with Encrypted LVM?

Posted by g0lem on Ask Ubuntu See other posts from Ask Ubuntu or by g0lem
Published on 2012-10-07T18:57:36Z Indexed on 2012/10/08 3:48 UTC
Read the original article Hit count: 237

Filed under:
|
|
|
|

I'm trying to properly install Ubuntu 12.04.1 LTS 64-bit PC (AMD64) with the alternate install CD ".iso" on a lenovo Thinkpad X220.

Default Hard Disk (with a pre-installed version of Windows 7) has been replaced with a brand new SSD.

The UEFI BIOS of the lenovo Thinkpad X220 is set to "UEFI Boot only" & "USB UEFI BIOS Support" is enabled (I'm using an external USB DVD reader to perform Ubuntu installation).

The BIOS is a Phoenix SecureCore Tiano, BIOS version is 8DET56WW (1.26). The attempts below are made with the UEFI BIOS settings described above. Here's what I've tried so far:

Boot on a live GParted CD

  • Create a GPT partition table
  • Create a FAT32 partition for UEFI System, set the partition to "EF00" type ("boot" flag)
  • Leave remaining space unformated

Boot on Ubuntu 12.04.1 LTS 64-bit PC (AMD64) with alternate CD:

  • Perform the install with network updates enabled
  • Use manual partitioning
  • FAT32 partition created with GParted is used as "EFI System partition"
  • Remaining space is set to be used as "Physical volume for LVM"
  • Then "Configure encrypted volumes" using the previous "Physical volume for LVM" as the encrypted container, passphrase is setup.
  • "Configure the Logical Volume Manager" creating a volume Group using the encrypted container /dev/mapper/sda2_crypt
  • Creation of the Logical Volumes "Create logical volume", choosing the previously created volume Group
  • Assign a mount point and file system to the Logical volumes :

    LV-root for /

    LV-var for /var

    LV-usr for /usr

    LV-usr-local for /usr/local

    LV-swap for swap

    LV-home for /home

    NOTE: /tmp would be in RAM only using TMPFS

  • Bootloader step: neither my ESP partition (/dev/sda1, /dev/sda or MBR) seems to be the right place for GRUB, I get the following message (X suffix is for demonstration only):

unable to install grub in /dev/sdaX Executing 'grub-install /dev/sdaX' failed This is a fatal error.


Finish installation without the Bootloader & Reboot

The system doesn't start, there's no EFI/GRUB menu at startup.

What are the steps to perform a clean and working installation of Ubuntu 12.04.1 Precise Pangolin, 64bit version in U(EFI) mode using the encrypted LUKS + LVM scheme described above?

© Ask Ubuntu or respective owner

Related posts about 12.04

Related posts about installation