Page 2 of 2 FirstFirst 12
Results 11 to 19 of 19

Thread: Cannot boot into Windows from Grub menu with Ubuntu 18.04.1 LTS

  1. #11
    Join Date
    Sep 2009
    Beans
    68

    Re: Cannot boot into Windows from Grub menu with Ubuntu 18.04.1 LTS

    I copied grubx64.efi to /EFI/Boot. After grub update and reboot, selecting "Win Boot UEFI loader" reverts to the grub menu.
    I copied bootmgfw.efi to /EFI/Boot. After grub update and reboot, there are no changes to the responses of any of the options on the grub menu.

  2. #12
    Join Date
    Sep 2009
    Beans
    68

    Re: Cannot boot into Windows from Grub menu with Ubuntu 18.04.1 LTS

    Strange behavior after running Boot-Repair/Advanced. Rebooted and got the grub menu (similar to post #9), selected “Win UEFI bootmgfw.efi” and it booted to Windows. Good news. But exited Win with restart, got the grub menu, selected “Win UEFI bootmgfw.efi” again, and this time got a purple screen. Tried numerous restarts, selecting “Win UEFI bootmgfw.efi”, and got the same purple screen. So I did an Advanced B-R again, and, as above, was able to boot into Win. But again, after exiting Win and getting the grub and selecting “Win UEFI bootmgfw.efi”, I got a purple screen. Then did the Advanced B-R a third time. Now, I am able to cycle to Win and back to grub and into Win successfully - 4 times, so far.
    Win UEFI bootmgfw.efi” is the only option in the grub that boots into Win.
    Is there anything else that I should do, or is my problem now “solved”?


    Paste bin: http://paste.ubuntu.com/p/kCH8SVksQJ/

  3. #13
    Join Date
    Mar 2011
    Beans
    1,994

    Re: Cannot boot into Windows from Grub menu with Ubuntu 18.04.1 LTS

    Nothing looks wrong in the boot-repair link, but the error message:
    Win Boot UEFI loader - Displays message: Failed to open: EFI/Boot/grubx64.efi and Failed to find image: EFI/Boot/grubx64.efi.
    looks like an earlier install with secure boot on left /EFI/Boot/bootx64.efi as a copy of shim, the the next install, renamed this to
    /EFI/Boot/bkpbootx64.efi, and when run from grub, complains that the grubx64.efi file is not
    in the same directory. Copy grubx64.efi there and see if that fixes the error (which should start grub),
    or copy the Windows bootloader /EFI/Microsoft/Boot/bootmgfw.efi there as the bkpbootx64.efi file to hopefully boot Windows.

  4. #14
    Join Date
    Sep 2009
    Beans
    68

    Re: Cannot boot into Windows from Grub menu with Ubuntu 18.04.1 LTS

    Quote Originally Posted by ubfan1 View Post
    Nothing looks wrong in the boot-repair link, but the error message:
    Win Boot UEFI loader - Displays message: Failed to open: EFI/Boot/grubx64.efi and Failed to find image: EFI/Boot/grubx64.efi.
    looks like an earlier install with secure boot on left /EFI/Boot/bootx64.efi as a copy of shim, the the next install, renamed this to
    /EFI/Boot/bkpbootx64.efi, and when run from grub, complains that the grubx64.efi file is not
    in the same directory. Copy grubx64.efi there and see if that fixes the error (which should start grub),
    or copy the Windows bootloader /EFI/Microsoft/Boot/bootmgfw.efi there as the bkpbootx64.efi file to hopefully boot Windows.
    OK. Did ~$ cp /mnt/EFI/ubuntu/grubx64.efi /mnt/EFI/Boot. No change in responses to any selections in grub menu. Good so far.
    Then did ~$ cp /EFI/Microsoft/Boot/bootmfgw.efi /mnt/EFI/Boot/bkpbootx64.efi. Then “Win UEFI bootmgfw.efi” resulted in purple screen; numerous re-trys, same results.
    Then did Advanced B-R (with “Secure Boot” unchecked. Note: I may have done some previous B-Rs with “Secure Boot” left “checked” by mistake. My BIOS is set up with this “disabled”.) Now “Win UEFI bootmgfw.efi” boots to Win and other grub menu options perform as before (either reverts to grub or purple screen).


    A couple questions:
    1) Where in the Boot Report did you find the error message you referred to?

    2) Would it be possible to see a “logic diagram” of the boot-up steps that involve the 10 files that are shown in boot/efi/EFI? A “logic diagram” or “flowchart” would help, I think. TIA.


    New paste bin url: http://paste.ubuntu.com/p/QNmwn7jVZ3/

  5. #15
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Kubuntu

    Re: Cannot boot into Windows from Grub menu with Ubuntu 18.04.1 LTS

    UEFI is supposed to allow any entry boot, some vendors modify UEFI and use description to limit boot.

    Windows boots from /EFI/Microsoft/Boot/bootmfgw.efi.
    Ubuntu boots from /EFI/ubuntu/shimx64.efi or grubx64.efi.
    Shimx64.efi is for UEFI secure boot and grubx64.efi is for UEFI standard boot, but shimx64.efi works with secure boot off.
    Systems may offer a "fallback" or hard drive boot entry at /EFI/Boot/bootx64.efi for internal drives. This path/file is the standard UEFI entry for all external drives. Both Ubuntu installer & Windows installer use this, but bootx64.efi is obviously different.

    Grub used to not install anything into /EFI/Boot.
    Boot-Repair would copy any existing /EFI/Boot/bootx64.efi to /EFI/Boot/bkpbootx64.efi. If it exists before Ubuntu install, it was just a copy of Windows bootfgw.efi. And Boot-Repair would copy shimx64.efi to /EFI/Boot/bootx64.efi and add boot stanza to boot both bootx64.efi & bkpbootx64.efi if not existing.

    Now grub does copy some files into /EFI/Boot as /EFI/Boot/bootx64.efi. Not sure if it backs up the Windows file if it exists, nor am I sure if it is grubx64.efi or shimx64.efi that a grub install uses, it may depend on whether you are installing in UEFI Secure boot or not.

    When we manually copied shimx64.efi to /EFI/Boot/bootx64.efi we also had to make sure we had the /EFI/ubuntu folder with all its files as the standard shim or grub was/is hard coded to look for additional files in /EFI/ubuntu. The version of grub in the installer has all files in /EFI/Boot folder but is a very minimal version of grub just to boot flash drive.

    Have not seen any real documentation on details of grub's install process. Just based on observation of how it works, but recent grub updates did change some things. And while UEFI is a standard, diffferent vendors implement it differently and even violate some parts of standard.
    Last edited by oldfred; October 10th, 2018 at 02:12 PM.
    UEFI boot install & repair info - Regularly Updated :
    https://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  6. #16
    Join Date
    Sep 2009
    Beans
    68

    Re: Cannot boot into Windows from Grub menu with Ubuntu 18.04.1 LTS

    Update: This morning, when booting up the pc and getting the grub menu, selecting "Win UEFI bootmgfw.efi" resulted in a purple screen. Looks like the changes didn't stick. I re-checked Win power options - fast s/u, sleep, and hibernate are unchecked. Also, BIOS secure boot is still off.

  7. #17
    Join Date
    Mar 2011
    Beans
    1,994

    Re: Cannot boot into Windows from Grub menu with Ubuntu 18.04.1 LTS

    The error message came from your #9 message, not the boot-repair report.
    The setup of /EFI/Boot with shimx64.efi/bootx64.efi/grubx64.efi is probably still wrong, given that the problem is in grub itself (bug #1453980) -- the --uefi-secure-boot option does nothing. Do join the bug to at least get it confirmed.
    Most of the .efi files are tests or key manipulation, not needed in most cases. shim runs grub if in the same directory. grub (where ever it runs) looks in /EFI/ubuntu for the grub.cfg configuration file, which typically just pulls in the grub.cfg file from the main install's /boot/grub directory. grub then runs the selected efi file, (a kernel if a normal boot).
    --- fixed typo in bug number ---
    Last edited by ubfan1; October 11th, 2018 at 09:43 PM.

  8. #18
    Join Date
    Sep 2009
    Beans
    68

    Re: Cannot boot into Windows from Grub menu with Ubuntu 18.04.1 LTS

    Can't find bug #14539780.

  9. #19
    Join Date
    Sep 2009
    Beans
    68

    Re: Cannot boot into Windows from Grub menu with Ubuntu 18.04.1 LTS

    Following my post #9 yesterday, I did another Boot-Repair, and was able to reboot into Win w/ Win UEFI bootmgfw.efi”. I immediately followed this with 12 “restarts” and “shutdowns” from Win and Ubuntu and was likewise successful w/ booting into Win from grub, ending w/ a s/d from Ubuntu. I booted from grub into Win, shutting down from Ubuntu, 3 more times about 4 hours apart. And this morning, I am having the same success booting into Win from grub.

    I am marking this problem as solved.

Page 2 of 2 FirstFirst 12

Tags for this Thread

Bookmarks

Posting Permissions

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