Glad you found a solution that works for you. If you need or want to change things, one thing I wanted to mention, it doesn't look like you need to tinker with efibootmgr to control the boot process. At least not as long as you don't install another OS and are OK using grub2.

The output you got from efibootmgr shows that grub2 is the default boot loader that the UEFI boot manager will load, because ubuntu IS grub2. ubuntu, in this case, is just a label for a folder in the EFI partition which contains the grub2 boot loader. How do I know know UEFI boot manager will, by default, hand over control to grub2? Because:

BootCurrent = 0001
BootOrder lists 0001 first.
Boot0001 points to ubuntu
Although it's not shown in your output, ubuntu points to a file in the folder, EFI/ubuntu. You could see that if you ran efibootmgr in verbose mode: efibootmgr -v

When you are running the Ubuntu OS, the EFI/ubuntu folder is /boot/efi/EFI/ubuntu. You need root permission to examine it. If you execute: sudo ls -l /boot/efi/EFI/ubuntu, you should see something like what I see:
total 4314
-rwx------ 1 root root     108 May  3 10:47 BOOTX64.CSV
-rwx------ 1 root root     126 May  3 10:47 grub.cfg
-rwx------ 1 root root 2594696 May  3 10:47 grubx64.efi
-rwx------ 1 root root  860824 May  3 10:47 mmx64.efi
-rwx------ 1 root root  960472 May  3 10:47 shimx64.efi

Hope that's not too much information, or too little!

On 6/11/2023 8:29 PM, Al Puzzuoli wrote:

Thanks to everyone for the help! End and then up arrow once does the trick! That’s good enough for me for now. I’ll play around with figuring out why I can’t set the boot defaults later.

--Al

*From:*Rob Whyte <fu...@thefudge.net>
*Sent:* Sunday, June 11, 2023 6:29 PM
*To:* Al Puzzuoli <alp...@gmail.com>; sonfir...@gmail.com; ubuntu-accessibility@lists.ubuntu.com *Subject:* Re: Tips for accessibly Managing/Navigating Grub2 in a Dual boot Scenario?

Push end to go to bottom of list and up arrow once.

That is how I reliably do it.

I depends on age of system of course.

Might be worthwhile trying from the bottom though instead of arrowing down through a growing list of options.

cheers

On 12/6/23 07:23, Al Puzzuoli wrote:

    Thanks!

    I understand this in principle now; but either something is odd or
    more likely, I’m still just confused.

    When I run efibootmgr, I get the following:

    BootCurrent: 0001

    Timeout: 1 seconds

    BootOrder: 0001,0000,0004,0005,0002,0003

    Boot0000* Windows Boot Manager

    Boot0001* ubuntu

    Boot0002* Generic Usb Device

    Boot0003* CD/DVD Device

    Boot0004* UEFI: PXE IPv4 Intel(R) Ethernet Connection (17) I219-LM

    Boot0005* UEFI: PXE IPv6 Intel(R) Ethernet Connection (17) I219-LM

    So:

    Since Boot0000* Windows Boot Manager is the first item in the
    list, I should be able to make the machine boot to Windows by
    setting GRUB_DEFAULT=0, and then running update-grub, right? Only
    problem is GRUB_DEFAULT is already set to 0, and with this
    setting, the machine boots to Linux. Therefore, I tried
       grub_default=1, but the machine still boots to Linux.

    I also tried grub_default=saved, and then playing with the
    grub-set-default command. Whether I set it to 0 or 1, I still end
    up in Linux.

    Playing with the grub-reboot command yields similar results. No
    matter what values I use for any of these commands, I either end
    up booting to Linux, or to a place where I don’t have a screen
    reader and can’t figure out what’s going on.

    If I didn’t know any better, I would almost think that I am
    actually booting to the Windows Boot manager, but the Windows boot
    manager is defaulting to load Ubuntu. Is that even possible? I
    can’t imagine the Ubuntu 23.04 installer would have modified the
    Windows boot manager as well as installing Grub?

    At this point, I may have to connect a monitor and resort to
    sighted assistance. Very bizarre indeed.

    Thanks again,

    --Al

    *From:*Ubuntu-accessibility
    <ubuntu-accessibility-boun...@lists.ubuntu.com>
    <mailto:ubuntu-accessibility-boun...@lists.ubuntu.com> *On Behalf
    Of *sonfir...@gmail.com
    *Sent:* Sunday, June 11, 2023 12:51 PM
    *To:* ubuntu-accessibility@lists.ubuntu.com
    *Subject:* RE: Tips for accessibly Managing/Navigating Grub2 in a
    Dual boot Scenario?

    Hi,

    I can directly edit the grub config file. In my setup, I turned on
    the beep, set timeout to -1 which will wait for a response
    forever, and also set the menu to visible instead of hidden. Also
    disable all of the extra recovery options. When you are in a
    terminal window, type sudo efibootmgr and provide your sudo
    password. This will tell you what order the boot managers are in
    and which one is the default. After the setup, the menu will wait
    forever, displaying the menu and only give you the active boot
    options <windows or ubuntu>. It will also beep when it is ready
    for a response. You can also use the efibootmgr to determine what
    menu option to use for the default OS option.

    *From:*Ubuntu-accessibility
    <ubuntu-accessibility-boun...@lists.ubuntu.com> *On Behalf Of
    *faginbagin
    *Sent:* Sunday, June 11, 2023 12:27 PM
    *To:* ubuntu-accessibility@lists.ubuntu.com
    *Subject:* Re: Tips for accessibly Managing/Navigating Grub2 in a
    Dual boot Scenario?

    On 6/11/2023 12:17 PM, faginbagin wrote:

        On 6/11/2023 11:57 AM, Al Puzzuoli wrote:

            Hi all,

            On one of my machines, I have installed Ubuntu 23.04
            alongside Windows 11. By default now, the machine boots
            into Linux. My issue is that I’m not sure how to reliably
            boot to Windows when I want to do so. I’ve enabled the
            Grub beep, and after the beep, I’ve experimented with
            pressing down arrow and then enter, pressing down arrow
            twice, and then enter, etc. Maybe I need to down arrow 3
            or 4 times, but the upshot is I’m just not sure. I’m
            guessing there are a number of entries I could care less
            about such as Memtest 386 and older kernels will get added
            as time passes.

            What’s the best way to deal with this these days? Sounds
            like you’re no longer supposed to edit grub.conf directly.
            I’ve seen talk about the grub-customizer tool but I’m
            having issues installing that in 23.04.

            Seems like this used to be easier 15 or 20 years ago with
            the old Grub. Ah well.

            Thanks,

            --Al

        Would it help if grub saved your last boot option? In other
        words, if you do boot into Windows, the next time you reboot,
        the default choice will be windows? If so, the attached patch
        might help (if the list allows text format patches). It's from
        a 22.04 system (I don't have 23.04 installed), but
        /etc/default/grub has not seen a lot of changes over time. I
        hope it helps.

    Forgot to mention that this patch also disables the splash screen
    and makes sure there's a 10 second timeout. If you don't want
    those changes, but do want to save your last boot as the next
    default boot option. you only need to change GRUB_DEFAULT and add
    GRUB_SAVEDEFAULT as shown in the patch. I did comment out
    GRUB_TIMEOUT_STYLE but I'm not sure it is needed. For more details
    see the grub documentation, especially section 6.1:
    https://www.gnu.org/software/grub/manual/grub/grub.html#Simple-configuration

    HTH




-- 
Ubuntu-accessibility mailing list
Ubuntu-accessibility@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-accessibility

Reply via email to