Page 1 of 5 123 ... LastLast
Results 1 to 10 of 44

Thread: [SOLVED] problem with dual boot ubuntu/w10 at GRUB: cannot load image

  1. #1
    Join Date
    Oct 2024
    Location
    Berlin
    Beans
    24
    Distro
    Ubuntu

    [SOLVED] problem with dual boot ubuntu/w10 at GRUB: cannot load image

    [EDIT: problem has been solved, It was due to an issue in GRUB2 being non-compatible with non-NX shim which includes Windows 10, to fix it:
    Follow the instructions at https://wiki.ubuntu.com/Testing/EnableProposed then in a console sudo apt install -t oracular-proposed grub-common grub-efi-amd64-bin grub-efi-amd64-signed grub-efi-amd64-unsigned grub-pc grub-pc-bin grub2-common]


    first of all, I would like to thank you as I am a new comer on the ubuntu forums


    I have an issue at the moment with my dual boot ubuntu/w10. I am not sure if it's because of the upgrade, but just in case, if I may describe the problem?
    I updated to the last ubuntu version (Ubuntu 24.10) and since, I cannot load windows from grub. when I choose windows, it shows an
    "error
    cannot load image"
    black screen.


    I have tried using boot.repair and here is the report:
    https://paste.ubuntu.com/p/7k6GxdSYC3/


    I have tried rescue-ing from a win installation usb media using terminal (and, yes, I deleted the hibernation file), but I cannot locate the issue.


    I have searched the forum for a similar threat, but this cannot load image don't seems to be.

    If someone pass by and could advice me?

    Thank you.
    Last edited by pfelelep; 3 Weeks Ago at 07:08 PM. Reason: solved

  2. #2
    Join Date
    Mar 2011
    Beans
    2,073

    Re: problem with dual boot ubuntu/w10 at GRUB: cannot load image

    What model machine? A pre-2012 UEFI without secure boot (so maybe delivered with Win7 in legacy), but both disks are gpt (implying UEFI for Windows). Confusing to me is sda has the legacy MBR boot, but sdb has the BIOS boot partition -- I guess it could still be booting in legacy, hence Windows wont run. What machine settings do you have for legacy (csm) vs UEFI?

  3. #3
    Join Date
    Oct 2024
    Location
    Berlin
    Beans
    24
    Distro
    Ubuntu

    Re: problem with dual boot ubuntu/w10 at GRUB: cannot load image

    Hello, thank you for helping me

    it's a Dell Inspiron 7559 bought in 2016, I disabled the secure boot but it's supposed to be UEFI. I will double check in the bios and confirm.

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

    Re: problem with dual boot ubuntu/w10 at GRUB: cannot load image

    It looks like both are UEFI as Windows is only UEFI from gpt and you also have mount of esp in fstab.
    And ESP shows both Microsoft & Ubuntu folders for UEFI boot.

    Probably not related to Windows issues, but should be resolved.
    GPT PMBR size mismatch (1953525167 != 3907029167) will be corrected by write.
    Use gdisk and verify partitions are correct with p, or v to review issues, and use w to write the partition table. If not correct just use q to quit. That should update primary, backup & protective MBR. Details:
    http://www.rodsbooks.com/gdisk/repairing.html &


    Can you directly boot Windows from UEFI boot menu?
    Grub only boots working Windows, but that also means Windows fast startup, hibernation must be off. If bitlocker it must be off. And NTFS must not need chkdsk. If you can boot Windows check those settings. Windows is known to turn fast startup back on with updates, so you may have to redo turning it off.
    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.

  5. #5
    Join Date
    Oct 2024
    Location
    Berlin
    Beans
    24
    Distro
    Ubuntu

    Re: problem with dual boot ubuntu/w10 at GRUB: cannot load image

    @ubfan1
    I confirm it's UEFI (but with legacy oprom? (pict 3) would that be the problem? should I disable the legacy option rom? (in pict2))






    @oldfred:
    no, I can't directly boot Windows from UEFI boot menu, the windows boot manager (in pict 3) bring me back to Grub (pict 4)

    I can't check the fast startup from here, but I deleted the hibernation file before.
    How can I use gdisk? sorry I am confused.

    Attached Images Attached Images
    • File Type: jpg 1.jpg (79.7 KB, 51 views)
    • File Type: jpg 2.jpg (71.1 KB, 49 views)
    • File Type: jpg 4.jpg (78.0 KB, 49 views)
    • File Type: jpeg 5.jpeg (71.6 KB, 50 views)

  6. #6
    Join Date
    Jun 2014
    Beans
    7,915

    Re: problem with dual boot ubuntu/w10 at GRUB: cannot load image

    should I disable the legacy option rom? (in pict2))
    I would try that and reboot to test. Make sure when you are making changes to keep detailed notes of exactly what you do an the results.

    Your UEFI information in boot repair beginning on line 206 shows an entry for Ubuntu and for the Hard Drive but does not show the standard entry: Windows Boot Manager
    but it does show in the BIOS setting and the Grub menu which seems a bit odd to me but probably not related.

    What did you do with the windows repair usb? Did you run chkdsk with options and if so, what options did you use?i

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

    Re: problem with dual boot ubuntu/w10 at GRUB: cannot load image

    You show a Windows boot loader in MBR, but Windows in UEFI will not boot from that.
    And you do not have a Windows entry in UEFI.

    This should create a new entry, if ESP is sda1, uses defaults:
    sudo efibootmgr -c -L "Windows Boot Manager" -l "\EFI\Microsoft\Boot\bootmgfw.efi"

    see also
    man efibootmgr
    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.

  8. #8
    Join Date
    Oct 2024
    Location
    Berlin
    Beans
    24
    Distro
    Ubuntu

    Re: problem with dual boot ubuntu/w10 at GRUB: cannot load image

    @oldfred:
    This should create a new entry, if ESP is sda1, uses defaults:
    sudo efibootmgr -c -L "Windows Boot Manager" -l "\EFI\Microsoft\Boot\bootmgfw.efi"
    Bingo! I rebooted, and windows loaded automatically.

    Now, to bring back the dual boot... should I sudo update-grub or use bootrepair?
    I wonder what made the UEFI windows entry disappear?
    Last edited by pfelelep; October 16th, 2024 at 12:42 PM.

  9. #9
    Join Date
    Oct 2024
    Location
    Berlin
    Beans
    24
    Distro
    Ubuntu

    Re: problem with dual boot ubuntu/w10 at GRUB: cannot load image

    now, as I rebooted with the boot option (f12 key), I see that there is no more ubuntu option.


    and choosing the 4th UEFI option (the "2nd" windows boot manager), brings me back to the GRUB dual-boot.

    BUT


    choosing from there, the windows boot manager (on /dev/sda1), gives me the "old" error cannot load image I was running into from the beginning... :/
    Attached Images Attached Images
    • File Type: jpg a.jpg (86.9 KB, 41 views)
    • File Type: jpg b.jpg (64.9 KB, 43 views)

  10. #10
    Join Date
    Oct 2024
    Location
    Berlin
    Beans
    24
    Distro
    Ubuntu

    Re: problem with dual boot ubuntu/w10 at GRUB: cannot load image

    @yancek
    What did you do with the windows repair usb? Did you run chkdsk with options and if so, what options did you use?i
    https://www.lifewire.com/how-to-rebuild-the-bcd-in-windows-2624508
    I was trying to rebuild the BCD

    the chkdsk command returned no error.

Page 1 of 5 123 ... LastLast

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
  •