{"id":85,"date":"2014-08-15T15:56:13","date_gmt":"2014-08-15T14:56:13","guid":{"rendered":"http:\/\/www.geohei.lu\/geoheiWP\/?p=85"},"modified":"2015-08-14T13:38:23","modified_gmt":"2015-08-14T11:38:23","slug":"move-ubuntu-14-04-desktop-esp-partition","status":"publish","type":"post","link":"https:\/\/www.geohei.lu\/geoheiWP\/move-ubuntu-14-04-desktop-esp-partition\/","title":{"rendered":"Move Ubuntu 14.04 Desktop ESP partition"},"content":{"rendered":"<p>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.<br \/>\n<!--more--><br \/>\nFor the following article &#8230;<\/p>\n<ul>\n<li>Ubuntu 14.04 Desktop = U1404<\/li>\n<li>Windows 7 = W7<\/li>\n<\/ul>\n<p>All said below is probably also true for for different OSs, but I used W7\/U1404.<\/p>\n<p>So &#8230; the initial situation is &#8230;<\/p>\n<ul>\n<li>An UEFI motherboard<\/li>\n<li>HDD initialized using GPT<\/li>\n<\/ul>\n<p>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.<\/p>\n<p>That&#8217;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 &#8230; complicated &#8230; I explain &#8230;<\/p>\n<p>An example &#8230;<\/p>\n<ol>\n<li>W7 is backed up (system + common ESP partition)<\/li>\n<li>U1404 is backed up (system + common ESP partition)<\/li>\n<li>W7 update changes the bootloader in common ESP partition<\/li>\n<li>U1404 is restored<\/li>\n<\/ol>\n<p>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&#8217;t detect the outdated bootloader since for W7 update mechanisms, the update took already place.<\/p>\n<p>U1404 installation process doesn&#8217;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.<\/p>\n<p>ubuntu forums : <a href=\"http:\/\/http:\/\/ubuntuforums.org\/showthread.php?t=2237756\" title=\"Install 14.04 Desktop with second EFI partition\">Install 14.04 Desktop with second EFI partition<\/a><br \/>\n(in fact, I should have called it &#8220;Install 14.04 Desktop with second ESP partition&#8221;)<\/p>\n<p>Now &#8230; if a second EFI partition is used, 3 things need to be done:<\/p>\n<ol>\n<li>U1404 bootloader needs to be moved to second ESP partition<\/li>\n<li>\/etc\/fstab needs to be adjusted accordingly<\/li>\n<li>UEFI also needs to learn about location of the second ESP partition<\/li>\n<\/ol>\n<p><b><u>1. U1404 bootloader needs to be moved to the ESP partition<\/b><\/u><\/p>\n<p>&#8220;Ubuntu 14.04 ESP&#8221;, &#8220;Ubuntu 14.04&#8221; and &#8220;Linux swap&#8221; partitions are created (using gdisk) before U1404 is installed. This is how the HDD looks like:<\/p>\n<pre>root@ubuntu:~# gdisk \/dev\/sdb\nGPT fdisk (gdisk) version 0.8.8\n\nPartition table scan:\n  MBR: protective\n  BSD: not present\n  APM: not present\n  GPT: present\n\nFound valid GPT with protective MBR; using GPT.\n\nCommand (? for help): p\nDisk \/dev\/sdb: 500118192 sectors, 238.5 GiB\nLogical sector size: 512 bytes\nDisk identifier (GUID): 7B0E6510-D248-42E6-BB41-8F1545A740AA\nPartition table holds up to 128 entries\nFirst usable sector is 34, last usable sector is 500118158\nPartitions will be aligned on 2048-sector boundaries\nTotal free space is 38072941 sectors (18.2 GiB)\n\nNumber  Start (sector)    End (sector)  Size       Code  Name\n   1            2048          206847   100.0 MiB   EF00  Windows 7 (ESP)\n   2          206848          468991   128.0 MiB   0C01  Microsoft reserved part\n   3          468992       210184191   100.0 GiB   0700  Basic data partition\n   4       210184192       315041791   50.0 GiB    0700  Basic data partition\n   5       315041792       315246591   100.0 MiB   EF00  Ubuntu 14.04 (ESP)\n   6       315246592       420104191   50.0 GiB    8300  Ubuntu 14.04\n   7       420104192       462047231   20.0 GiB    8200  Linux swap\n\nCommand (? for help):<\/pre>\n<p>Partition 1 &#8211; ESP partition used by W7 and initially U1404 prior ESP move to partition 5<br \/>\nPartition 2 &#8211; MSR partition used by W7<br \/>\nPartition 3 &#8211; W7 system partition<br \/>\nPartition 4 &#8211; Data partition (not relevant in the context of this article)<br \/>\nPartition 5 &#8211; ESP partition which will later be on used by U1404<br \/>\nPartition 6 &#8211; U1404 system partition<br \/>\nPartition 7 &#8211; U1404 swap partition<\/p>\n<p>Now, U1404 is installed. Both ESP partitions look like this (the new ESP partition \/dev\/sdb5 first needs to be mounted):<\/p>\n<pre>root@deimos:~# df\nFilesystem     1K-blocks    Used Available Use% Mounted on\n\/dev\/sdb6       51475068 4295100  44542144   9% \/\nnone                   4       0         4   0% \/sys\/fs\/cgroup\nudev             8149892       4   8149888   1% \/dev\ntmpfs            1632144    1288   1630856   1% \/run\nnone                5120       0      5120   0% \/run\/lock\nnone             8160716     152   8160564   1% \/run\/shm\nnone              102400      72    102328   1% \/run\/user\n\/dev\/sdb1          98304   21619     76685  22% \/boot\/efi\nroot@deimos:~# mkdir \/mnt\/esp2\/\nroot@deimos:~# mount \/dev\/sdb5 \/mnt\/esp2\nroot@deimos:~# df\nFilesystem     1K-blocks    Used Available Use% Mounted on\n\/dev\/sdb6       51475068 4295100  44542144   9% \/\nnone                   4       0         4   0% \/sys\/fs\/cgroup\nudev             8149892       4   8149888   1% \/dev\ntmpfs            1632144    1288   1630856   1% \/run\nnone                5120       0      5120   0% \/run\/lock\nnone             8160716     152   8160564   1% \/run\/shm\nnone              102400      72    102328   1% \/run\/user\n\/dev\/sdb1          98304   21619     76685  22% \/boot\/efi\n\/dev\/sdb5         100808       1    100808   1% \/mnt\/esp2\nroot@deimos:~# ls -l \/boot\/efi\/\ntotal 1\ndrwxr-xr-x 5 root root 1024 Aug 14 07:12 EFI\nroot@deimos:~# ls -l \/boot\/efi\/EFI\/\ntotal 3\ndrwxr-xr-x 2 root root 1024 Jan 23  2013 Boot\ndrwxr-xr-x 3 root root 1024 Jan 23  2013 Microsoft\ndrwxr-xr-x 2 root root 1024 Aug 14 07:12 ubuntu\nroot@deimos:~# ls -l \/boot\/efi\/EFI\/ubuntu\/\ntotal 3411\n-rwxr-xr-x 1 root root     126 Aug 14 07:12 grub.cfg\n-rwxr-xr-x 1 root root  956792 Aug 14 07:12 grubx64.efi\n-rwxr-xr-x 1 root root 1178240 Aug 14 07:12 MokManager.efi\n-rwxr-xr-x 1 root root 1355736 Aug 14 07:12 shimx64.efi\nroot@deimos:~# ls -l \/mnt\/esp2\ntotal 0<\/pre>\n<p>Now &#8230; let&#8217;s move the \/EFI\/ubuntu (U1404 bootloader) directory from \/boot\/efi to \/mnt\/esp2.<\/p>\n<pre>root@deimos:~# mkdir \/mnt\/esp2\/EFI\nroot@deimos:~# mv \/boot\/efi\/EFI\/ubuntu\/ \/mnt\/esp2\/EFI\/\nroot@deimos:~# ls -l \/mnt\/esp2\ntotal 1\ndrwxr-xr-x 3 root root 512 Aug 14 14:21 EFI\nroot@deimos:~# ls -l \/mnt\/esp2\/EFI\/\ntotal 1\ndrwxr-xr-x 2 root root 512 Aug 14 07:12 ubuntu\nroot@deimos:~# ls -l \/mnt\/esp2\/EFI\/ubuntu\/\ntotal 3410\n-rwxr-xr-x 1 root root     126 Aug 14 07:12 grub.cfg\n-rwxr-xr-x 1 root root  956792 Aug 14 07:12 grubx64.efi\n-rwxr-xr-x 1 root root 1178240 Aug 14 07:12 MokManager.efi\n-rwxr-xr-x 1 root root 1355736 Aug 14 07:12 shimx64.efi<\/pre>\n<p><b><u>2. \/etc\/fstab needs to be adjusted accordingly<\/b><\/u><\/p>\n<p>The UUID of \/boot\/efi is changed from \/dev\/sdb1 to \/dev\/sdb5. blkid tells us about the UUID.<\/p>\n<pre>root@deimos:~# cat \/etc\/fstab\n## \/etc\/fstab: static file system information.\n#\n# Use 'blkid' to print the universally unique identifier for a\n# device; this may be used with UUID= as a more robust way to name devices\n# that works even if disks are added and removed. See fstab(5).\n#\n# <file system> <mount point>   <type>  <options>       <dump>  <pass>\n# \/ was on \/dev\/sdb6 during installation\nUUID=7a08217f-1052-400c-8e48-e46a47c1eeed \/               ext4    errors=remount-ro 0       1\n# \/boot\/efi was on \/dev\/sdb1 during installation\nUUID=B2AE-B362  \/boot\/efi       vfat    defaults        0       1\n# swap was on \/dev\/sdb7 during installation\nUUID=8dc2c188-b6b8-4872-91c2-3bd06689943b none            swap    sw              0       0\nroot@deimos:~# blkid \n\/dev\/sda2: LABEL=\"Video\" UUID=\"06F8527CF8526A47\" TYPE=\"ntfs\" \n\/dev\/sdb1: UUID=\"B2AE-B362\" TYPE=\"vfat\" \n\/dev\/sdb3: LABEL=\"Windows_7\" UUID=\"E2FAAC35FAAC083D\" TYPE=\"ntfs\" \n\/dev\/sdb4: LABEL=\"Data_SSD\" UUID=\"16D2F37BD2F35D85\" TYPE=\"ntfs\" \n\/dev\/sdb5: UUID=\"F421-41D0\" TYPE=\"vfat\" \n\/dev\/sdb6: UUID=\"7a08217f-1052-400c-8e48-e46a47c1eeed\" TYPE=\"ext4\" \n\/dev\/sdb7: UUID=\"8dc2c188-b6b8-4872-91c2-3bd06689943b\" TYPE=\"swap\" \n\/dev\/sdc: TYPE=\"ddf_raid_member\" \n\/dev\/sdd: TYPE=\"ddf_raid_member\" \n\/dev\/mapper\/ddf1_raid1p2: LABEL=\"Data\" UUID=\"00123075123071B0\" TYPE=\"ntfs\" \n\/dev\/mapper\/ddf1_raid1p3: LABEL=\"Storage\" UUID=\"9EE0420EE041ECD9\" TYPE=\"ntfs\" \n\/dev\/mapper\/ddf1_raid1p4: LABEL=\"Backup\" UUID=\"1262805262803D0B\" TYPE=\"ntfs\" \n\/dev\/mapper\/ddf1_raid1p5: LABEL=\"BRIDGE\" UUID=\"5286-4284\" TYPE=\"vfat\" \n\/dev\/mapper\/ddf1_raid1p6: LABEL=\"Drive_Image\" UUID=\"6AB0B30DB0B2DEAF\" TYPE=\"ntfs\" \nroot@deimos:~# nano \/etc\/fstab\nroot@deimos:~# cat \/etc\/fstab\n# \/etc\/fstab: static file system information.\n#\n# Use 'blkid' to print the universally unique identifier for a\n# device; this may be used with UUID= as a more robust way to name devices\n# that works even if disks are added and removed. See fstab(5).\n#\n# <file system> <mount point>   <type>  <options>       <dump>  <pass>\n# \/ was on \/dev\/sdb6 during installation\nUUID=7a08217f-1052-400c-8e48-e46a47c1eeed \/               ext4    errors=remount-ro 0       1\n# \/boot\/efi was on \/dev\/sdb1 during installation\nUUID=F421-41D0  \/boot\/efi       vfat    defaults        0       1\n# swap was on \/dev\/sdb7 during installation\nUUID=8dc2c188-b6b8-4872-91c2-3bd06689943b none            swap    sw              0       0<\/pre>\n<p><u><b>3. UEFI also needs to learn about the new location of the EFI partition<\/b><\/u><\/p>\n<p>This is how UEFI looks like before U1404 was installed. U1404 USB installation device was used to produce code block below.<\/p>\n<pre>ubuntu@ubuntu:~$ sudo efibootmgr\nBootCurrent: 0001\nTimeout: 5 seconds\nBootOrder: 0000,0001,0002,0003,0004,0005\nBoot0000* Windows Boot Manager\nBoot0001* UEFI: USB USB USB Hard Drive \nBoot0002* UEFI: Hard Drive \nBoot0003* UEFI: Samsung SSD 840 PRO Series\nBoot0004* Hard Drive \nBoot0005* CD\/DVD Drive \nubuntu@ubuntu:~$ sudo efibootmgr -v\nBootCurrent: 0001\nTimeout: 5 seconds\nBootOrder: 0000,0001,0002,0003,0004,0005\nBoot0000* Windows Boot Manager\tHD(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................\nBoot0001* UEFI: USB USB USB Hard Drive \tACPI(a0341d0,0)PCI(1a,0)USB(1,0)USB(5,0)USB(4,0)HD(1,1dd20c,1240,094a46d6)AMBO\nBoot0002* UEFI: Hard Drive \tACPI(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\nBoot0003* UEFI: Samsung SSD 840 PRO Series\tACPI(a0341d0,0)PCI(1f,2)03120a000000ffff0000HD(5,12c72800,32000,d9bf3eb2-d561-4026-8ca1-dce82aaced8d)AMBO\nBoot0004* Hard Drive \tBIOS(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\nBoot0005* CD\/DVD Drive \tBIOS(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<\/pre>\n<p>Boot0000 : Windows Boot Manager<br \/>\nBoot0001 : U1404 USB installation device [ removable drive ]\nBoot0002 : Points to empty second ESP partition (\/dev\/sdb5) [ generated by UEFI boot process ]\nBoot0003 : Points to empty second ESP partition (\/dev\/sdb5) [ generated by UEFI boot process ]\nBoot0004 : ? [ generated by UEFI boot process ]\nBoot0005 : CD\/DVD Drive [ generated by UEFI boot process ]\n<p>First, the efibootmgr help (no option for help ?!?!):<\/p>\n<pre>root@deimos:~# efibootmgr -h\nefibootmgr: invalid option -- 'h'\nefibootmgr version 0.5.4\nusage: efibootmgr [options]\n\t-a | --active         sets bootnum active\n\t-A | --inactive       sets bootnum inactive\n\t-b | --bootnum XXXX   modify BootXXXX (hex)\n\t-B | --delete-bootnum delete bootnum (hex)\n\t-c | --create         create new variable bootnum and add to bootorder\n\t-d | --disk disk       (defaults to \/dev\/sda) containing loader\n\t-e | --edd [1|3|-1]   force EDD 1.0 or 3.0 creation variables, or guess\n\t-E | --device num      EDD 1.0 device number (defaults to 0x80)\n\t-g | --gpt            force disk with invalid PMBR to be treated as GPT\n\t-H | --acpi_hid XXXX  set the ACPI HID (used with -i)\n\t-i | --iface name     create a netboot entry for the named interface\n\t-l | --loader name     (defaults to \\elilo.efi)\n\t-L | --label label     Boot manager display label (defaults to \"Linux\")\n\t-n | --bootnext XXXX   set BootNext to XXXX (hex)\n\t-N | --delete-bootnext delete BootNext\n\t-o | --bootorder XXXX,YYYY,ZZZZ,...     explicitly set BootOrder (hex)\n\t-O | --delete-bootorder delete BootOrder\n\t-p | --part part        (defaults to 1) containing loader\n\t-q | --quiet            be quiet\n\t   | --test filename    don't write to NVRAM, write to filename.\n\t-t | --timeout seconds  set boot manager timeout waiting for user input.\n\t-T | --delete-timeout   delete Timeout.\n\t-u | --unicode | --UCS-2  pass extra args as UCS-2 (default is ASCII)\n\t-U | --acpi_uid XXXX    set the ACPI UID (used with -i)\n\t-v | --verbose          print additional information\n\t-V | --version          return version and exit\n\t-w | --write-signature  write unique sig to MBR if needed\n\t-@ | --append-binary-args file  append extra args from file (use \"-\" for stdin)<\/pre>\n<p>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.<\/p>\n<pre>root@deimos:~# efibootmgr \nBootCurrent: 0001\nTimeout: 5 seconds\nBootOrder: 0001,0000,0002,0003,0004,0005\nBoot0000* Windows Boot Manager\nBoot0001* ubuntu\nBoot0002* UEFI: Hard Drive \nBoot0003* UEFI: Samsung SSD 840 PRO Series\nBoot0004* Hard Drive \nBoot0005* CD\/DVD Drive \nroot@deimos:~# efibootmgr -v\nBootCurrent: 0001\nTimeout: 5 seconds\nBootOrder: 0001,0000,0002,0003,0004,0005\nBoot0000* Windows Boot Manager\tHD(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................\nBoot0001* ubuntu\tHD(1,800,32000,4462fa04-dc5d-4536-8f23-8c34bc638faf)File(\\EFI\\ubuntu\\shimx64.efi)\nBoot0002* UEFI: Hard Drive \tACPI(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\nBoot0003* UEFI: Samsung SSD 840 PRO Series\tACPI(a0341d0,0)PCI(1f,2)03120a000000ffff0000HD(5,12c72800,32000,d9bf3eb2-d561-4026-8ca1-dce82aaced8d)AMBO\nBoot0004* Hard Drive \tBIOS(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\nBoot0005* CD\/DVD Drive \tBIOS(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<\/pre>\n<p>The only change is Boot0001. The U1404 USB installation device entry was replaced by the just installed U1404.<\/p>\n<p>Boot0000 : Windows Boot Manager<br \/>\nBoot0001 : U1404 HDD installation, still pointing to first ESP partition<br \/>\nBoot0002 : Points to empty second ESP partition (\/dev\/sdb5) [ generated by UEFI boot process ]\nBoot0003 : Points to empty second ESP partition (\/dev\/sdb5) [ generated by UEFI boot process ]\nBoot0004 : ? [ generated by UEFI boot process ]\nBoot0006 : CD\/DVD Drive [ generated by UEFI boot process ]\n<p>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 &#8220;ubuntu&#8221; doesn&#8217;t start U1404 anymore since it doesn&#8217;t find shimx64.efi &#8211; though it starts W7, which is somewhat unexpected! Nevertheless, Boot003 &#8220;UEFI: Samsung SSD 840 PRO Series&#8221; starts U1404.<\/p>\n<p>Hence &#8230; (a.) Boot0001 can be deleted and (b.) a new U1404 entry can be created if desired (since it doesn&#8217;t do much else than the existing Boot0003 entry).<\/p>\n<pre>root@deimos:~# efibootmgr\nBootCurrent: 0003\nTimeout: 5 seconds\nBootOrder: 0001,0000,0002,0003,0004,0005\nBoot0000* Windows Boot Manager\nBoot0001* ubuntu\nBoot0002* UEFI: Hard Drive \nBoot0003* UEFI: Samsung SSD 840 PRO Series\nBoot0004* Hard Drive \nBoot0005* CD\/DVD Drive \nroot@deimos:~# efibootmgr -b1 -B\nBootCurrent: 0003\nTimeout: 5 seconds\nBootOrder: 0000,0002,0003,0004,0005\nBoot0000* Windows Boot Manager\nBoot0002* UEFI: Hard Drive \nBoot0003* UEFI: Samsung SSD 840 PRO Series\nBoot0004* Hard Drive \nBoot0005* CD\/DVD Drive \nroot@deimos:~# efibootmgr -c -d \/dev\/sdb -p 5 -L \"Ubuntu 14.04\" -l \"\\EFI\\ubuntu\\shimx64.efi\"\nBootCurrent: 0003\nTimeout: 5 seconds\nBootOrder: 0001,0000,0002,0003,0004,0005\nBoot0000* Windows Boot Manager\nBoot0002* UEFI: Hard Drive \nBoot0003* UEFI: Samsung SSD 840 PRO Series\nBoot0004* Hard Drive \nBoot0005* CD\/DVD Drive \nBoot0001* Ubuntu 14.04\nroot@deimos:~# efibootmgr -v\nBootCurrent: 0003\nTimeout: 5 seconds\nBootOrder: 0001,0000,0002,0003,0004,0005\nBoot0000* Windows Boot Manager\tHD(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................\nBoot0001* Ubuntu 14.04\tHD(5,12c72800,32000,d9bf3eb2-d561-4026-8ca1-dce82aaced8d)File(\\EFI\\ubuntu\\shimx64.efi)\nBoot0002* UEFI: Hard Drive \tACPI(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\nBoot0003* UEFI: Samsung SSD 840 PRO Series\tHD(5,12c72800,32000,d9bf3eb2-d561-4026-8ca1-dce82aaced8d)File(\\EFI\\ubuntu\\grubx64.efi)AMBO\nBoot0004* Hard Drive \tBIOS(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\nBoot0005* CD\/DVD Drive \tBIOS(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<\/pre>\n<p>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 &#8220;Boot0003* UEFI: Samsung SSD 840 PRO Series&#8221;. Not bad!<\/p>\n<pre>root@deimos:~# efibootmgr \nBootCurrent: 0001\nTimeout: 5 seconds\nBootOrder: 0001,0000,0002,0004,0005\nBoot0000* Windows Boot Manager\nBoot0001* Ubuntu 14.04\nBoot0002* UEFI: Hard Drive \nBoot0004* Hard Drive \nBoot0005* CD\/DVD Drive \nroot@deimos:~# efibootmgr -v\nBootCurrent: 0001\nTimeout: 5 seconds\nBootOrder: 0001,0000,0002,0004,0005\nBoot0000* Windows Boot Manager\tHD(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................\nBoot0001* Ubuntu 14.04\tHD(5,12c72800,32000,d9bf3eb2-d561-4026-8ca1-dce82aaced8d)File(\\EFI\\ubuntu\\shimx64.efi)\nBoot0002* UEFI: Hard Drive \tACPI(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\nBoot0004* Hard Drive \tBIOS(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\nBoot0005* CD\/DVD Drive \tBIOS(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<\/pre>\n<p>Some fine tuning. The boot order should be 0000, then 0001 and the timeout 3 seconds. The is achieved as followes:<\/p>\n<pre>root@deimos:~# efibootmgr -o 0,1 -t 3\nBootCurrent: 0001\nTimeout: 3 seconds\nBootOrder: 0000,0001\nBoot0000* Windows Boot Manager\nBoot0001* Ubuntu 14.04\nBoot0002* UEFI: Hard Drive \nBoot0004* Hard Drive \nBoot0005* CD\/DVD Drive<\/pre>\n<p>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.<\/p>\n<p>BTW &#8230; my last update from today (15.08.2014) still doesn&#8217;t contain a bootloader update. Let&#8217;s see if this continues like that &#8230;<\/p>\n<p>md5sum checksums of U1404 initially installed bootloaders (from original distribution):<\/p>\n<pre>root@deimos:~# md5sum \/boot\/efi\/EFI\/ubuntu\/*\ne325709285f9535445b9dba5eb4ebb77  \/boot\/efi\/EFI\/ubuntu\/grub.cfg\n2f2f42eb2229f935ed0aed0fdfc7acb0  \/boot\/efi\/EFI\/ubuntu\/grubx64.efi\n01256bc72578b55a13a802849c425fd1  \/boot\/efi\/EFI\/ubuntu\/MokManager.efi\n7095619324a9fb786422d7427c056405  \/boot\/efi\/EFI\/ubuntu\/shimx64.efi<\/pre>\n<p>md5sum checksums of U1404 from today (after U1404 updates):<\/p>\n<pre>root@deimos:~# md5sum \/boot\/efi\/EFI\/ubuntu\/*\ne325709285f9535445b9dba5eb4ebb77  \/boot\/efi\/EFI\/ubuntu\/grub.cfg\n2f2f42eb2229f935ed0aed0fdfc7acb0  \/boot\/efi\/EFI\/ubuntu\/grubx64.efi\n01256bc72578b55a13a802849c425fd1  \/boot\/efi\/EFI\/ubuntu\/MokManager.efi\n7095619324a9fb786422d7427c056405  \/boot\/efi\/EFI\/ubuntu\/shimx64.efi<\/pre>\n<p><u><b>References:<\/b><\/u><\/p>\n<ul>\n<li><a href=\"http:\/\/wiki.archlinux.org\/index.php\/UEFI\" target=\"_blank\">Arch Linux : UEFI<\/a><\/li>\n<li><a href=\"http:\/\/wiki.archlinux.org\/index.php\/GPT\" target=\"_blank\">Arch Linux : GPT<\/a><\/li>\n<\/ul>\n<p>Please comment and\/or correct &#8230; Thanks!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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&#8230;. <\/p>\n<div class=\"read-more navbutton\"><a href=\"https:\/\/www.geohei.lu\/geoheiWP\/move-ubuntu-14-04-desktop-esp-partition\/\">Read More<i class=\"fa fa-angle-double-right\"><\/i><\/a><\/div>\n","protected":false},"author":1,"featured_media":119,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[3],"tags":[12,14,22,13,15],"class_list":["post-85","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ubuntu","tag-esp","tag-gpt","tag-ubuntu","tag-uefi","tag-windows-7"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.geohei.lu\/geoheiWP\/wp-content\/uploads\/2014\/10\/IMG_30181.jpg?fit=3264%2C2448&ssl=1","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p5mjlH-1n","_links":{"self":[{"href":"https:\/\/www.geohei.lu\/geoheiWP\/wp-json\/wp\/v2\/posts\/85","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.geohei.lu\/geoheiWP\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.geohei.lu\/geoheiWP\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.geohei.lu\/geoheiWP\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.geohei.lu\/geoheiWP\/wp-json\/wp\/v2\/comments?post=85"}],"version-history":[{"count":6,"href":"https:\/\/www.geohei.lu\/geoheiWP\/wp-json\/wp\/v2\/posts\/85\/revisions"}],"predecessor-version":[{"id":159,"href":"https:\/\/www.geohei.lu\/geoheiWP\/wp-json\/wp\/v2\/posts\/85\/revisions\/159"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.geohei.lu\/geoheiWP\/wp-json\/wp\/v2\/media\/119"}],"wp:attachment":[{"href":"https:\/\/www.geohei.lu\/geoheiWP\/wp-json\/wp\/v2\/media?parent=85"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.geohei.lu\/geoheiWP\/wp-json\/wp\/v2\/categories?post=85"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.geohei.lu\/geoheiWP\/wp-json\/wp\/v2\/tags?post=85"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}