FedoraForum.org - Fedora Support Forums and Community
Results 1 to 7 of 7
  1. #1
    Join Date
    Sep 2014
    Location
    In the 4th dimension
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re-installing the boot thingy/UEFI

    Hi,

    I always have to hit F9 when I boot to get to the boot menu, and it's annoying because often I miss it and end up booting winblows.

    I want to reinstall whatever I did that put that boot menu there when I installed Fedora, to try to make this work gooder.

    How?

    The laptop has UEFI.

  2. #2
    Join Date
    May 2011
    Location
    Confoederatio Helvetica (Swissh)
    Age
    46
    Posts
    4,526
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Re-installing the boot thingy/UEFI

    Just attempted to reinstall GRUB2 too on a UEFI system...

    Allthough, this *should* work, it didnt...
    Code:
    grub2-install --target=x86_64-efi --efi-directory=/boot/efi --boot-directory=/boot --bootloader-id=fedora $DEV
    Had to change the target as 32 bit, eventhough the laptop came with 64 bit windows pre installed..
    Code:
    grub2-install --themes=nasa-circled-sombrero --target=i386-pc --efi-directory=/boot/efi --bootloader-id=fedora --boot-directory=/boot  $DEV
    NOTE, $DEV is /dev/sda in my case.

    hth
    * Shell Wrapper and Runtime Modifier (SWARM): https://github.com/sri-arjuna/SWARM
    * Yet Another Simple Script Installer (YASSI): https://forums.fedoraforum.org/showthread.php?323099
    * EFI Cheatsheet :: http://forums.fedoraforum.org/showthread.php?t=298546
    * Windows 8+ & Fedora 20+ Dualboot :: http://forums.fedoraforum.org/showthread.php?t=298161

  3. #3
    PabloTwo's Avatar
    PabloTwo is offline "Fedora User" T-Shirt Winner
    Join Date
    Mar 2007
    Location
    Seville, FL
    Posts
    8,919
    Mentioned
    39 Post(s)
    Tagged
    0 Thread(s)

    Re: Re-installing the boot thingy/UEFI

    F9 function key to access the UEFI Boot Menu? Sounds like you might have an HP laptop. If that's the case, and your HP laptop acts like my HP Envy DV7, then you have to jump through some hoops to get Fedora to be the "default" boot OS.

    First off, understand that when you install Fedora in UEFI mode alongside Windows8/8.1, Fedora makes itself the default OS to boot in the EFI System Partition, so, on most laptops installing Fedora this way with UEFI and dual booting with Windows, you get the grub2 menu at bootup.

    On some (or all?) HP laptops, HP has has jiggered the UEFI boot up so that if finds any other OS other than the originally installed W8/8.1 is not the first OS in line to boot (default), it rewrites the UEFI boot menu making Windows the default. Thus, you never get the grub2 boot menu, it just boots straight to Windows.

    You need to learn to use the efibootmgr tool (command line) to help you see what is going on. Just run efibootmgr command without any arguments, as root. Here's what it looks like on my HP laptop.
    Code:
    $ sudo efibootmgr
    BootNext: 3006
    BootCurrent: 0006
    Timeout: 0 seconds
    BootOrder: 3000,3006,2001,2002,2003
    Boot0000* Windows Boot Manager
    Boot0006* Fedora
    Boot2001* USB Drive (UEFI)
    Boot2002* Internal CD/DVD ROM Drive (UEFI)
    Boot3000* Internal Hard Disk or Solid State Disk
    Boot3006* Internal Hard Disk or Solid State Disk
    Notice the BootOrder. Normally, one can change the boot order using the efiboomgr program. I can do that on my HP laptop. But when I boot, my changes are undone and Windows is made the default again. "3000" corresponds to the "Boot0000* Windows Boot Manager" entry, which boots W8 and "3006" corresponds to "Boot0006* Fedora".

    My workaround is to set the "BootNext:" to boot Fedora with efibootmgr. Fortunately, HP's tinkering doesn't mess with that setting, so now when I turn on my laptop, it boots straight to the Fedora grub2 menu. The caveat of that is, no matter what I've tried, I cannot get grubs Window entry to actually boot W8 on this laptop, so to boot into Windows, I resort to hitting the F9 key for the UEFI Boot Menu and boot Windows from there. After booting into Windows, the BootNext entry is cleared, so getting back into Fedora then requires the F9 key again.

    Since the BootNext entry is a "one shot" deal, to keep it alive for the next boot, I put an entry into my rc.local file that runs at bootup on Fedora to re-issue the boot next command so Fedora will once again boot on the next boot without my intervention at the keyboard.
    Code:
    $ grep efibootmgr /etc/rc.d/rc.local
    efibootmgr -q -n 3006
    This may or may not be your situation, but if it is, the info I've just outlined should help you.
    Last edited by PabloTwo; 8th September 2014 at 04:15 PM.

  4. #4
    Join Date
    Sep 2014
    Location
    In the 4th dimension
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Re-installing the boot thingy/UEFI

    Quote Originally Posted by PabloTwo
    F9 function key to access the UEFI Boot Menu? Sounds like you might have an HP laptop. If that's the case, and your HP laptop acts like my HP Envy DV7, then you have to jump through some hoops to get Fedora to be the "default" boot OS.

    First off, understand that when you install Fedora in UEFI mode alongside Windows8/8.1, Fedora makes itself the default OS to boot in the EFI System Partition, so, on most laptops installing Fedora this way with UEFI and dual booting with Windows, you get the grub2 menu at bootup.

    On some (or all?) HP laptops, HP has has jiggered the UEFI boot up so that if finds any other OS other than the originally installed W8/8.1 is not the first OS in line to boot (default), it rewrites the UEFI boot menu making Windows the default. Thus, you never get the grub2 boot menu, it just boots straight to Windows.

    You need to learn to use the efibootmgr tool (command line) to help you see what is going on. Just run efibootmgr command without any arguments, as root. Here's what it looks like on my HP laptop.
    Code:
    $ sudo efibootmgr
    BootNext: 3006
    BootCurrent: 0006
    Timeout: 0 seconds
    BootOrder: 3000,3006,2001,2002,2003
    Boot0000* Windows Boot Manager
    Boot0006* Fedora
    Boot2001* USB Drive (UEFI)
    Boot2002* Internal CD/DVD ROM Drive (UEFI)
    Boot3000* Internal Hard Disk or Solid State Disk
    Boot3006* Internal Hard Disk or Solid State Disk
    Notice the BootOrder. Normally, one can change the boot order using the efiboomgr program. I can do that on my HP laptop. But when I boot, my changes are undone and Windows is made the default again. "3000" corresponds to the "Boot0000* Windows Boot Manager" entry, which boots W8 and "3006" corresponds to "Boot0006* Fedora".

    My workaround is to set the "BootNext:" to boot Fedora with efibootmgr. Fortunately, HP's tinkering doesn't mess with that setting, so now when I turn on my laptop, it boots straight to the Fedora grub2 menu. The caveat of that is, no matter what I've tried, I cannot get grubs Window entry to actually boot W8 on this laptop, so to boot into Windows, I resort to hitting the F9 key for the UEFI Boot Menu and boot Windows from there. After booting into Windows, the BootNext entry is cleared, so getting back into Fedora then requires the F9 key again.

    Since the BootNext entry is a "one shot" deal, to keep it alive for the next boot, I put an entry into my rc.local file that runs at bootup on Fedora to re-issue the boot next command so Fedora will once again boot on the next boot without my intervention at the keyboard.
    Code:
    $ grep efibootmgr /etc/rc.d/rc.local
    efibootmgr -q -n 3006
    This may or may not be your situation, but if it is, the info I've just outlined should help you.
    Yep, you're right. It's an hp pavilion.

    running sudo efibootmgr gives:
    Code:
    BootNext: 0000
    BootCurrent: 0000
    Timeout: 0 seconds
    BootOrder: 0001,3001,0000,0002,2001,2002,2003
    Boot0000* Fedora
    Boot0001* Windows Boot Manager
    Boot0002* Fedora
    Boot0003* Notebook Hard Drive
    Boot2001* USB Drive (UEFI)
    Boot2002* Internal CD/DVD ROM Drive (UEFI)
    Boot3000* Internal Hard Disk or Solid State Disk
    Boot3001* Internal Hard Disk or Solid State Disk
    Boot3002* Internal Hard Disk or Solid State Disk
    That's because I already ran

    Code:
     sudo efibootmgr -q -n 0000
    But the rc.local file in /etc/rc.d containing

    Code:
    efibootmgr -q -n 0000
    doesn't seem to do anything. I have to type the command in manually.

  5. #5
    PabloTwo's Avatar
    PabloTwo is offline "Fedora User" T-Shirt Winner
    Join Date
    Mar 2007
    Location
    Seville, FL
    Posts
    8,919
    Mentioned
    39 Post(s)
    Tagged
    0 Thread(s)
    If you had to create the /etc/rc.d/rc.local file, which needs to a bash script file, the first line in the file must be:

    #!/bin/bash

    And it must be made executable:
    Code:
    sudo chmod a+x /etc/rc.d/rc.local
    Did you do those things? Notice also in my example, I used 3006 instead of 0006, though possibly either will work.


    Sent from my Nexus 7 using Tapatalk

  6. #6
    Join Date
    Sep 2014
    Location
    In the 4th dimension
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Re-installing the boot thingy/UEFI

    I have now, and it works.

    Thank you sir!

  7. #7
    PabloTwo's Avatar
    PabloTwo is offline "Fedora User" T-Shirt Winner
    Join Date
    Mar 2007
    Location
    Seville, FL
    Posts
    8,919
    Mentioned
    39 Post(s)
    Tagged
    0 Thread(s)
    You're most welcome. I spent quite a lot of time hitting the F9 key to boot Fedora before I tried the BootNext method. So glad I could save you from that same tedium.


    Sent from my Nexus 7 using Tapatalk

Similar Threads

  1. curious samba clientside..thingy
    By corvisrex in forum Servers & Networking
    Replies: 0
    Last Post: 19th July 2008, 04:10 AM
  2. More cities in the time one thingy!
    By erroneus in forum Suggestions & Feedback
    Replies: 8
    Last Post: 27th June 2006, 03:41 AM
  3. Err, popup thingy
    By glennzo in forum Suggestions & Feedback
    Replies: 0
    Last Post: 26th May 2006, 12:28 AM
  4. Linux server thingy--what do I need?
    By crg23 in forum Using Fedora
    Replies: 6
    Last Post: 18th November 2005, 08:22 PM
  5. Missing updater thingy....
    By psycho_circus in forum Using Fedora
    Replies: 3
    Last Post: 29th March 2005, 06:26 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •