The following article describes how Ubuntu 14.04 is installed on the same HDD having Windows 7 already installed, Ubuntu 14.04 using use a separate ESP partition.

For the following article …

  • Ubuntu 14.04 Desktop = U1404
  • Windows 7 = W7

All said below is probably also true for for different OSs, but I used W7/U1404.

So … the initial situation is …

  • An UEFI motherboard
  • HDD initialized using GPT

A HDD connected to an UEFI motherboard is usually only using one single ESP partition. All installed OSs use the same ESP partition to store their respective bootloaders. However, there are situations where an ESP partition per installed OS is an advantage.

That’s the case for me. I use image backups for W7 and U1404 partitions, both OS backups include their respective ESP partition. Assuming if there was only one common ESP partition and the OS image backups would include this common ESP partition, there is a potential risk for data inconsistency of the ESP partition after an image restore in case of an OS update from another installed OS the image restore was done. Ok … complicated … I explain …

An example …

  1. W7 is backed up (system + common ESP partition)
  2. U1404 is backed up (system + common ESP partition)
  3. W7 update changes the bootloader in common ESP partition
  4. U1404 is restored

In this scenario, U1404 image restoration also restores an outdated W7 bootloader located on the common EFI partition, hence creating possible W7 boot problems or other issues which might be related to this outdated bootloader. Also, future W7 updates won’t detect the outdated bootloader since for W7 update mechanisms, the update took already place.

U1404 installation process doesn’t allow selecting an existing ESP partition the bootloader is supposed to be copied to. It simply uses the first EFI partition found in the GPT. An UEFI entry is also done accordingly, id est the U1404 UEFI entry points to this ESP partition. A existing second ESP partition is ignored by the U1404 installation process.

ubuntu forums : Install 14.04 Desktop with second EFI partition
(in fact, I should have called it “Install 14.04 Desktop with second ESP partition”)

Now … if a second EFI partition is used, 3 things need to be done:

  1. U1404 bootloader needs to be moved to second ESP partition
  2. /etc/fstab needs to be adjusted accordingly
  3. UEFI also needs to learn about location of the second ESP partition

1. U1404 bootloader needs to be moved to the ESP partition

“Ubuntu 14.04 ESP”, “Ubuntu 14.04” and “Linux swap” partitions are created (using gdisk) before U1404 is installed. This is how the HDD looks like:

root@ubuntu:~# gdisk /dev/sdb
GPT fdisk (gdisk) version 0.8.8

Partition table scan:
  MBR: protective
  BSD: not present
  APM: not present
  GPT: present

Found valid GPT with protective MBR; using GPT.

Command (? for help): p
Disk /dev/sdb: 500118192 sectors, 238.5 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): 7B0E6510-D248-42E6-BB41-8F1545A740AA
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 500118158
Partitions will be aligned on 2048-sector boundaries
Total free space is 38072941 sectors (18.2 GiB)

Number  Start (sector)    End (sector)  Size       Code  Name
   1            2048          206847   100.0 MiB   EF00  Windows 7 (ESP)
   2          206848          468991   128.0 MiB   0C01  Microsoft reserved part
   3          468992       210184191   100.0 GiB   0700  Basic data partition
   4       210184192       315041791   50.0 GiB    0700  Basic data partition
   5       315041792       315246591   100.0 MiB   EF00  Ubuntu 14.04 (ESP)
   6       315246592       420104191   50.0 GiB    8300  Ubuntu 14.04
   7       420104192       462047231   20.0 GiB    8200  Linux swap

Command (? for help):

Partition 1 – ESP partition used by W7 and initially U1404 prior ESP move to partition 5
Partition 2 – MSR partition used by W7
Partition 3 – W7 system partition
Partition 4 – Data partition (not relevant in the context of this article)
Partition 5 – ESP partition which will later be on used by U1404
Partition 6 – U1404 system partition
Partition 7 – U1404 swap partition

Now, U1404 is installed. Both ESP partitions look like this (the new ESP partition /dev/sdb5 first needs to be mounted):

root@deimos:~# df
Filesystem     1K-blocks    Used Available Use% Mounted on
/dev/sdb6       51475068 4295100  44542144   9% /
none                   4       0         4   0% /sys/fs/cgroup
udev             8149892       4   8149888   1% /dev
tmpfs            1632144    1288   1630856   1% /run
none                5120       0      5120   0% /run/lock
none             8160716     152   8160564   1% /run/shm
none              102400      72    102328   1% /run/user
/dev/sdb1          98304   21619     76685  22% /boot/efi
root@deimos:~# mkdir /mnt/esp2/
root@deimos:~# mount /dev/sdb5 /mnt/esp2
root@deimos:~# df
Filesystem     1K-blocks    Used Available Use% Mounted on
/dev/sdb6       51475068 4295100  44542144   9% /
none                   4       0         4   0% /sys/fs/cgroup
udev             8149892       4   8149888   1% /dev
tmpfs            1632144    1288   1630856   1% /run
none                5120       0      5120   0% /run/lock
none             8160716     152   8160564   1% /run/shm
none              102400      72    102328   1% /run/user
/dev/sdb1          98304   21619     76685  22% /boot/efi
/dev/sdb5         100808       1    100808   1% /mnt/esp2
root@deimos:~# ls -l /boot/efi/
total 1
drwxr-xr-x 5 root root 1024 Aug 14 07:12 EFI
root@deimos:~# ls -l /boot/efi/EFI/
total 3
drwxr-xr-x 2 root root 1024 Jan 23  2013 Boot
drwxr-xr-x 3 root root 1024 Jan 23  2013 Microsoft
drwxr-xr-x 2 root root 1024 Aug 14 07:12 ubuntu
root@deimos:~# ls -l /boot/efi/EFI/ubuntu/
total 3411
-rwxr-xr-x 1 root root     126 Aug 14 07:12 grub.cfg
-rwxr-xr-x 1 root root  956792 Aug 14 07:12 grubx64.efi
-rwxr-xr-x 1 root root 1178240 Aug 14 07:12 MokManager.efi
-rwxr-xr-x 1 root root 1355736 Aug 14 07:12 shimx64.efi
root@deimos:~# ls -l /mnt/esp2
total 0

Now … let’s move the /EFI/ubuntu (U1404 bootloader) directory from /boot/efi to /mnt/esp2.

root@deimos:~# mkdir /mnt/esp2/EFI
root@deimos:~# mv /boot/efi/EFI/ubuntu/ /mnt/esp2/EFI/
root@deimos:~# ls -l /mnt/esp2
total 1
drwxr-xr-x 3 root root 512 Aug 14 14:21 EFI
root@deimos:~# ls -l /mnt/esp2/EFI/
total 1
drwxr-xr-x 2 root root 512 Aug 14 07:12 ubuntu
root@deimos:~# ls -l /mnt/esp2/EFI/ubuntu/
total 3410
-rwxr-xr-x 1 root root     126 Aug 14 07:12 grub.cfg
-rwxr-xr-x 1 root root  956792 Aug 14 07:12 grubx64.efi
-rwxr-xr-x 1 root root 1178240 Aug 14 07:12 MokManager.efi
-rwxr-xr-x 1 root root 1355736 Aug 14 07:12 shimx64.efi

2. /etc/fstab needs to be adjusted accordingly

The UUID of /boot/efi is changed from /dev/sdb1 to /dev/sdb5. blkid tells us about the UUID.

root@deimos:~# cat /etc/fstab
## /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
#                
# / was on /dev/sdb6 during installation
UUID=7a08217f-1052-400c-8e48-e46a47c1eeed /               ext4    errors=remount-ro 0       1
# /boot/efi was on /dev/sdb1 during installation
UUID=B2AE-B362  /boot/efi       vfat    defaults        0       1
# swap was on /dev/sdb7 during installation
UUID=8dc2c188-b6b8-4872-91c2-3bd06689943b none            swap    sw              0       0
root@deimos:~# blkid 
/dev/sda2: LABEL="Video" UUID="06F8527CF8526A47" TYPE="ntfs" 
/dev/sdb1: UUID="B2AE-B362" TYPE="vfat" 
/dev/sdb3: LABEL="Windows_7" UUID="E2FAAC35FAAC083D" TYPE="ntfs" 
/dev/sdb4: LABEL="Data_SSD" UUID="16D2F37BD2F35D85" TYPE="ntfs" 
/dev/sdb5: UUID="F421-41D0" TYPE="vfat" 
/dev/sdb6: UUID="7a08217f-1052-400c-8e48-e46a47c1eeed" TYPE="ext4" 
/dev/sdb7: UUID="8dc2c188-b6b8-4872-91c2-3bd06689943b" TYPE="swap" 
/dev/sdc: TYPE="ddf_raid_member" 
/dev/sdd: TYPE="ddf_raid_member" 
/dev/mapper/ddf1_raid1p2: LABEL="Data" UUID="00123075123071B0" TYPE="ntfs" 
/dev/mapper/ddf1_raid1p3: LABEL="Storage" UUID="9EE0420EE041ECD9" TYPE="ntfs" 
/dev/mapper/ddf1_raid1p4: LABEL="Backup" UUID="1262805262803D0B" TYPE="ntfs" 
/dev/mapper/ddf1_raid1p5: LABEL="BRIDGE" UUID="5286-4284" TYPE="vfat" 
/dev/mapper/ddf1_raid1p6: LABEL="Drive_Image" UUID="6AB0B30DB0B2DEAF" TYPE="ntfs" 
root@deimos:~# nano /etc/fstab
root@deimos:~# cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
#                
# / was on /dev/sdb6 during installation
UUID=7a08217f-1052-400c-8e48-e46a47c1eeed /               ext4    errors=remount-ro 0       1
# /boot/efi was on /dev/sdb1 during installation
UUID=F421-41D0  /boot/efi       vfat    defaults        0       1
# swap was on /dev/sdb7 during installation
UUID=8dc2c188-b6b8-4872-91c2-3bd06689943b none            swap    sw              0       0

3. UEFI also needs to learn about the new location of the EFI partition

This is how UEFI looks like before U1404 was installed. U1404 USB installation device was used to produce code block below.

ubuntu@ubuntu:~$ sudo efibootmgr
BootCurrent: 0001
Timeout: 5 seconds
BootOrder: 0000,0001,0002,0003,0004,0005
Boot0000* Windows Boot Manager
Boot0001* UEFI: USB USB USB Hard Drive 
Boot0002* UEFI: Hard Drive 
Boot0003* UEFI: Samsung SSD 840 PRO Series
Boot0004* Hard Drive 
Boot0005* CD/DVD Drive 
ubuntu@ubuntu:~$ sudo efibootmgr -v
BootCurrent: 0001
Timeout: 5 seconds
BootOrder: 0000,0001,0002,0003,0004,0005
Boot0000* Windows Boot Manager	HD(1,800,32000,4462fa04-dc5d-4536-8f23-8c34bc638faf)File(\EFI\Microsoft\Boot\bootmgfw.efi)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}...a................
Boot0001* UEFI: USB USB USB Hard Drive 	ACPI(a0341d0,0)PCI(1a,0)USB(1,0)USB(5,0)USB(4,0)HD(1,1dd20c,1240,094a46d6)AMBO
Boot0002* UEFI: Hard Drive 	ACPI(a0341d0,0)PCI(1c,1)PCI(0,0)Vendor(cf31fac5-c24e-11d2-85f3-00a0c93ec93b,81)HD(5,db1df800,1400000,8922b013-537e-488f-a91d-fadb254170ed)AMBO
Boot0003* UEFI: Samsung SSD 840 PRO Series	ACPI(a0341d0,0)PCI(1f,2)03120a000000ffff0000HD(5,12c72800,32000,d9bf3eb2-d561-4026-8ca1-dce82aaced8d)AMBO
Boot0004* Hard Drive 	BIOS(2,0,00)AMGOAMNO........s. .U.S.B. .D.I.S.K. .2...0. .P.M.A.P....................A...................................:..Gd-.;.A..MQ..L. .U.S.B. .D.I.S.K. .2...0. .P.M.A.P......AMBOAMNO..........(.B.u.s.=.0.2.,.I.D.=.0.0.,.L.U.N.=.0.). .R.A.I.D. .V.o.l.u.m.e....................A..............................1.N........>.;......V..Gd-.;.A..MQ..L.(.B.u.s.=.0.2.,.I.D.=.0.0.,.L.U.N.=.0.). .R.A.I.D. .V.o.l.u.m.e......AMBOAMNO........l.m.a.r.v.e.l.l._.r.1....................A........................1.N........>.;......*..Gd-.;.A..MQ..L.m.a.r.v.e.l.l._.r.1......AMBOAMNO........o.S.a.m.s.u.n.g. .S.S.D. .8.4.0. .P.R.O. .S.e.r.i.e.s....................A...........................>..Gd-.;.A..MQ..L.1.S.R.2.E.N.C.A.2.B.8.1.3.1. .R. . . . ......AMBO
Boot0005* CD/DVD Drive 	BIOS(3,0,00)AMGOAMNO........o.A.T.A.P.I. . . .i.H.B.S.3.1.2. . . .2....................A...........................>..Gd-.;.A..MQ..L.5.2.2.1.8.0. .4.1.2.2.6.5.1.0.5.2.0.1.7......AMBO

Boot0000 : Windows Boot Manager
Boot0001 : U1404 USB installation device [ removable drive ] Boot0002 : Points to empty second ESP partition (/dev/sdb5) [ generated by UEFI boot process ] Boot0003 : Points to empty second ESP partition (/dev/sdb5) [ generated by UEFI boot process ] Boot0004 : ? [ generated by UEFI boot process ] Boot0005 : CD/DVD Drive [ generated by UEFI boot process ]

First, the efibootmgr help (no option for help ?!?!):

root@deimos:~# efibootmgr -h
efibootmgr: invalid option -- 'h'
efibootmgr version 0.5.4
usage: efibootmgr [options]
	-a | --active         sets bootnum active
	-A | --inactive       sets bootnum inactive
	-b | --bootnum XXXX   modify BootXXXX (hex)
	-B | --delete-bootnum delete bootnum (hex)
	-c | --create         create new variable bootnum and add to bootorder
	-d | --disk disk       (defaults to /dev/sda) containing loader
	-e | --edd [1|3|-1]   force EDD 1.0 or 3.0 creation variables, or guess
	-E | --device num      EDD 1.0 device number (defaults to 0x80)
	-g | --gpt            force disk with invalid PMBR to be treated as GPT
	-H | --acpi_hid XXXX  set the ACPI HID (used with -i)
	-i | --iface name     create a netboot entry for the named interface
	-l | --loader name     (defaults to \elilo.efi)
	-L | --label label     Boot manager display label (defaults to "Linux")
	-n | --bootnext XXXX   set BootNext to XXXX (hex)
	-N | --delete-bootnext delete BootNext
	-o | --bootorder XXXX,YYYY,ZZZZ,...     explicitly set BootOrder (hex)
	-O | --delete-bootorder delete BootOrder
	-p | --part part        (defaults to 1) containing loader
	-q | --quiet            be quiet
	   | --test filename    don't write to NVRAM, write to filename.
	-t | --timeout seconds  set boot manager timeout waiting for user input.
	-T | --delete-timeout   delete Timeout.
	-u | --unicode | --UCS-2  pass extra args as UCS-2 (default is ASCII)
	-U | --acpi_uid XXXX    set the ACPI UID (used with -i)
	-v | --verbose          print additional information
	-V | --version          return version and exit
	-w | --write-signature  write unique sig to MBR if needed
	-@ | --append-binary-args file  append extra args from file (use "-" for stdin)

This is how UEFI looks like after U1404 was installed. U1404 USB installation device was removed and HDD installed U1404 used to produce code block below.

root@deimos:~# efibootmgr 
BootCurrent: 0001
Timeout: 5 seconds
BootOrder: 0001,0000,0002,0003,0004,0005
Boot0000* Windows Boot Manager
Boot0001* ubuntu
Boot0002* UEFI: Hard Drive 
Boot0003* UEFI: Samsung SSD 840 PRO Series
Boot0004* Hard Drive 
Boot0005* CD/DVD Drive 
root@deimos:~# efibootmgr -v
BootCurrent: 0001
Timeout: 5 seconds
BootOrder: 0001,0000,0002,0003,0004,0005
Boot0000* Windows Boot Manager	HD(1,800,32000,4462fa04-dc5d-4536-8f23-8c34bc638faf)File(\EFI\Microsoft\Boot\bootmgfw.efi)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}...a................
Boot0001* ubuntu	HD(1,800,32000,4462fa04-dc5d-4536-8f23-8c34bc638faf)File(\EFI\ubuntu\shimx64.efi)
Boot0002* UEFI: Hard Drive 	ACPI(a0341d0,0)PCI(1c,1)PCI(0,0)Vendor(cf31fac5-c24e-11d2-85f3-00a0c93ec93b,81)HD(5,db1df800,1400000,8922b013-537e-488f-a91d-fadb254170ed)AMBO
Boot0003* UEFI: Samsung SSD 840 PRO Series	ACPI(a0341d0,0)PCI(1f,2)03120a000000ffff0000HD(5,12c72800,32000,d9bf3eb2-d561-4026-8ca1-dce82aaced8d)AMBO
Boot0004* Hard Drive 	BIOS(2,0,00)AMGOAMNO..........(.B.u.s.=.0.2.,.I.D.=.0.0.,.L.U.N.=.0.). .R.A.I.D. .V.o.l.u.m.e....................A..............................1.N........>.;......V..Gd-.;.A..MQ..L.(.B.u.s.=.0.2.,.I.D.=.0.0.,.L.U.N.=.0.). .R.A.I.D. .V.o.l.u.m.e......AMBOAMNO........l.m.a.r.v.e.l.l._.r.1....................A........................1.N........>.;......*..Gd-.;.A..MQ..L.m.a.r.v.e.l.l._.r.1......AMBOAMNO........o.S.a.m.s.u.n.g. .S.S.D. .8.4.0. .P.R.O. .S.e.r.i.e.s....................A...........................>..Gd-.;.A..MQ..L.1.S.R.2.E.N.C.A.2.B.8.1.3.1. .R. . . . ......AMBO
Boot0005* CD/DVD Drive 	BIOS(3,0,00)AMGOAMNO........o.A.T.A.P.I. . . .i.H.B.S.3.1.2. . . .2....................A...........................>..Gd-.;.A..MQ..L.5.2.2.1.8.0. .4.1.2.2.6.5.1.0.5.2.0.1.7......AMBO

The only change is Boot0001. The U1404 USB installation device entry was replaced by the just installed U1404.

Boot0000 : Windows Boot Manager
Boot0001 : U1404 HDD installation, still pointing to first ESP partition
Boot0002 : Points to empty second ESP partition (/dev/sdb5) [ generated by UEFI boot process ] Boot0003 : Points to empty second ESP partition (/dev/sdb5) [ generated by UEFI boot process ] Boot0004 : ? [ generated by UEFI boot process ] Boot0006 : CD/DVD Drive [ generated by UEFI boot process ]

Now, the bootloader is moved from /dev/sdb1 to /dev/sdb5 (point 1. above) and /etc/fstab adjusted accordingly (point 2. above). From now on, Boot0001 “ubuntu” doesn’t start U1404 anymore since it doesn’t find shimx64.efi – though it starts W7, which is somewhat unexpected! Nevertheless, Boot003 “UEFI: Samsung SSD 840 PRO Series” starts U1404.

Hence … (a.) Boot0001 can be deleted and (b.) a new U1404 entry can be created if desired (since it doesn’t do much else than the existing Boot0003 entry).

root@deimos:~# efibootmgr
BootCurrent: 0003
Timeout: 5 seconds
BootOrder: 0001,0000,0002,0003,0004,0005
Boot0000* Windows Boot Manager
Boot0001* ubuntu
Boot0002* UEFI: Hard Drive 
Boot0003* UEFI: Samsung SSD 840 PRO Series
Boot0004* Hard Drive 
Boot0005* CD/DVD Drive 
root@deimos:~# efibootmgr -b1 -B
BootCurrent: 0003
Timeout: 5 seconds
BootOrder: 0000,0002,0003,0004,0005
Boot0000* Windows Boot Manager
Boot0002* UEFI: Hard Drive 
Boot0003* UEFI: Samsung SSD 840 PRO Series
Boot0004* Hard Drive 
Boot0005* CD/DVD Drive 
root@deimos:~# efibootmgr -c -d /dev/sdb -p 5 -L "Ubuntu 14.04" -l "\EFI\ubuntu\shimx64.efi"
BootCurrent: 0003
Timeout: 5 seconds
BootOrder: 0001,0000,0002,0003,0004,0005
Boot0000* Windows Boot Manager
Boot0002* UEFI: Hard Drive 
Boot0003* UEFI: Samsung SSD 840 PRO Series
Boot0004* Hard Drive 
Boot0005* CD/DVD Drive 
Boot0001* Ubuntu 14.04
root@deimos:~# efibootmgr -v
BootCurrent: 0003
Timeout: 5 seconds
BootOrder: 0001,0000,0002,0003,0004,0005
Boot0000* Windows Boot Manager	HD(1,800,32000,4462fa04-dc5d-4536-8f23-8c34bc638faf)File(\EFI\Microsoft\Boot\bootmgfw.efi)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}...a................
Boot0001* Ubuntu 14.04	HD(5,12c72800,32000,d9bf3eb2-d561-4026-8ca1-dce82aaced8d)File(\EFI\ubuntu\shimx64.efi)
Boot0002* UEFI: Hard Drive 	ACPI(a0341d0,0)PCI(1c,1)PCI(0,0)Vendor(cf31fac5-c24e-11d2-85f3-00a0c93ec93b,81)HD(5,db1df800,1400000,8922b013-537e-488f-a91d-fadb254170ed)AMBO
Boot0003* UEFI: Samsung SSD 840 PRO Series	HD(5,12c72800,32000,d9bf3eb2-d561-4026-8ca1-dce82aaced8d)File(\EFI\ubuntu\grubx64.efi)AMBO
Boot0004* Hard Drive 	BIOS(2,0,00)AMGOAMNO..........(.B.u.s.=.0.2.,.I.D.=.0.0.,.L.U.N.=.0.). .R.A.I.D. .V.o.l.u.m.e....................A..............................1.N........>.;......V..Gd-.;.A..MQ..L.(.B.u.s.=.0.2.,.I.D.=.0.0.,.L.U.N.=.0.). .R.A.I.D. .V.o.l.u.m.e......AMBOAMNO........l.m.a.r.v.e.l.l._.r.1....................A........................1.N........>.;......*..Gd-.;.A..MQ..L.m.a.r.v.e.l.l._.r.1......AMBOAMNO........o.S.a.m.s.u.n.g. .S.S.D. .8.4.0. .P.R.O. .S.e.r.i.e.s....................A...........................>..Gd-.;.A..MQ..L.1.S.R.2.E.N.C.A.2.B.8.1.3.1. .R. . . . ......AMBO
Boot0005* CD/DVD Drive 	BIOS(3,0,00)AMGOAMNO........o.A.T.A.P.I. . . .i.H.B.S.3.1.2. . . .2....................A...........................>..Gd-.;.A..MQ..L.5.2.2.1.8.0. .4.1.2.2.6.5.1.0.5.2.0.1.7......AMBO

After next reboot, Boot0003 entry was gone. UEFI seems to detect at boot process that it is a double entry doing the same thing, and consequently deleting the self-made generic entry “Boot0003* UEFI: Samsung SSD 840 PRO Series”. Not bad!

root@deimos:~# efibootmgr 
BootCurrent: 0001
Timeout: 5 seconds
BootOrder: 0001,0000,0002,0004,0005
Boot0000* Windows Boot Manager
Boot0001* Ubuntu 14.04
Boot0002* UEFI: Hard Drive 
Boot0004* Hard Drive 
Boot0005* CD/DVD Drive 
root@deimos:~# efibootmgr -v
BootCurrent: 0001
Timeout: 5 seconds
BootOrder: 0001,0000,0002,0004,0005
Boot0000* Windows Boot Manager	HD(1,800,32000,4462fa04-dc5d-4536-8f23-8c34bc638faf)File(\EFI\Microsoft\Boot\bootmgfw.efi)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}...a................
Boot0001* Ubuntu 14.04	HD(5,12c72800,32000,d9bf3eb2-d561-4026-8ca1-dce82aaced8d)File(\EFI\ubuntu\shimx64.efi)
Boot0002* UEFI: Hard Drive 	ACPI(a0341d0,0)PCI(1c,1)PCI(0,0)Vendor(cf31fac5-c24e-11d2-85f3-00a0c93ec93b,81)HD(5,db1df800,1400000,8922b013-537e-488f-a91d-fadb254170ed)AMBO
Boot0004* Hard Drive 	BIOS(2,0,00)AMGOAMNO..........(.B.u.s.=.0.2.,.I.D.=.0.0.,.L.U.N.=.0.). .R.A.I.D. .V.o.l.u.m.e....................A..............................1.N........>.;......V..Gd-.;.A..MQ..L.(.B.u.s.=.0.2.,.I.D.=.0.0.,.L.U.N.=.0.). .R.A.I.D. .V.o.l.u.m.e......AMBOAMNO........l.m.a.r.v.e.l.l._.r.1....................A........................1.N........>.;......*..Gd-.;.A..MQ..L.m.a.r.v.e.l.l._.r.1......AMBOAMNO........o.S.a.m.s.u.n.g. .S.S.D. .8.4.0. .P.R.O. .S.e.r.i.e.s....................A...........................>..Gd-.;.A..MQ..L.1.S.R.2.E.N.C.A.2.B.8.1.3.1. .R. . . . ......AMBO
Boot0005* CD/DVD Drive 	BIOS(3,0,00)AMGOAMNO........o.A.T.A.P.I. . . .i.H.B.S.3.1.2. . . .2....................A...........................>..Gd-.;.A..MQ..L.5.2.2.1.8.0. .4.1.2.2.6.5.1.0.5.2.0.1.7......AMBO

Some fine tuning. The boot order should be 0000, then 0001 and the timeout 3 seconds. The is achieved as followes:

root@deimos:~# efibootmgr -o 0,1 -t 3
BootCurrent: 0001
Timeout: 3 seconds
BootOrder: 0000,0001
Boot0000* Windows Boot Manager
Boot0001* Ubuntu 14.04
Boot0002* UEFI: Hard Drive 
Boot0004* Hard Drive 
Boot0005* CD/DVD Drive

The W7 is my default OS, this is the optimal solution. If I would like to use U1404, I press F12 during boot process and the UEFI menu shows up and allows me to choose the boot device.

BTW … my last update from today (15.08.2014) still doesn’t contain a bootloader update. Let’s see if this continues like that …

md5sum checksums of U1404 initially installed bootloaders (from original distribution):

root@deimos:~# md5sum /boot/efi/EFI/ubuntu/*
e325709285f9535445b9dba5eb4ebb77  /boot/efi/EFI/ubuntu/grub.cfg
2f2f42eb2229f935ed0aed0fdfc7acb0  /boot/efi/EFI/ubuntu/grubx64.efi
01256bc72578b55a13a802849c425fd1  /boot/efi/EFI/ubuntu/MokManager.efi
7095619324a9fb786422d7427c056405  /boot/efi/EFI/ubuntu/shimx64.efi

md5sum checksums of U1404 from today (after U1404 updates):

root@deimos:~# md5sum /boot/efi/EFI/ubuntu/*
e325709285f9535445b9dba5eb4ebb77  /boot/efi/EFI/ubuntu/grub.cfg
2f2f42eb2229f935ed0aed0fdfc7acb0  /boot/efi/EFI/ubuntu/grubx64.efi
01256bc72578b55a13a802849c425fd1  /boot/efi/EFI/ubuntu/MokManager.efi
7095619324a9fb786422d7427c056405  /boot/efi/EFI/ubuntu/shimx64.efi

References:

Please comment and/or correct … Thanks!