GRUB2 + UEFI issue, new entry each boot


 
Thread Tools Search this Thread
Operating Systems Linux Red Hat GRUB2 + UEFI issue, new entry each boot
# 1  
Old 03-29-2014
[ SOLVED ] GRUB2 + UEFI issue, new entry each boot

Hello
This is happening on: 3.13.7-200.fc20.x86_64

This happened already some weeks ago, until now i didn install linunx onto this machine, as i had to turn in the laptop to the service center so they could fix the UEFI flash storage.
Either way, its happening again. as i installed Fedora 20 LXDE.

I'm very new to this UEFI boot thing. (i knew this 'secureboot' thing will be some *!@#.)

Each reboot, i do get a new entry to be listed in efibootmgr.
After each start, i did ran:
Code:
sudo efibootmgr > efi-$$-$(date +'%s').log

And compared them after with:
Code:
[root@localhost sea]# diff efi-*log
3c3
< BootOrder: 0006,0005,0004,0003,0001,0002,0000,2003,2001,2002
---
> BootOrder: 0005,0004,0003,0001,0002,0000,2003,2001,2002
10d9
< Boot0006* Fedora
14,16d12
< Boot2001* EFI USB Device
< Boot2002* EFI DVD/CDROM
< Boot2003* EFI Network

How can i figure out which is the actual boot entry of my booted fedora, and how can i disable those i dont need.
Same goes for the "window boot manager", unless there should be 2?

Weird part is, the 006 entry seemed to be expted in the first output, as 005 and 007 were there...
Also, why does it lead to the DVD drive in boot current?

Just figured this might be more of help... so much info is multiple times available... can i safly remove all 'higher' numbred entries?
Code:
[root@localhost sea]# efibootmgr -v
BootCurrent: 0009
Timeout: 2 seconds
BootOrder: 0006,0005,0004,0003,0001,0002,0000,2003,2001,2002
Boot0000* Windows Boot Manager	HD(2,200800,82000,949dc043-b4e9-11e3-86cd-9ee73db0c5f4)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.}....................
Boot0001* Fedora	HD(2,200800,82000,949dc043-b4e9-11e3-86cd-9ee73db0c5f4)File(\EFI\fedora\shim.efi)
Boot0002* Windows Boot Manager	HD(2,200800,82000,949dc043-b4e9-11e3-86cd-9ee73db0c5f4)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* Fedora	ACPI(a0341d0,0)PCI(1f,2)03120a000400ffff0000HD(2,200800,82000,949dc043-b4e9-11e3-86cd-9ee73db0c5f4)File(\EFI\FEDORA\shim.efi)..
Boot0004* Fedora	ACPI(a0341d0,0)PCI(1f,2)03120a000400ffff0000HD(2,200800,82000,949dc043-b4e9-11e3-86cd-9ee73db0c5f4)File(\EFI\FEDORA\shim.efi)..
Boot0005* Fedora	ACPI(a0341d0,0)PCI(1f,2)03120a000400ffff0000HD(2,200800,82000,949dc043-b4e9-11e3-86cd-9ee73db0c5f4)File(\EFI\FEDORA\shim.efi)..
Boot0006* Fedora	ACPI(a0341d0,0)PCI(1f,2)03120a000400ffff0000HD(2,200800,82000,949dc043-b4e9-11e3-86cd-9ee73db0c5f4)File(\EFI\FEDORA\shim.efi)..
Boot0007* UEFI: Network Card 	ACPI(a0341d0,0)PCI(1c,3)PCI(0,0)MAC(54bef753f0f8,0)IPv4(0.0.0.0:0<->0.0.0.0:0,0, 0..BO
Boot0008* UEFI: Network Card 	ACPI(a0341d0,0)PCI(1c,3)PCI(0,0)MAC(54bef753f0f8,0)030d3c000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000..BO
Boot0009* UEFI: HGST HTS541010A9E680	ACPI(a0341d0,0)PCI(1f,2)03120a000400ffff0000HD(2,200800,82000,949dc043-b4e9-11e3-86cd-9ee73db0c5f4)..BO
Boot2001* EFI USB Device	RC
Boot2002* EFI DVD/CDROM	RC
Boot2003* EFI Network	RC
[root@localhost sea]#

Are those strings UUID strings?
Code:
[root@localhost sea]# grep efi /etc/fstab 
UUID=147A-BABB          /boot/efi               vfat    umask=0077,shortname=winnt 0 0

[root@localhost sea]# blkid|grep ext4
/dev/sda7: UUID="ff0b62b0-3fb2-4fe7-9558-111c6821b61c" TYPE="ext4" PARTUUID="f70c9f32-cd91-4505-8a60-190b269ac990" 
/dev/sda9: UUID="e05a399c-81af-403a-abec-32b0199265a4" TYPE="ext4" PARTUUID="f2838b7d-253d-4972-bb32-d80849bf0e3a" 

[root@localhost sea]# grep Fedora lst
Boot0001* Fedora	HD(2,200800,82000,949dc043-b4e9-11e3-86cd-9ee73db0c5f4)File(\EFI\fedora\shim.efi)
Boot0003* Fedora	ACPI(a0341d0,0)PCI(1f,2)03120a000400ffff0000HD(2,200800,82000,949dc043-b4e9-11e3-86cd-9ee73db0c5f4)File(\EFI\FEDORA\shim.efi)..
Boot0004* Fedora	ACPI(a0341d0,0)PCI(1f,2)03120a000400ffff0000HD(2,200800,82000,949dc043-b4e9-11e3-86cd-9ee73db0c5f4)File(\EFI\FEDORA\shim.efi)..
Boot0005* Fedora	ACPI(a0341d0,0)PCI(1f,2)03120a000400ffff0000HD(2,200800,82000,949dc043-b4e9-11e3-86cd-9ee73db0c5f4)File(\EFI\FEDORA\shim.efi)..
Boot0006* Fedora	ACPI(a0341d0,0)PCI(1f,2)03120a000400ffff0000HD(2,200800,82000,949dc043-b4e9-11e3-86cd-9ee73db0c5f4)File(\EFI\FEDORA\shim.efi)..

[root@localhost sea]# lsblk|grep /
├─sda2   8:2    0   260M  0 part /boot/efi
├─sda7   8:7    0    32G  0 part /
└─sda9   8:9    0   128G  0 part /home


By now, due to the last experience, i'm aware that i'm able to delete the boot entry by someting like (please help me to get this one proper)
Code:
for NUM in 0006 0007 0008 0009 2001 2002 2003
do
	efibootmgr |grep ^Boot$NUM && efibootmgr -B -b $NUM
done

But to let this run on every boot, is no 'real solution' but a workaround.

Thank you in advance
Regards Simon

EDIT:
Code:
sudo efibootmgr -o 0005,0000,0002

I assume the cause for this to be the BootCurrent: 0009
But how to change it?
efibootmgr -n changes only BootNext, which i assume is only temporary?
GRUB2 + UEFI issue, new entry each boot-imag2402jpg

Last edited by sea; 03-29-2014 at 08:13 PM..
# 2  
Old 03-29-2014
OK figured to solve:
Code:
efibootmgr -b 0001 -n 0001

Then rebooted and ran
Code:
efibootmgr -o 2001,2002,0001,0000

Both were ran as root.
BootOrder was set to (synonym): USB, DVD, Fedora, Windows
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Question about Grub2 and Multipathing

I have a bit of an odd situation I would like to float out here and see if anyone has any ideas on this.. We are working on doing Disaster Recovery on a number of RHEL 7.4 systems. These are running on Cisco Blade Servers. The mount point for /boot is on a Multipathed SAN LUN. There are a... (4 Replies)
Discussion started by: Overcast451
4 Replies

2. UNIX for Beginners Questions & Answers

Unable to edit grub2 boot screen in centos 7

I have centos 7 gui installed on vmware workstation12 on my laptop.WhenI want to pause my splash screen while starting my centos 7 using the 'esc key' nothing happens and the system just boots up.I also see a entry for aci_memory_fail... entry during the boot process.help me fix the system. (1 Reply)
Discussion started by: sabsac
1 Replies

3. Solaris

Dual boot Windows10 and Solaris 11.3??? UEFI

I can't get dual boot to work. I have first installed Windows10 on a new SSD, and then I installed Solaris 11.3 on the same disk. When I boot the disk, the GRUB shows Solaris, but no Windows. I can boot into Solaris fine. When I try to boot from a Windows10 partition, it does not work. Windows says... (7 Replies)
Discussion started by: kebabbert
7 Replies

4. UNIX for Dummies Questions & Answers

Mount UEFI partition

I want to gain read/write access to a Windows 8 partition from a linux live cd. Prior to Windows 8, I used ntfs-3g to mount the partition from the command line. The "Fdisk -l" command does not seem to be able to read efi partitions. There must be some new strategy for linux users. This is... (6 Replies)
Discussion started by: jamarsh
6 Replies

5. Slackware

Dealing with lilo and uefi

Recently I have been trying to boot into slackware on a new laptop that came preinstalled with windows 8. I have successfully installed slackware and Lilo, but I have had great difficult attempting to boot into it. Since the laptop contains no optical drive, I have been attempting to boot into... (2 Replies)
Discussion started by: a sandwhich
2 Replies

6. Shell Programming and Scripting

Crontab entry issue

Hi, I added below entry in crontab. Cron is triggering the script but actual script is not running. Cron entry: 45 * * * * /data/crons/Purge/TransferLogMaint.sh 3 20000 300 > /dev/null 2>&1 Cron log entry: Apr 17 12:45:01 <servername> crond: (root) CMD (/data/crons/Purge/TransferLogMaint.sh... (7 Replies)
Discussion started by: Satyak
7 Replies

7. Linux

grub2 startup freeze

I got a dual boot with grub2, but everytime I turn on the computer and the booter is loaded, I can't handle the menu, so I am forced to wait the countdown and choose the default option. I'd really like to know why! This is my grub.cfg, # # DO NOT EDIT THIS FILE # # It is automatically... (0 Replies)
Discussion started by: Luke Bonham
0 Replies

8. Debian

Grub2 (dual boot, dmraid) cannot run Debian6

Hello, firstly excuse for my poor english. I have a busybox error when I try to run Debian 6. It's like Grub cannot find root (initramfs) My system is: - RAID0 with dmraid - /boot ext2 (from moonOS installation --ubuntu based--) - ext4 (moonOS wich have the Grub2 installation, where I... (0 Replies)
Discussion started by: neutralTTY
0 Replies

9. UNIX for Dummies Questions & Answers

Can't get puppy to work with grub2

Hello, I'm trying to put puppy linux 4.2.1 (I can't use the latest because it won't boot on my hardware) on a grub2'd usb drive. It throws the error that it can't find pup_421.sfs Here is my /boot/grub/grub.cfg menuentry "Puppy 4.2.1" { loopback loop... (2 Replies)
Discussion started by: Narnie
2 Replies

10. Shell Programming and Scripting

cron entry issue --- help required

Hi all I schedule a job using crontab. My script accespts parameters like the following, 00 08 1 * * /ciwbin/generate_mnthy_rpt.job `date +%Y` `date +%m` i am passing month and year as parameters. Since we may need to run this job for an ad hoc month we decided to pass parameter. The... (1 Reply)
Discussion started by: Jamesravid
1 Replies
Login or Register to Ask a Question