Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 29/08/2015, à 10:15

Bougron

[FYI] Installation refind en EFI

Installation refind en EFI

Problématique.
Les vieux bios EFI ont des difficultés à proposer simplement une liste des programmes de boot installés dans les partitions FAT32. Dans l'ensemble ils lancent windows.

Windows propose alors une liste des OS bootables. Mais  c'est réservé  à sa famille vivante (windows10, windows8,  windows7).  Il propose aussi, en présentation secondaire, ses ancêtres  (windows XP,  windows 95 ?  vista?).

Le grub de ubuntu propose dans l'ensemble une liste assez complète des programmes de boot. Mais par moments, il en oublie certains sans qu'on en sache clairement la raison.

Super Grub2 Disk propose une liste de tout ce qui semble bootable.  Son  installation n'est pas très clairement expliquée par son concepteur, Cependant, c'est certainement le meilleur  outil pour tout détecter.

Cela explique pourquoi je me penche sur  le bootloader appelé Refind qui me semble assez bien,


Recherche du comment faire l'installation,
     Dans votre navigateur favori,    chercher le mot  refind.
      Dans les premières   réponses vous aurez  le site du concepteur:  http://www.rodsbooks.com/refind/ 
        il vous explique gentiment ce qu'est ce produit et ce qu'il n'est pas,
               Dans le cadre " contents", il  indique comment installer  par  « Installing rEFInds » qui permet d'ouvrir la page intéressante: http://www.rodsbooks.com/refind/linux.html
           Dans le cadre "contents", il  indique comment installer à la première ligne sous la rubrique " installing rEFInd using an RPM or Debian package file".
         Il suffit alors de copier/coller ce qui concerne ubuntu.

sudo apt-add-repository ppa:rodsmith/refind
sudo apt-get update 
sudo apt-get install refind

Installation proprement dite.

bougron@ubuntu14-04-3:~$ sudo apt-add-repository ppa:rodsmith/refind 
 A graphical boot manager for EFI- and UEFI-based computers, such as all Intel-based Macs and recent (most 2011 and later) PCs. 
 Plus d’info : https://launchpad.net/~rodsmith/+archive/ubuntu/refind 
Appuyez sur [ENTRÉE] pour continuer ou Ctrl-C pour annuler l’ajout 

gpg: le porte-clefs « /tmp/tmpfmwndus7/secring.gpg » a été créé 
gpg: le porte-clefs « /tmp/tmpfmwndus7/pubring.gpg » a été créé 
gpg: demande de la clef 9122E0C2 sur le serveur hkp keyserver.ubuntu.com 
gpg: /tmp/tmpfmwndus7/trustdb.gpg : base de confiance créée 
gpg: clef 9122E0C2 : clef publique « Launchpad PPA for Roderick Smith » importée 
gpg: Quantité totale traitée : 1 
gpg:               importées : 1  (RSA: 1) 
OK 
bougron@ubuntu14-04-3:~$ 
bougron@ubuntu14-04-3:~$ sudo apt-get update 
Ign http://ppa.launchpad.net trusty InRelease 
Ign http://extras.ubuntu.com trusty InRelease                                  
Atteint http://extras.ubuntu.com trusty Release.gpg                            
Réception de : 1 http://ppa.launchpad.net trusty Release.gpg [836 B]           
Atteint http://extras.ubuntu.com trusty Release                                
Réception de : 2 http://ppa.launchpad.net trusty Release [15,1 kB]             
Ign http://security.ubuntu.com trusty-security InRelease                       
Ign http://fr.archive.ubuntu.com trusty InRelease                              
Atteint http://extras.ubuntu.com trusty/main Sources                           
Réception de : 3 http://ppa.launchpad.net trusty/main amd64 Packages [436 B]   
Atteint http://extras.ubuntu.com trusty/main amd64 Packages                    
Réception de : 4 http://security.ubuntu.com trusty-security Release.gpg [933 B] 
Ign http://fr.archive.ubuntu.com trusty-updates InRelease                      
Réception de : 5 http://ppa.launchpad.net trusty/main i386 Packages [437 B]    
Atteint http://extras.ubuntu.com trusty/main i386 Packages                     
Réception de : 6 http://ppa.launchpad.net trusty/main Translation-en [596 B]   
Réception de : 7 http://security.ubuntu.com trusty-security Release [63,5 kB]  
Ign http://fr.archive.ubuntu.com trusty-backports InRelease                    
Atteint http://fr.archive.ubuntu.com trusty Release.gpg                        
Réception de : 8 http://fr.archive.ubuntu.com trusty-updates Release.gpg [933 B] 
Réception de : 9 http://fr.archive.ubuntu.com trusty-backports Release.gpg [933 B] 
Réception de : 10 http://security.ubuntu.com trusty-security/main Sources [92,6 kB] 
Atteint http://fr.archive.ubuntu.com trusty Release                            
Ign http://extras.ubuntu.com trusty/main Translation-fr_FR                     
Ign http://extras.ubuntu.com trusty/main Translation-fr                        
Réception de : 11 http://fr.archive.ubuntu.com trusty-updates Release [63,5 kB] 
Ign http://extras.ubuntu.com trusty/main Translation-en                        
Réception de : 12 http://security.ubuntu.com trusty-security/restricted Sources [2 061 B] 
Réception de : 13 http://security.ubuntu.com trusty-security/universe Sources [29,9 kB] 
Réception de : 14 http://security.ubuntu.com trusty-security/multiverse Sources [2 330 B] 
Réception de : 15 http://fr.archive.ubuntu.com trusty-backports Release [63,5 kB] 
Réception de : 16 http://security.ubuntu.com trusty-security/main amd64 Packages [335 kB] 
Atteint http://fr.archive.ubuntu.com trusty/main Sources                       
Atteint http://fr.archive.ubuntu.com trusty/restricted Sources                 
Atteint http://fr.archive.ubuntu.com trusty/universe Sources                   
Réception de : 17 http://security.ubuntu.com trusty-security/restricted amd64 Packages [8 875 B] 
Atteint http://fr.archive.ubuntu.com trusty/multiverse Sources                 
Réception de : 18 http://security.ubuntu.com trusty-security/universe amd64 Packages [114 kB] 
Atteint http://fr.archive.ubuntu.com trusty/main amd64 Packages                
Atteint http://fr.archive.ubuntu.com trusty/restricted amd64 Packages          
Atteint http://fr.archive.ubuntu.com trusty/universe amd64 Packages 
Atteint http://fr.archive.ubuntu.com trusty/multiverse amd64 Packages          
Atteint http://fr.archive.ubuntu.com trusty/main i386 Packages                 
Atteint http://fr.archive.ubuntu.com trusty/restricted i386 Packages           
Réception de : 19 http://security.ubuntu.com trusty-security/multiverse amd64 Packages [3 686 B] 
Atteint http://fr.archive.ubuntu.com trusty/universe i386 Packages             
Réception de : 20 http://security.ubuntu.com trusty-security/main i386 Packages [320 kB] 
Atteint http://fr.archive.ubuntu.com trusty/multiverse i386 Packages           
Atteint http://fr.archive.ubuntu.com trusty/main Translation-fr                
Atteint http://fr.archive.ubuntu.com trusty/main Translation-en                
Atteint http://fr.archive.ubuntu.com trusty/multiverse Translation-fr          
Atteint http://fr.archive.ubuntu.com trusty/multiverse Translation-en 
Atteint http://fr.archive.ubuntu.com trusty/restricted Translation-fr          
Réception de : 21 http://security.ubuntu.com trusty-security/restricted i386 Packages [8 846 B] 
Atteint http://fr.archive.ubuntu.com trusty/restricted Translation-en          
Réception de : 22 http://security.ubuntu.com trusty-security/universe i386 Packages [114 kB] 
Atteint http://fr.archive.ubuntu.com trusty/universe Translation-fr            
Atteint http://fr.archive.ubuntu.com trusty/universe Translation-en            
Réception de : 23 http://fr.archive.ubuntu.com trusty-updates/main Sources [231 kB] 
Réception de : 24 http://fr.archive.ubuntu.com trusty-updates/restricted Sources [4 725 B] 
Réception de : 25 http://security.ubuntu.com trusty-security/multiverse i386 Packages [3 830 B] 
Réception de : 26 http://fr.archive.ubuntu.com trusty-updates/universe Sources [134 kB] 
Réception de : 27 http://security.ubuntu.com trusty-security/main Translation-en [182 kB] 
Réception de : 28 http://fr.archive.ubuntu.com trusty-updates/multiverse Sources [5 143 B] 
Réception de : 29 http://fr.archive.ubuntu.com trusty-updates/main amd64 Packages [609 kB] 
Atteint http://security.ubuntu.com trusty-security/multiverse Translation-en   
Atteint http://security.ubuntu.com trusty-security/restricted Translation-en   
Réception de : 30 http://security.ubuntu.com trusty-security/universe Translation-en [66,9 kB] 
Réception de : 31 http://fr.archive.ubuntu.com trusty-updates/restricted amd64 Packages [15,4 kB] 
Réception de : 32 http://fr.archive.ubuntu.com trusty-updates/universe amd64 Packages [309 kB] 
Réception de : 33 http://fr.archive.ubuntu.com trusty-updates/multiverse amd64 Packages [11,9 kB] 
Réception de : 34 http://fr.archive.ubuntu.com trusty-updates/main i386 Packages [589 kB] 
Réception de : 35 http://fr.archive.ubuntu.com trusty-updates/restricted i386 Packages [15,1 kB] 
Réception de : 36 http://fr.archive.ubuntu.com trusty-updates/universe i386 Packages [310 kB] 
Réception de : 37 http://fr.archive.ubuntu.com trusty-updates/multiverse i386 Packages [12,1 kB] 
Réception de : 38 http://fr.archive.ubuntu.com trusty-updates/main Translation-en [293 kB] 
Atteint http://fr.archive.ubuntu.com trusty-updates/multiverse Translation-en  
Atteint http://fr.archive.ubuntu.com trusty-updates/restricted Translation-en  
Réception de : 39 http://fr.archive.ubuntu.com trusty-updates/universe Translation-en [164 kB] 
Réception de : 40 http://fr.archive.ubuntu.com trusty-backports/main Sources [5 860 B] 
Réception de : 41 http://fr.archive.ubuntu.com trusty-backports/restricted Sources [28 B] 
Réception de : 42 http://fr.archive.ubuntu.com trusty-backports/universe Sources [28,4 kB] 
Réception de : 43 http://fr.archive.ubuntu.com trusty-backports/multiverse Sources [1 898 B] 
Réception de : 44 http://fr.archive.ubuntu.com trusty-backports/main amd64 Packages [6 288 B] 
Réception de : 45 http://fr.archive.ubuntu.com trusty-backports/restricted amd64 Packages [28 B] 
Réception de : 46 http://fr.archive.ubuntu.com trusty-backports/universe amd64 Packages [32,6 kB] 
Réception de : 47 http://fr.archive.ubuntu.com trusty-backports/multiverse amd64 Packages [1 571 B] 
Réception de : 48 http://fr.archive.ubuntu.com trusty-backports/main i386 Packages [6 293 B] 
Réception de : 49 http://fr.archive.ubuntu.com trusty-backports/restricted i386 Packages [28 B] 
Réception de : 50 http://fr.archive.ubuntu.com trusty-backports/universe i386 Packages [32,6 kB] 
Réception de : 51 http://fr.archive.ubuntu.com trusty-backports/multiverse i386 Packages [1 552 B] 
Atteint http://fr.archive.ubuntu.com trusty-backports/main Translation-en      
Atteint http://fr.archive.ubuntu.com trusty-backports/multiverse Translation-en 
Atteint http://fr.archive.ubuntu.com trusty-backports/restricted Translation-en 
Atteint http://fr.archive.ubuntu.com trusty-backports/universe Translation-en  
Ign http://fr.archive.ubuntu.com trusty/main Translation-fr_FR                 
Ign http://fr.archive.ubuntu.com trusty/multiverse Translation-fr_FR           
Ign http://fr.archive.ubuntu.com trusty/restricted Translation-fr_FR           
Ign http://fr.archive.ubuntu.com trusty/universe Translation-fr_FR             
4 315 ko réceptionnés en 15s (277 ko/s)                                        
Lecture des listes de paquets... Fait 
bougron@ubuntu14-04-3:~$
bougron@ubuntu14-04-3:~$ sudo apt-get install refind 
Lecture des listes de paquets... Fait 
Construction de l'arbre des dépendances       
Lecture des informations d'état... Fait 
Les NOUVEAUX paquets suivants seront installés : 
  refind 
0 mis à jour, 1 nouvellement installés, 0 à enlever et 40 non mis à jour. 
Il est nécessaire de prendre 2 157 ko dans les archives. 
Après cette opération, 3 628 ko d'espace disque supplémentaires seront utilisés. 
Réception de : 1 http://ppa.launchpad.net/rodsmith/refind/ubuntu/ trusty/main refind amd64 0.9.0-0ppa1 [2 157 kB] 
2 157 ko réceptionnés en 1s (1 300 ko/s) 
Sélection du paquet refind précédemment désélectionné. 
(Lecture de la base de données... 167919 fichiers et répertoires déjà installés.) 
Préparation du décompactage de .../refind_0.9.0-0ppa1_amd64.deb ... 
Décompactage de refind (0.9.0-0ppa1) ... 
Paramétrage de refind (0.9.0-0ppa1) ... 
ShimSource is none 
Installing rEFInd on Linux.... 
ESP was found at /boot/efi using vfat 
Found sbsign at /usr/bin/sbsign 
Generating a fresh set of local keys.... 
Generating a 2048 bit RSA private key 
............+++ 
...........................+++ 
writing new private key to '//etc/refind.d/keys/refind_local.key' 
----- 
warning: data remaining[208896 vs 231449]: gaps between PE/COFF sections? 
warning: data remaining[208896 vs 231456]: gaps between PE/COFF sections? 
warning: data remaining[74752 vs 86765]: gaps between PE/COFF sections? 
warning: data remaining[74752 vs 86768]: gaps between PE/COFF sections? 
warning: data remaining[56832 vs 67727]: gaps between PE/COFF sections? 
warning: data remaining[56832 vs 67728]: gaps between PE/COFF sections? 
warning: data remaining[57344 vs 68239]: gaps between PE/COFF sections? 
warning: data remaining[57344 vs 68240]: gaps between PE/COFF sections? 
warning: data remaining[59904 vs 71052]: gaps between PE/COFF sections? 
warning: data remaining[59904 vs 71056]: gaps between PE/COFF sections? 
warning: data remaining[56832 vs 67763]: gaps between PE/COFF sections? 
warning: data remaining[56832 vs 67768]: gaps between PE/COFF sections? 
warning: data remaining[65536 vs 76908]: gaps between PE/COFF sections? 
warning: data remaining[65536 vs 76912]: gaps between PE/COFF sections? 
warning: data remaining[59904 vs 71026]: gaps between PE/COFF sections? 
warning: data remaining[59904 vs 71032]: gaps between PE/COFF sections? 

You've specified re-signing your rEFInd binaries with locally-generated keys, 
but your computer does not appear to be running in Secure Boot mode. The 
keys you generate will be useless unless you enable Secure Boot. You may 
proceed with this installation, but before you do so, you may want to read 
more about it at http://www.rodsbooks.com/refind/secureboot.html. 

Do you want to proceed with installation (Y/N)? Y 
OK; continuing with the installation... 
Installing driver for ext4 (ext4_x64.efi) 
Copied rEFInd binary files 

Copying sample configuration file as refind.conf; edit this file to configure 
rEFInd. 

Deleting the temporary directory /tmp/refind_local 
Installing it! 
rEFInd has been set as the default boot manager. 
Creating //boot/refind_linux.conf; edit it to adjust kernel options. 
Setting default boot options based on //etc/default/grub 

Installation has completed successfully. 
 bougron@ubuntu14-04-3:~$ 

Vérification de l'installation.

bougron@ubuntu14-04-3:~$ sudo efibootmgr -v 
BootCurrent: 0000 
Timeout: 0 seconds 
BootOrder: 0007,0000,0001,0006,0009,0003,0002,2003,2001,2002 
Boot0000* ubuntu	HD(2,96800,32000,de40e452-2c7c-4617-9b15-15b7ddf168d0)File(\EFI\ubuntu\shimx64.efi) 
Boot0001* Ubuntu	HD(2,96800,32000,de40e452-2c7c-4617-9b15-15b7ddf168d0)File(\EFI\ubuntu\grubx64.efi)RC 
Boot0002* Windows Boot Manager	HD(1,96800,32000,de40e452-2c7c-4617-9b15-15b7ddf168d0)File(\EFI\Microsoft\Boot\bootmgfw.efi)RC 
Boot0003* EFI HDD Device (TOSHIBA MQ01ABD100)	ACPI(a0341d0,0)PCI(1f,2)03120a00000000000000HD(12,735d1800,1135000,75fb9d05-9b88-494b-82f8-abd0d5fbf8f8)RC 
....
Boot0006* Ubuntu	HD(a,14108800,3f40000,fcfadc16-94ac-43d9-8998-0de8fc2175bd)File(\EFI\ubuntu\grubx64.efi)RC 
Boot0007* rEFInd Boot Manager	HD(2,96800,32000,de40e452-2c7c-4617-9b15-15b7ddf168d0)File(\EFI\refind\refind_x64.efi) 
Boot0009* Windows Boot Manager	HD(2,96800,32000,de40e452-2c7c-4617-9b15-15b7ddf168d0)File(\EFI\ubuntu\shimx64.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.}.................... 
Boot2001* EFI USB Device	RC 
Boot2002* EFI DVD/CDROM	RC 
Boot2003* EFI Network	RC 
bougron@ubuntu14-04-3:~$ 
bougron@ubuntu14-04-3:/boot/efi/EFI/refind$ ls -Rl 
.: 
total 259 
drwxr-xr-x 2 root root   1024 août  29 00:15 drivers_x64 
drwxr-xr-x 2 root root   5120 août  29 00:15 icons 
drwxr-xr-x 2 root root   2048 août  29 00:15 keys 
-rwxr-xr-x 1 root root  22947 août  29 00:15 refind.conf 
-rwxr-xr-x 1 root root 233032 août  29 00:15 refind_x64.efi 

./drivers_x64: 
total 69 
-rwxr-xr-x 1 root root 69816 août  29 00:15 ext4_x64.efi 

./icons: 
total 610 
-rwxr-xr-x 1 root root  1554 août  29 00:15 arrow_left.png 
-rwxr-xr-x 1 root root  1623 août  29 00:15 arrow_right.png 
-rwxr-xr-x 1 root root  5895 août  29 00:15 boot_linux.png 
-rwxr-xr-x 1 root root  2702 août  29 00:15 boot_win.png 
-rwxr-xr-x 1 root root  2742 août  29 00:15 func_about.png 
-rwxr-xr-x 1 root root  3667 août  29 00:15 func_exit.png 
-rwxr-xr-x 1 root root  3521 août  29 00:15 func_firmware.png 
-rwxr-xr-x 1 root root  2893 août  29 00:15 func_reset.png 
-rwxr-xr-x 1 root root  3028 août  29 00:15 func_shutdown.png 
-rwxr-xr-x 1 root root  5105 août  29 00:15 os_altlinux.png 
-rwxr-xr-x 1 root root 12881 août  29 00:15 os_arch.png 
-rwxr-xr-x 1 root root 30323 août  29 00:15 os_centos.png 
-rwxr-xr-x 1 root root 11912 août  29 00:15 os_chrome.png 
-rwxr-xr-x 1 root root 25409 août  29 00:15 os_clover.png 
-rwxr-xr-x 1 root root 17399 août  29 00:15 os_debian.png 
-rwxr-xr-x 1 root root 18320 août  29 00:15 os_ecomstation.png 
-rwxr-xr-x 1 root root 11199 août  29 00:15 os_fatdog.png 
-rwxr-xr-x 1 root root 10255 août  29 00:15 os_fedora.png 
-rwxr-xr-x 1 root root 30474 août  29 00:15 os_freebsd.png 
-rwxr-xr-x 1 root root  7643 août  29 00:15 os_freedos.png 
-rwxr-xr-x 1 root root 16728 août  29 00:15 os_funtoo.png 
-rwxr-xr-x 1 root root 14816 août  29 00:15 os_gentoo.png 
-rwxr-xr-x 1 root root 16044 août  29 00:15 os_gummiboot.png 
-rwxr-xr-x 1 root root 16246 août  29 00:15 os_haiku.png 
-rwxr-xr-x 1 root root 11452 août  29 00:15 os_hwtest.png 
-rwxr-xr-x 1 root root 11909 août  29 00:15 os_kali.png 
-rwxr-xr-x 1 root root 10202 août  29 00:15 os_kubuntu.png 
-rwxr-xr-x 1 root root 12050 août  29 00:15 os_legacy.png 
-rwxr-xr-x 1 root root 11098 août  29 00:15 os_linuxmint.png 
-rwxr-xr-x 1 root root  8831 août  29 00:15 os_linux.png 
-rwxr-xr-x 1 root root  7861 août  29 00:15 os_lubuntu.png 
-rwxr-xr-x 1 root root 10367 août  29 00:15 os_mac.png 
-rwxr-xr-x 1 root root  4663 août  29 00:15 os_mageia.png 
-rwxr-xr-x 1 root root  5694 août  29 00:15 os_mandriva.png 
-rwxr-xr-x 1 root root   483 août  29 00:15 os_manjaro.png 
-rwxr-xr-x 1 root root  6728 août  29 00:15 os_mythbuntu.png 
-rwxr-xr-x 1 root root  8366 août  29 00:15 os_netbsd.png 
-rwxr-xr-x 1 root root 19647 août  29 00:15 os_network.png 
-rwxr-xr-x 1 root root 15477 août  29 00:15 os_openbsd.png 
-rwxr-xr-x 1 root root 16999 août  29 00:15 os_opensuse.png 
-rwxr-xr-x 1 root root 14667 août  29 00:15 os_redhat.png 
-rwxr-xr-x 1 root root  8896 août  29 00:15 os_refind.png 
-rwxr-xr-x 1 root root  8360 août  29 00:15 os_refit.png 
-rwxr-xr-x 1 root root 22985 août  29 00:15 os_slackware.png 
-rwxr-xr-x 1 root root 16999 août  29 00:15 os_suse.png 
-rwxr-xr-x 1 root root  8272 août  29 00:15 os_ubuntu.png 
-rwxr-xr-x 1 root root 13601 août  29 00:15 os_unknown.png 
-rwxr-xr-x 1 root root  7117 août  29 00:15 os_win8.png 
-rwxr-xr-x 1 root root 19797 août  29 00:15 os_win.png 
-rwxr-xr-x 1 root root  6344 août  29 00:15 os_xubuntu.png 
-rwxr-xr-x 1 root root  5183 août  29 00:15 tool_apple_rescue.png 
-rwxr-xr-x 1 root root  3349 août  29 00:15 tool_memtest.png 
-rwxr-xr-x 1 root root  3472 août  29 00:15 tool_mok_tool.png 
-rwxr-xr-x 1 root root  1930 août  29 00:15 tool_netboot.png 
-rwxr-xr-x 1 root root  5423 août  29 00:15 tool_part.png 
-rwxr-xr-x 1 root root  1664 août  29 00:15 tool_shell.png 
-rwxr-xr-x 1 root root  4549 août  29 00:15 tool_windows_rescue.png 
-rwxr-xr-x 1 root root   213 août  29 00:15 transparent.png 
-rwxr-xr-x 1 root root  1556 août  29 00:15 vol_external.png 
-rwxr-xr-x 1 root root  1450 août  29 00:15 vol_internal.png 
-rwxr-xr-x 1 root root  2280 août  29 00:15 vol_net.png 
-rwxr-xr-x 1 root root  2689 août  29 00:15 vol_optical.png 

./keys: 
total 18 
-rwxr-xr-x 1 root root  767 août  29 00:15 altlinux.cer 
-rwxr-xr-x 1 root root 1080 août  29 00:15 canonical-uefi-ca.der 
-rwxr-xr-x 1 root root  876 août  29 00:15 fedora-ca.cer 
-rwxr-xr-x 1 root root 1516 août  29 00:15 microsoft-kekca-public.der 
-rwxr-xr-x 1 root root 1499 août  29 00:15 microsoft-pca-public.der 
-rwxr-xr-x 1 root root 1556 août  29 00:15 microsoft-uefica-public.der 
-rwxr-xr-x 1 root root 1656 août  29 00:15 openSUSE-UEFI-CA-Certificate.cer 
-rwxr-xr-x 1 root root  831 août  29 00:15 refind.cer 
-rwxr-xr-x 1 root root  805 août  29 00:15 refind_local.cer 
-rwxr-xr-x 1 root root 1147 août  29 00:15 refind_local.crt 
-rwxr-xr-x 1 root root 1769 août  29 00:15 SLES-UEFI-CA-Certificate.cer 
bougron@ubuntu14-04-3:/boot/efi/EFI/refind$ 

Premiers constats.
Refind s'installe  sous la structure /boot/efi/EFI
     Si cette structure existe sur disque externe, cela fonctionne aussi (Le cas est testé mais pas reporté).
     Dans ce dernier contexte, si le bios ne sait pas nativement choisir refind, il faudra  renommer ou déplacer sa structure de démarrage  si cela avait déjà été fait pour booter en EFI sur le disque externe.
    L'installation sur une live USB n'est pas parfaite....

Refind m'a proposé une liste de 18 fichiers de boot. Heureusement que sous les icônes, il y a les noms de fichiers  retenus.

Refind   propose par défaut (temps d'attente 15 secondes) le dernier fichier de boot qui a été utilisé. C'est très appréciable pour ceux qui utilisent windows de fàçon non accidentelle.

Refind propose la liste des fichiers de boot des partitions EFI du disque interne mais pas du disque externe.
              C'est très  appréciable pour ceux qui bootent avec EASYUEFI pour installer des OS à partir d'une partition FAT32 du disque interne et non d'une clé USB.
            => Son utilisation est nettement plus simple. Il reste à regarder si son installation sous windows n'est pas une catastrophe.

Refind propose aussi quelques fichiers ubuntu qui ne sont pas dans les partitions FAT32 qui permettent de lancer ubuntu en mode 'recovery'?
         boot\vmlinuz.3.13.0-52.efi-generic pour EDUUBUNTU
         boot\vmlinuz.3.13.0-57.efi-generic pour 1404-3-13
         boot\vmlinuz.3.16.0-43.efi-generic.efi.signed pour 1404-3.16
         boot\vmlinuz.3.19.0-23.efi-generic.efi.signed pour 15.10
         boot\vmlinuz.3.19.0-25.efi-generic.efi.signed pour la 15.10 sur partition externe en format ext4 qui est sur disque dur externe.
         boot\vmlinuz.4.1.0-2.efi-generic.efi.signed pour la 15.10
         EFI\Boot\Boot.grub\grubx64.efi  de MYLINUXLIVE (un ancien fichier qui permet de booter une installation de façon classique).
         EFI\Boot\Boot.grub\bootx64.efi  de MYLINUXLIVE (un ancien fichier qui permet de booter une installation de façon classique). 
         EFI\Boot\Boot\bootx64.efi  de MYLINUXLIVE (le nouveau fichier qui permet de booter ce détecteur d'OS). 
          EFI\Boot\Boot\Refind_X64..efi  de MYLINUXLIVE (qui ne permet pas de booter sur clé USB).
      L'un d'eux permet donc de lancer nettement plus facilement le Ubuntu qui est installé sur le disque externe en EFI (il n'y a plus besoin de retourner dans le bios pour repositionner le démarrage sur disque externe pour les bios qui ne mémorisent pas cette action!
       
Quelques points encore à traiter.
   Ayant eu  il y a maintenant 16 mois une installation dual boot  assez difficile:
          Je me retrouve maintenant avec un fichier bootmgfw.efi qui est certainement la copie de shimx64.efi ou de grubx64.efi d'avril 2014
           Je me retrouve aussi avec une ligne de commande EFI qui croyant lancer windows, lance SHIMX64.EFI
            C'est la fameuse commande
               

 bcdedit /set {bootmgr} path \EFI\ubuntu\shimx64.efi

                 Donc en cliquant sur l'icône windows, c'est encore l'écran d'un dual boot qui apparaît.  Cela sera à remettre d'aplomb.
                             
   Désactivation de la commande os-prober!

Dernière modification par Bougron (Le 13/09/2015, à 18:44)

Hors ligne

#2 Le 29/08/2015, à 13:22

Bougron

Re : [FYI] Installation refind en EFI

Voici une façon de faire pour installer refind sur une clé USB bootable.
Cette procédure a été testée avec un micro ayant déjà une partition ESP de boot.
Elle est intéressante à connaître lorsqu'il est devenu impossible de booter sur l'un des OS présents dans les disques durs, voir tous les OS.
Elle me semble remplacer SUPER GRUB 2 DISK  bien que cela soit plus difficile à installer par la méthode que je vais décrire.
mais il peut y avoir un script existant que je n'ai pas encore découvert.

1) Booter avec la clé USB.
2) choisir "try ubuntu before installing".
3) Installer le logiciel refind.   Voir ci-dessus comment faire. Actuellement les trois commandes à faire en copier/coller  sont

         sudo apt-add-repository ppa:rodsmith/refind
         sudo apt-get update 
         sudo apt-get install refind

4) Prendre en compte que l'installation ne marche pas très bien.

ALERT: There were problems running the efibootmgr program! You may need to
rename the refind_x64.efi binary to the default name (EFI/boot/bootx64.efi
on x86-64 systems or EFI/boot/bootia32.efi on x86 systems) to have it run!

Creating //boot/refind_linux.conf; edit it to adjust kernel options.
Setting default boot options based on //etc/default/grub

ALERT:
Installation has completed, but problems were detected. Review the output for
error messages and take corrective measures as necessary. You may need to
re-run this script or install manually before rEFInd will work.

5) Faire la réparation nécessaire. Ma proposition actuelle est la suivante.
   a) Débrancher la clé USB de boot.
   b) Rebrancher la clé USB de boot.
   c) Sauvegarder l'ancien répertoire de boot de façon à pouvoir refaire des installations. J'ai fais de cette façon:

           cd  /media/ubuntu/MYLINUXLIVE/EFI   
           mv      boot     boot.grub
           mkdir   boot
           cd      boot

 
    d) Installer la structure de boot qui a été mal créée. La commande est la suivante:

            cp  -R /boot/efi/refind/.    .  (attention de ne pas oublier les points).

     e) Mettre les bons fichiers de boot pour une clé USB.

            cp     refind_x64.efi    bootx64.efi
            cp     refind_x64.efi    grubx64.efi

   



.

Dernière modification par Bougron (Le 29/08/2015, à 13:36)

Hors ligne

#3 Le 31/08/2015, à 10:35

Bougron

Re : [FYI] Installation refind en EFI

Remise à l'état "usine" du dual boot.

Il fallait bien que je trouve une solution pour remettre correct le lancement de windows proposé par refind,  Si au niveau refind, je choisis de lancer windows, ce n'est pas pour lancer le SHIMX64.efi.
Comment faire pour éliminer cette commande  bcdedit /set {bootmgr} path \EFI\ubuntu\shimx64.efi qui me permettait le dual boot ?
En théorie, c'est de faire la commande inverse  bcdedit /set {bootmgr} path \EFI\ubuntu\bootmgfw.efi
mais comme je ne sais plus ce que contient   ce fichier, j'ai préféré faire la commande.

[b]bcdedit /set {bootmgr} path \EFI\ubuntu\bootmgfworigine.efi[/b]

Pour info:   Ultérieurement, pendant un certain temp, boot-repair a pris en charge cette action avec le nom bkpbootmgfw.efi.

Constat: Maintenant, lorsque je lance windows via refind, c'est directement le choix des OS windows que je peux faire.
J'avais une inquiétude, c'est qu'ultérieurement, refind soit éliminé du choix du bios comme l'avaient été grubx64 et shimx64 et que je retrouve windows en première position.
J'ai fais pas mal de boot hier. Cela ne s'est pas passé.
Donc aujourd'hui, J''ai invalidé refind et remis ubuntu en priorité. Il est resté prioritaire après le lancement de windows que je lance systématiquement en restart car sion hibernatriion n'est pas déactivée.

explication
              Lorsqu'on utilise windows 10 au lieu de windows8/windows10preview.   Il n'y a aucun problème particulier pour faire un dual boot!!!!
              La fonctionnalité RESTART de windows 10 a évolué.

usb14-04-3@usb14043:~$ sudo efibootmgr -v
BootCurrent: 0002
Timeout: 0 seconds
BootOrder: 2001,0000,0001,0006,0003,000A,0008,2003,2002
Boot0000* ubuntu	HD(2,96800,32000,de40e452-2c7c-4617-9b15-15b7ddf168d0)File(\EFI\ubuntu\shimx64.efi)
Boot0001* Ubuntu	HD(2,96800,32000,de40e452-2c7c-4617-9b15-15b7ddf168d0)File(\EFI\ubuntu\grubx64.efi)RC
Boot0002* EFI USB Device (KingstonDT 100 G2)	ACPI(a0341d0,0)PCI(1a,0)USB(0,0)USB(1,0)HD(1,800,777800,00eab6f9)RC
Boot0003* EFI HDD Device (TOSHIBA MQ01ABD100)	ACPI(a0341d0,0)PCI(1f,2)03120a00000000000000HD(12,735d1800,1135000,75fb9d05-9b88-494b-82f8-abd0d5fbf8f8)RC
Boot0004* EFI Network 0 for IPv6 (08-9E-01-B7-1C-5D) 	ACPI(a0341d0,0)PCI(1c,3)PCI(0,0)MAC(089e01b71c5d,0)030d3c000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000RC
Boot0005* EFI Network 0 for IPv4 (08-9E-01-B7-1C-5D) 	ACPI(a0341d0,0)PCI(1c,3)PCI(0,0)MAC(089e01b71c5d,0)IPv4(0.0.0.0:0<->0.0.0.0:0,0, 0RC
Boot0006* Ubuntu	HD(a,14108800,3f40000,fcfadc16-94ac-43d9-8998-0de8fc2175bd)File(\EFI\ubuntu\grubx64.efi)RC
Boot0007  rEFInd Boot Manager	HD(2,96800,32000,de40e452-2c7c-4617-9b15-15b7ddf168d0)File(\EFI\refind\refind_x64.efi)
Boot0007* EFI USB Device 1 (WD      Elements 1023)	ACPI(a0341d0,0)PCI(1d,0)USB(0,0)USB(1,0)HD(1,800,ff800,939de71b-766d-4050-9ee4-b868d3e3e668)RC
Boot0008* Windows Boot Manager	HD(1,96800,32000,de40e452-2c7c-4617-9b15-15b7ddf168d0)File(\EFI\Microsoft\Boot\bootmgfw.efi)RC
Boot000A* Windows Boot Manager	HD(1,96800,32000,de40e452-2c7c-4617-9b15-15b7ddf168d0)File(\EFI\Microsoft\Boot\bootmgfworigine.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.}....................
Boot2001* EFI USB Device	RC
Boot2002* EFI DVD/CDROM	RC
Boot2003* EFI Network	RC
usb14-04-3@usb14043:~$ 

Il faut donc bien une conclusion. temporaire?/définitive?

Je ne peux  maintenant que conseiller d'installer  windows10 avant de faire la modification    bcdedit /set {bootmgr} path \EFI\ubuntu\xxxxxx.efi
Ou de tenter une mise à niveau  de windows (sans savoir si le résultat sera identique) Je ne peux jouer corectement ce scénario.

Je propose à tous ceux qui ont ce problème de vérifier  en réalisant pour confirmer  ou infirmer. Spécialement ceux ayant des micros Toshiba.

Dernière modification par Bougron (Le 31/08/2015, à 12:12)

Hors ligne