I had to boot my HP Envy into Win8 for the first time in ages this morning. When I did that, it installed some updates including a BIOS update. Once this was all done, once again the GRUB boot menu was gone and it booted straight into Win8. Using the advanced boot manager options in Win8 I managed to get the EFI boot menu up and chose Ferdora 21. It was only after Fedora failed to boot that I realised that this was wrong. Some time ago I had replaced F21 with Centos 7 and the three Centos 7 options were the ones that should be available - plus the Windows 8 boot manager. I have managed to boot into a Centos 7 Live KDE image. In this ran efibootmgr which shows the same thing. I can fix the boot sequence, but that will not get me back the Centos entries. Can anyone suggest how I can do that? Gary [root at localhost ~]# efibootmgr BootCurrent: 0000 Timeout: 0 seconds BootOrder: 2002,0002,3002,0001,2001,2003 Boot0000* Internal CD/DVD ROM Drive (UEFI) Boot0001* Fedora Boot0002* Windows Boot Manager Boot2001* USB Drive (UEFI) Boot2002* Internal CD/DVD ROM Drive (UEFI) Boot3000* Internal Hard Disk or Solid State Disk Boot3002* Internal Hard Disk or Solid State Disk [root at localhost ~]#
On 09/14/2016 07:40 AM, Gary Stainburn wrote:> I had to boot my HP Envy into Win8 for the first time in ages this morning. > When I did that, it installed some updates including a BIOS update. > > Once this was all done, once again the GRUB boot menu was gone and it booted > straight into Win8. Using the advanced boot manager options in Win8 I > managed to get the EFI boot menu up and chose Ferdora 21. > > It was only after Fedora failed to boot that I realised that this was wrong. > Some time ago I had replaced F21 with Centos 7 and the three Centos 7 options > were the ones that should be available - plus the Windows 8 boot manager. > > I have managed to boot into a Centos 7 Live KDE image. In this ran efibootmgr > which shows the same thing. I can fix the boot sequence, but that will not > get me back the Centos entries. > > Can anyone suggest how I can do that? >In some BIOS/firmwares you'll have the option to 'add' an entry, and you can just point a new one to EFI/centos/shim.efi, save and be done with it. Otherwise you can do something like: efibootmgr -c -d /dev/sda -p 1 -L "CentOS" -l '\EFI\centos\shim.efi' there are a couple efi files inside /boot/efi/EFI/centos, but shim is the one to point to for secureboot to work properly.> Gary > > [root at localhost ~]# efibootmgr > BootCurrent: 0000 > Timeout: 0 seconds > BootOrder: 2002,0002,3002,0001,2001,2003 > Boot0000* Internal CD/DVD ROM Drive (UEFI) > Boot0001* Fedora > Boot0002* Windows Boot Manager > Boot2001* USB Drive (UEFI) > Boot2002* Internal CD/DVD ROM Drive (UEFI) > Boot3000* Internal Hard Disk or Solid State Disk > Boot3002* Internal Hard Disk or Solid State Disk > [root at localhost ~]# > _______________________________________________ > CentOS mailing list > CentOS at centos.org > https://lists.centos.org/mailman/listinfo/centos >-- Jim Perrin The CentOS Project | http://www.centos.org twitter: @BitIntegrity | GPG Key: FA09AD77
Hi Jim, Thanks for this. I looked into what you said, and once happy I ran the command you gave. It appeared to work as it did not come up with any errors, and the output from efibootmgr showed 1) Centos had been added as an option and 2) it was the first in the boot sequence. However, when I rebooted the laptop went straight into Win8, and after rebooting back into KDE Live, the option is no longer there. This is the output after rebooting. [root at localhost liveuser]# efibootmgr BootCurrent: 0000 Timeout: 0 seconds BootOrder: 2002,0002,3002,0001,2001,2003 Boot0000* Internal CD/DVD ROM Drive (UEFI) Boot0001* Fedora Boot0002* Windows Boot Manager Boot2001* USB Drive (UEFI) Boot2002* Internal CD/DVD ROM Drive (UEFI) Boot3000* Internal Hard Disk or Solid State Disk Boot3002* Internal Hard Disk or Solid State Disk [root at localhost liveuser]# This is me having a second attempt at your instructions. As you can see, it looks positive. [root at localhost liveuser]# efibootmgr -c -d /dev/sda -p 1 -L "CentOS" -l '\EFI\centos\shim.efi' BootCurrent: 0000 Timeout: 0 seconds BootOrder: 0003,2002,0002,3002,0001,2001,2003 Boot0000* Internal CD/DVD ROM Drive (UEFI) Boot0001* Fedora Boot0002* Windows Boot Manager Boot2001* USB Drive (UEFI) Boot2002* Internal CD/DVD ROM Drive (UEFI) Boot3000* Internal Hard Disk or Solid State Disk Boot3002* Internal Hard Disk or Solid State Disk Boot0003* CentOS [root at localhost liveuser]# I have had a look at /boot and can see in there the centos directory, but not a Fedora one. Is this not the boot fs from the hss? [root at localhost liveuser]# ll /boot/efi/EFI/ total 8 drwxr-xr-x. 2 root root 4096 Sep 6 11:32 BOOT drwxr-xr-x. 3 root root 4096 Sep 6 11:32 centos [root at localhost liveuser]# ll /boot/efi/EFI/centos/ total 5772 -rw-r--r--. 1 root root 128 Dec 7 2015 BOOT.CSV drwxr-xr-x. 2 root root 4096 Sep 6 11:32 fonts -rwxr-xr-x. 1 root root 1009536 Jan 5 2016 gcdx64.efi -rwxr-xr-x. 1 root root 1009536 Jan 5 2016 grubx64.efi -rw-r--r--. 1 root root 1283952 Dec 7 2015 MokManager.efi -rw-r--r--. 1 root root 1291512 Dec 7 2015 shim-centos.efi -rw-r--r--. 1 root root 1296176 Dec 7 2015 shim.efi [root at localhost liveuser]# On Wednesday 14 September 2016 14:09:35 Jim Perrin wrote:> In some BIOS/firmwares you'll have the option to 'add' an entry, and you > can just point a new one to EFI/centos/shim.efi, save and be done with it. > > Otherwise you can do something like: > > efibootmgr -c -d /dev/sda -p 1 -L "CentOS" -l '\EFI\centos\shim.efi' > > > there are a couple efi files inside /boot/efi/EFI/centos, but shim is > the one to point to for secureboot to work properly. >