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. >
I don't know if this additional information helps. Looking at he efibootmgr output, is the centos entry pointing to the right place? Also, any idea why the update isn't being make permenant? [root at localhost boot]# parted GNU Parted 3.1 Using /dev/sda Welcome to GNU Parted! Type 'help' to view a list of commands. (parted) print Model: ATA ST1000LM014-1EJ1 (scsi) Disk /dev/sda: 1000GB Sector size (logical/physical): 512B/4096B Partition Table: gpt Disk Flags: Number Start End Size File system Name Flags 1 1049kB 683MB 682MB ntfs Basic data partition hidden, diag 2 683MB 892MB 210MB fat16 EFI System Partition boot 4 1089MB 212GB 211GB ntfs Basic data partition 3 212GB 213GB 524MB ext4 6 213GB 214GB 524MB xfs 7 214GB 978GB 765GB lvm 5 978GB 1000GB 21.8GB ntfs Basic data partition hidden (parted) quit [root at localhost boot]# efibootmgr -v BootCurrent: 0000 Timeout: 0 seconds BootOrder: 0003,2002,0002,3002,0001,2001,2003 Boot0000* Internal CD/DVD ROM Drive (UEFI) ACPI(a0341d0,0)PCI(1f,2)SATA(2,0,0)CD-ROM(1,2b,272c)RC Boot0001* Fedora HD(2,145800,64000,14c4ac1d-abd8-4121-84ee-c05a825920de)File(\EFI\fedora\shim.efi)RC Boot0002* Windows Boot Manager HD(2,145800,64000,14c4ac1d-abd8-4121-84ee-c05a825920de)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.}.................... Boot0003* CentOS HD(1,800,145000,277e20d2-ee46-412b-babb-9b2249324ca4)File(\EFI\centos\shim.efi) Boot2001* USB Drive (UEFI) RC Boot2002* Internal CD/DVD ROM Drive (UEFI) RC Boot3000* Internal Hard Disk or Solid State Disk RC Boot3002* Internal Hard Disk or Solid State Disk RC [root at localhost boot]#
All of the following is still under the Centos 7 KDE Live CD: If I mount /dev/sda2 on /media and have a look, this is the valid EFI filesystem, including the Fedora and Centos entries. If I try to mount /dev/sda6 on /media it looks to be a valid /boot filesystem. If I mount /dev/sda6 as /boot and mount /dev/sda2 as /boot/efi before running Jim's efibootmgr command will I fix the problem or will I stuff it beyond all recognition? [root at localhost /]# mount /dev/sda2 /media/ [root at localhost /]# cd /media/ [root at localhost media]# ll total 12 drwxr-xr-x. 7 root root 4096 Sep 14 12:20 EFI drwxr-xr-x. 2 root root 4096 Aug 15 10:24 System Volume Information drwxr-xr-x. 2 root root 4096 Jul 14 2015 Temp [root at localhost media]# cd EFI/ [root at localhost EFI]# ll total 20 drwxr-xr-x. 2 root root 4096 Dec 10 2015 BOOT drwxr-xr-x. 3 root root 4096 Sep 12 12:04 centos drwxr-xr-x. 4 root root 4096 Nov 23 2015 fedora drwxr-xr-x. 5 root root 4096 Sep 14 12:20 HP drwxr-xr-x. 3 root root 4096 Jul 3 2015 Microsoft [root at localhost EFI]# cd [root at localhost ~]# umount /media/ [root at localhost ~]# mount /dev/sda6 /media/ [root at localhost ~]# cd /media/ [root at localhost media]# ll total 243120 -rw-r--r--. 1 root root 126431 Aug 3 12:21 config-3.10.0-327.28.2.el7.x86_64 -rw-r--r--. 1 root root 126431 Aug 18 20:15 config-3.10.0-327.28.3.el7.x86_64 -rw-r--r--. 1 root root 126426 Nov 19 2015 config-3.10.0-327.el7.x86_64 drwxr-xr-x. 2 root root 6 Aug 15 07:34 efi drwxr-xr-x. 2 root root 26 Dec 10 2015 grub drwx------. 3 root root 33 Aug 15 11:27 grub2 -rw-rw-r--. 1 root root 57630181 Aug 15 07:46 initramfs-0-rescue-94f9d612ea4e4d2497d367334416d88b.img -rw-r--r--. 1 root root 30853341 Aug 15 16:48 initramfs-3.10.0-327.28.2.el7.x86_64.img -rw-r--r--. 1 root root 19329078 Aug 15 11:55 initramfs-3.10.0-327.28.2.el7.x86_64kdump.img -rw-r--r--. 1 root root 30855404 Sep 12 11:04 initramfs-3.10.0-327.28.3.el7.x86_64.img -rw-r--r--. 1 root root 19329625 Sep 12 11:06 initramfs-3.10.0-327.28.3.el7.x86_64kdump.img -rw-r--r--. 1 root root 30852186 Aug 15 16:48 initramfs-3.10.0-327.el7.x86_64.img -rw-r--r--. 1 root root 19217036 Aug 15 11:12 initramfs-3.10.0-327.el7.x86_64kdump.img -rw-r--r--. 1 root root 10193251 Dec 10 2015 initrd-plymouth.img -rw-r--r--. 1 root root 252632 Aug 3 12:23 symvers-3.10.0-327.28.2.el7.x86_64.gz -rw-r--r--. 1 root root 252632 Aug 18 20:17 symvers-3.10.0-327.28.3.el7.x86_64.gz -rw-r--r--. 1 root root 252612 Nov 19 2015 symvers-3.10.0-327.el7.x86_64.gz -rw-------. 1 root root 2964683 Aug 3 12:21 System.map-3.10.0-327.28.2.el7.x86_64 -rw-------. 1 root root 2964731 Aug 18 20:15 System.map-3.10.0-327.28.3.el7.x86_64 -rw-------. 1 root root 2963044 Nov 19 2015 System.map-3.10.0-327.el7.x86_64 -rwxr-xr-x. 1 root root 5156528 Aug 15 07:46 vmlinuz-0-rescue-94f9d612ea4e4d2497d367334416d88b -rwxr-xr-x. 1 root root 5159792 Aug 3 12:21 vmlinuz-3.10.0-327.28.2.el7.x86_64 -rwxr-xr-x. 1 root root 5159792 Aug 18 20:15 vmlinuz-3.10.0-327.28.3.el7.x86_64 -rwxr-xr-x. 1 root root 5156528 Nov 19 2015 vmlinuz-3.10.0-327.el7.x86_64 [root at localhost media]#
On Wed, Sep 14, 2016 at 9:06 AM, Gary Stainburn <gary at ringways.co.uk> wrote:> I don't know if this additional information helps. Looking at he efibootmgr > output, is the centos entry pointing to the right place? > > Also, any idea why the update isn't being make permenant?Probably because the specified file wasn't found by the firmware on partition 1, so it removed what it thinks is a bogus entry. Just a guess.> > Number Start End Size File system Name Flags > 1 1049kB 683MB 682MB ntfs Basic data partition hidden, > diag > 2 683MB 892MB 210MB fat16 EFI System Partition bootThe proper command in this case is efibootmgr -c -d /dev/sda -p 2 -L CentOS -l \\EFI\\centos\\shim.efi efibootmgr -v is more rewarding> Boot0001* Fedora > HD(2,145800,64000,14c4ac1d-abd8-4121-84ee-c05a825920de)File(\EFI\fedora\shim.efi)RCLooks fine. But notice the boot order: BootOrder: 0003,2002,0002,3002,0001,2001,2003 That puts Fedora in 5th place. You need to use efibootmgr -n 0001 to do a one time boot of Fedora at next boot; or you need to use efibootmgr -o and explicitly change the entire boot order, separated by commas. I have no idea what RC at the end of these lines means though. -- Chris Murphy