ventoy / Ventoy

A new bootable USB solution.
https://www.ventoy.net
GNU General Public License v3.0
60.28k stars 3.94k forks source link

[issue]: trouble booting from grub edit mode "booting a command list" "image not loaded" #2848

Closed hgkamath closed 4 days ago

hgkamath commented 1 month ago

Official FAQ

Ventoy Version

1.0.98

What about latest release

Yes. I have tried the latest release, but the bug still exist.

Try alternative boot mode

Yes. I have tried them, but the bug still exist.

BIOS Mode

Legacy BIOS Mode

Partition Style

GPT

Disk Capacity

8GB

Disk Manufacturer

Kingston

Image file checksum (if applicable)

Yes.

Image file download link (if applicable)

https://downloads.sourceforge.net/gparted/gparted-live-1.6.0-3-amd64.iso

What happened?

Steps:

Now: One can boot into livecd either by just waiting for time-out or by pressing enter using UEFI onscreen keyboard. That-is when iso is booted directly without entering grub-edit mode, the gparted-livecd-iso boots.

But I have reasons to enter grub edit mode and modify kernel command line. See [1].
grub edit mode is enterred by pressing e.
After editing/modifying the grub commands ctrl-x is pressed to proceed to boot.
For this bug to happen nothing needs to be modified.
When grub proceeds to chainload to grub-config-files-inside-iso, via the grub edit menu, one gets the following error:

booting a command list

application failed, r=5 

error:image not loaded

which shows for about 15 sec before returning to the gparted-livecd-grub menu, but this time around without overlay keyboard. So at this point I need to power off tablet and try boot again.

Additional Info: The grub version inside gparted-livecd-1.6.0.3 (released 20240408) is updated to 2.12 -2 according to the changelog [4]. Unsure if this matters.

Ref:

hgkamath commented 1 month ago

Workaround : choosing "grub mode in ventoy 2nd boot screen" instead of normal mode will chainload into the gparted-livecd-iso using ventoy's grub version that is 2.0.4.
gparted-livecd boots as expected.

So it might be a grub version incompatibility issue during handover.

As of this writing, some other issues have mentioned the need to update ventoy-grub-2.04 to upstream grub-2.12

hgkamath commented 4 days ago

I just checked the latest gparted-live-1.6.0-3-amd64.iso with ventoy 1.0.99 Confirming that both normal-mode and grub-mode can boot the gparted iso image. It may have been a transient problem with ventoy 1.0.98.