UEFI installation is not achieved yet, even after further reading on the web. I tried to perform (once again) a "fresh install".
The disk on which I'm trying to install Ubuntu 12.04 is not the original device which came with my Lenovo Thinkpad X220 laptop: I switched the original 2.5" HDD (with pre-installed Windows) with a brand new 160 GB Intel SSD.
The Laptop BIOS is a Phoenix SecureCore Tiano UEFI BIOS (version 1.26 - Date 2011-12-01). The BIOS settings used to boot & install Ubuntu using the Ubuntu 12.04 AMD64 alternate CD downloaded from here. CD integrity has been checked after burning.
Partition preparation with GParted live CD
I used GParted live CD (version 0.12-1-1). GParted live CD was enable to boot in UEFI only mode, so I modified the BIOS settings to enable legacy AND UEFI BIOS modes.
Using GParted, I created 3 partitions using the followinf scheme in GParted:
Note that the first 256 MB FAT32 partition is flagged as "boot" & the following partition with no filesystem (1MiB) is flagged as "bios_grub".
Next step was to reboot, modify the BIOS settings to UEFI only.
Than, I booted on a Ubuntu 12.04 Desktop live CD to run the fdisk & Gdisk utilities.
Boot on the Ubuntu 12.04 Desktop live CD in UEFI only mode
During the boot process, I noticed a quick message:
Error: "prefix" is not set
Than the live system started normally. I grabbed the following infos from fdisk:
Code:
ubuntu@ubuntu:~$ sudo fdisk -l
WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.
Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders, total 312581808 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sda1 1 312581807 156290903+ ee GPT
I grabbed the following infos from gdisk:
Code:
ubuntu@ubuntu:~$ sudo gdisk /dev/sda
GPT fdisk (gdisk) version 0.8.1
Partition table scan:
MBR: protective
BSD: not present
APM: not present
GPT: present
Found valid GPT with protective MBR; using GPT.
So far, so good. Time to print the current partition table:
Code:
ubuntu@ubuntu:~$ sudo gdisk /dev/sda
Command (? for help): p
Disk /dev/sda: 312581808 sectors, 149.1 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): 267AC1F8-E7A3-4AA3-83EA-9E560641FBBA
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 312581774
Partitions will be aligned on 2048-sector boundaries
Total free space is 3693 sectors (1.8 MiB)
Number Start (sector) End (sector) Size Code Name
1 2048 526335 256.0 MiB EF00
2 526336 528383 1024.0 KiB EF02
3 528384 312580095 148.8 GiB 0700
Now, still using Gdisk utility, I printed out one by one all the partition detailled informations:
Partition 1
Code:
...
Command (? for help): i
Partition number (1-3): 1
Partition GUID code: C12A7328-F81F-11D2-BA4B-00A0C93EC93B (EFI System)
Partition unique GUID: 3662285A-1A04-4C49-869B-F99C4E06467F
First sector: 2048 (at 1024.0 KiB)
Last sector: 526335 (at 257.0 MiB)
Partition size: 524288 sectors (256.0 MiB)
Attribute flags: 0000000000000000
Partition name: ''
Partition 2
Code:
...
Command (? for help): i
Partition number (1-3): 2
Partition GUID code: 21686148-6449-6E6F-744E-656564454649 (BIOS boot partition)
Partition unique GUID: 3DE01AB7-B1FF-4545-998E-2CF8FB9346D9
First sector: 526336 (at 257.0 MiB)
Last sector: 528383 (at 258.0 MiB)
Partition size: 2048 sectors (1024.0 KiB)
Attribute flags: 0000000000000000
Partition name: ''
Partition 3
Code:
...
Partition number (1-3): 3
Partition GUID code: EBD0A0A2-B9E5-4433-87C0-68B6B72699C7 (Microsoft basic data)
Partition unique GUID: D8F79148-97F9-4101-98E7-16A783EDE612
First sector: 528384 (at 258.0 MiB)
Last sector: 312580095 (at 149.0 GiB)
Partition size: 312051712 sectors (148.8 GiB)
Attribute flags: 0000000000000000
Partition name: ''
Everything seems to be ok, so I rebooted the laptop (with BIOS settings "UEFI only" mode) on the Ubuntu 12.04 AMD64 alternate CD.
Boot on Ubuntu 12.04 AMD64 alternate CD (UEFI only mode)
During the boot process, I noticed the following message again:
Error: "prefix" is not set
Than the Ubuntu CD installer showed up as usual. I followed the normal installation process, using manual partitionning options, set my encrypted container, my Logical volume Group. Than I created all my logical volumes, apply the modifications to the partition table. I set all the mount points for the logical volumes and their filesystems...
During the Bootloader step, I'm asked to setup a destination for the bootloader:
I tried /dev/sda1 (which is supposed to be my UEFI System Partition), than the same old error message showed up (I even tried /dev/sda without more success...).
unable to install grub in /dev/sda
Executing 'grub-install /dev/sda' failed
This is a fatal error.
This is really disapointing. What's wrong with this procedure? It's really surprising that a simple Ubuntu installation in UEFI mode is so painfull.
I have no clue for the moment. Before stepping down to a regular legacy BIOS only Ubuntu installation I REALLY appreciate suggestions here.
Thanks in advance.
Bookmarks