Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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?

share|improve this question
add comment

3 Answers

First, it's not 100% clear that you booted the installer in EFI mode. If it booted in BIOS mode, it would try to install grub-pc (for BIOS-based systems), which wouldn't work if your firmware is set to boot the hard disk in EFI mode. I doubt if this is the problem, but I thought I'd toss it out as a possibility. You can check your boot mode by dropping to a shell and looking for the /sys/firmware/efi file; if it's present, you've booted in EFI mode. If not, you've probably booted in BIOS mode, although that's not 100% certain.

In any event, at this point your best bet is to do a manual installation of an EFI boot loader. IMHO, GRUB 2 (which is Ubuntu's default) is the worst possible choice; it's flaky and unreliable on EFI systems, in my experience. The easiest to get working is likely to be either ELILO or Fedora's patched GRUB Legacy. If you want to use a 3.3.0 or later kernel, it includes its own built-in EFI boot loader, which is quite reliable and can be very easy to use if paired with rEFInd. My Web page on EFI boot loaders describes all the options and includes installation instructions. Detailing them all here would be impractical.

share|improve this answer
    
The UEFI BIOS (Phoenix SecureCore Tiano) is set up to EFI mode only, so I assume that GParted & Ubuntu CD booted in EFI mode. Regarding "/sys/firmware/efi": sudo ls -a /sys/firmware/efi, I get: . .. systab vars. The built-in EFI boot loader of Kernel 3.3.0 don't come with The Ubuntu 12.04.1 alternate CD I used to perform the installation on the SSD (only 3.2.0-29.46 kernel). –  g0lem Oct 8 '12 at 19:56
add comment

i would say to consult the arch wiki here: https://wiki.archlinux.org/index.php/GRUB2 for getting your grub installed. then post back to let me know how you got to your OS.:) i'm trying to setup the same exact thing you are but my grub tries to boot to the lvm root instead of the luks container. if i tell grub to look for the luks container, it does, i enter the passphrase and then it doesn't know where to look for the lvm root!

share|improve this answer
    
i gave up with the 12.04.1 Ubuntu 64 bits version install & switch to 12.10 64 bits installer. I followed similar procedure: Create EFI partition in Gparted, name it EFI and set "boot" flag. This time I choosed to align partition to cylinders instead of Mio, so the FAT32 partition is really at the beginning of the disk, don't know if it matters. I'm stuck in 12.10 install after the creation of my Physical volume for encryption and don't know how add create my LVMs inside. Graphical installer seems confusing regarding LUKS + LVM +EFI... I also don't figure out where to set the bootloader. –  g0lem Jan 26 '13 at 21:19
    
i created a new topic regarding the particular 12.10 version issue at askubuntu.com/questions/248039/… –  g0lem Jan 26 '13 at 21:58
    
According to this answer: askubuntu.com/a/250717/95193, UEFI/EFI support would be pushed to a new release and be available on the Ubuntu 12.04.02 daily builds. Do this mean that there's currently NO SUPPORT for UEFI for the 12.04.1 Ubuntu release, could anybody confirm this assessment? –  g0lem Feb 4 '13 at 19:36
add comment

I have been trying to install a dual boot Win8 & 12.04.1 Ubuntu 64 bit on an Asus N56V laptop but did no managed to preform the task (trying different tricks and Linux releases). I have encountered the notorious grub-install fatal error.

I have managed to perform the task by the use of Linux Mint 14 – Nadia (64 bit), but there is a small problem with the Network configuration.

Ubuntu 12.04 is defined as a Long term support release (aimed at 2017) but there are a significant amount of Linus users who encountered problems while trying to install it in parallel to Win 8/7

Should Cannonical consider releasing an upgraded Ubuntu 12.04 which solves the EUFI related issues and newer hardware? This would allow users to benefit from a stable Linux distribution.

share|improve this answer
    
Welcome to Ask Ubuntu! If you will create a new Answer you should put information that will resolve the problem to the Question. When you get sufficient reputation, you'll be allowed to comment on all posts. If you have a new question, please ask it by clicking the Ask Question button. –  Lucio Feb 2 '13 at 20:35
    
Welcome to Ask Ubuntu! If you have another question, please ask it by clicking the Ask Question button. This is a pretty open ended question and not one that we can solve for you on Ask Ubuntu. Perhaps you might want to head over to brsinstorm.ubuntu.com and provide some suggestions for the future development of Ubuntu. –  Kevin Bowen Feb 2 '13 at 21:14
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.