ventoy / Ventoy

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

No bootfile found for UEFI! #313

Open bouhlal opened 4 years ago

bouhlal commented 4 years ago

Hello I have installed Ventoy on my USB and I have added some ISO's files : MediCAT Hiren's BootCD Windows 10 32bit and windows password recovery BootCD all give ERROR on HP Laptop : No bootfile found for UEFI! Mybe the image does not support X64 UEFI! Best Regards

ventoy commented 4 years ago

Please give the exact iso file name. Windows 10 32bit only support IA32 efi, your machine may be x86_64 uefi (amd64 uefi), so this distro can't boot and will show this message.

For Hiren's BootCD HBCD_PE_x64.iso has been tested in UEFI mode.

Besides, you can try a linux iso file, for example ubuntu-20.04-desktop-amd64.iso

BxOxSxS commented 4 years ago

I have the same for Memtest86-4.3.7.iso and ipxe.iso but works fine with netboot.xyz-efi.iso (v2.0.17), manjaro-gnome-20.0.3-200606-linux56.iso, Windows10_PLx64_2004.iso and HBCD_PE_x64.iso (v1.0.1) Lenovo Ideapad Z580. evrything works fine with legacy mode

BxOxSxS commented 4 years ago

@ventoy I have tested on laptop Lenovo Ideapad Z570 and Memtest86-4.3.7.iso and ipxe.iso gived same error but with additional information:

ASSERT EFI_ERROR (Status = Invalid Parametr)
ASSERT [Ventoy] /home/share/Ventoy/EDKII/edk2-edk2-stable201911/MdePkg/Library/UefiMemoryAllocationLib/MemoryAllpcationLib.c (813
) : !EFI_ERROR (Status)
No bootfile found for UEFI!
Maybe the image does not suport x64 UEFI

netboot.xyz-efi.iso (v2.0.17), manjaro-gnome-20.0.3-200606-linux56.iso, Windows10_PLx64_2004.iso worked fine. Hope it would helps

BxOxSxS commented 4 years ago

@ventoy I still have this error on z580 with ventoy 1.0.16

ventoy commented 4 years ago

@BxOxSxS Please test these ISO files in Virtual Machine (e.g. Vmware) with UEFI mode and to confirm that the ISO file does support UEFI mode.

BxOxSxS commented 4 years ago

@BxOxSxS Please test these ISO files in Virtual Machine (e.g. Vmware) with UEFI mode and to confirm that the ISO file does support UEFI mode.

I checked and they don't work. So it is impossible to get these ISOs to work with ventoy without enabling legacy support in the bios settings?

ventoy commented 4 years ago

Yes. Ventoy virtualizes the ISO as a cdrom device and boot it. So if the ISO doesn't support UEFI mode itself, the boot will fail.

SaryZainoun commented 3 years ago

Hi All,

I have the same error, I can boot from the same usb, the same iso file and the same Ventoy on asus vivobook but not on asus ROG.

any helpe please

rderooy commented 3 years ago

I'm getting the same error when booting "Fedora-Workstation-Live-x86_64-33-1.2.iso" or "pop-os_20.04_amd64_intel_8.iso" on either a new ThinkPad X13 or T14s using Ventoy 1.0.31 UEFI. Secure Boot is disabled in the BIOS on both systems, and the ISO boots just fine if I write it directly to a USB stick with Fedora Image Writer.

Ventoy is able to chain boot Windows 10 (build 2004) just fine on the same systems.

rengare commented 3 years ago

same here on ThinkPad x13 as for @rderooy EDIT: It looks like that version https://github.com/ventoy/Ventoy/releases/tag/v1.0.33 fixes issue with my thinkpad. @rderooy try to use newest version

eogut commented 3 years ago

same here on ThinkPad x13 as for @rderooy EDIT: It looks like that version https://github.com/ventoy/Ventoy/releases/tag/v1.0.33 fixes issue with my thinkpad. @rderooy try to use newest version

I've been trying on a Dell XPS 13 9360 with Ventoy 1.0.34 UEFI running and Memtest86-4.3.7.iso does not work. Getting the same error as @rderooy

steve6375 commented 3 years ago

V4 is legacy version. It does not contain efi boot files.

rderooy commented 3 years ago

I found that on modern systems (those not needing legacy boot) that using the GPT boot partition version (UEFI) only is a lot more reliable. With that with recent versions, all seems to work fine.

eogut commented 3 years ago

Thank you both for your replies. Indeed I have erroneously downloaded memtest v4 because I just read ".iso" and went for it. I have used OSFMount to convert the img file of memtest v8 to iso but I have encountered the same issue. ElementaryOS boots just fine. In Ventoy I had enabled Secure Boot and GPT. I cannot boot into Ventoy with Secure Boot enabled on my machine though, it only boots when I disable Secure Boot in BIOS. Would disabling Secure Boot in Ventoy help? Thanks!

Edit: Disabling Secure Boot didn't help. The only thing that changed is that the " No bootfile found for UEFI!" error was now displayed in 1080p. That's an improvement, I guess? /s

steve6375 commented 3 years ago

You need to make the ISO UEFI64 bootable. You can't just convert things to an ISO and expect them to be bootable! The easiest thing to do if you don't have a UEFI-bootable Memtest86 ISO is to extract the \EFI\BOOT\BOOTX64.efi file and just copy that to your Ventoy drive. Rename it as MemTest86_64.efi (or something similar).

eogut commented 3 years ago

I'll be damned... I guess this is a classic error 45, huh? The error sits 45 cm away from the screen, haha. Interestingly enough, the ISO does contain the efi files as I made sure to convert the whole IMG, which on the other hand is the basis for the creation of a memtest flash drive. Extracting the very same efi file and running that in Ventoy did work! So thanks a ton, @steve6375! By the way, this issue could be closed, couldn't it? I mean things work... as long as the user knows what to do...

kirvedx commented 3 years ago

I've been trying to do something I've done a milliion times before:

  1. Download Debian net installer.
  2. Download non-free firmware archive.
  3. Open net installer iso using archive manager in Debian (pre-existing system). This is also known as file-rolller.
  4. Add firmware packages to the firmware directory.
  5. Boot net installer and install Debian.

This has always worked for me. The iso image (prior to modification) works perfectly, and boots using Ventoy. However, after adding firmware packages Ventoy complains Bootfile not found. Inspection of the filesystem within the iso image shows the boot file(s) - including the UEFI bootfile - in the respective directory.

What's going on here? Is Ventoy checking md5sums and refusing to load an iso that doesn't match or something? If so, please include aflag to stop this check from happening!

akalongman commented 3 years ago

@ventoy imho its a bug. PXL_20210222_164324557.jpg

Installer is Ubuntu 20.04 x64 PXL_20210222_164922309.jpg

JonnyTech commented 3 years ago

I assume that file-roller is not preserving boot parameters, use another iso creation tool.

steve6375 commented 3 years ago

Adding an efi boot file to the directory does not make an iso uefi-bootable. Does the iso boot from a VM as a virtual DVD? My guess is it does not. Google for how to make an iso uefi bootable for more info.

kirvedx commented 3 years ago

Adding an efi boot file to the directory does not make an iso uefi-bootable. Does the iso boot from s VM as a virtual DVD? My guesd is it does not. Google for how to make an iso uefi bootable for more info.

I didn't add an efi boot file - it already existed; I only referenced its existence because of the context of the error message. Thank you for the suggestions.

I adsime that file-roller is not preserving boot parameters, use another iso creation tool.

JonnyTech's response seems the likely circumstance - however: I've always used Archive Manager to do this and have never had an issue. I'll try looking into the changelog on the deb package and see if maybe that's changed, or perhaps if there's a setting somewhere to accomodate this.

Thank you for your suggestions!

Rik

On Mon, Feb 22, 2021 at 12:25 PM Steve Si notifications@github.com wrote:

Adding an efi boot file to the directory does not make an iso uefi-bootable. Does the iso boot from s VM as a virtual DVD? My guesd is it does not. Google for how to make an iso uefi bootable for more info.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

vidyli commented 3 years ago

what is the working solution? check manjaro-gnome, not working.

dausruddin commented 3 years ago

Is there any solution for this? Getting the same error with Arch Linux.

steve6375 commented 3 years ago

If anyone has an issue - please state full and accurate details. ISO file name (full exact name) Ventoy version and details of options chosen when making it (Legacy\MBR\reserved space) Legacy\UEFI32\UEFI64 boot? Results when tested on different models\types of x86 computers - amount of RAM, make/model, latest BIOS? Error description screenshots if possible Many thousands of people use Ventoy, the website has a list of tested ISOs. If the ISO is on the tested list, then clearly it is a problem with your particular equipment, so you need to give the details. For instance, it could be that only certain models of PC have this problem with certain specific ISOs.

dausruddin commented 3 years ago

Sorry for my ignorance. Turned out archlinux-2021.06.01-x86_64 is not compatible. Tried with archlinux-2021.05.01-x86_64 which is listed as compatible and it is working flawlessly.

Thank you.

DonielMoins commented 3 years ago

Sorry for my ignorance. Turned out archlinux-2021.06.01-x86_64 is not compatible. Tried with archlinux-2021.05.01-x86_64 which is listed as compatible and it is working flawlessly.

Thank you.

Seriously? FFS I just spent hours reinstalling arch just to get this in the end...

steve6375 commented 3 years ago

archlinux-2021.06.01-x86_64.iso with Ventoy 1.0.47 boots for me on Lenovo IdeaPad 300 UEFI64 boot. It gets to the root@archiso ~ # prompt just fine using first boot option. I didn't try install using it though.

DonielMoins commented 3 years ago

Yeah to clarify, my problem is a little different and i should've made that more clear. I made a VHD of an arch installation and installed the vtoyboot mod and it keeps on giving me the no UEFI error.

gabriel-messas commented 3 years ago

I have this same problem. Is there a way to force Ventoy to boot in Legacy mode? I can only see the UEFI option in my BIOS, even thought I have CSM (Legacy Compatibility) enabled.

steve6375 commented 3 years ago

Some bioses have a bug. They do not provide a legacy boot option if there is a fat partition with an /EFI folder on it. In this case, try renaming the efi folder as efixxx, and then see if you get a legacy boot option.

GrimPixel commented 2 years ago

Hey, I have encountered the same problem and I found that after deleting the "System Volume Information" folder on Ventoy partition of the USB disk, it can boot now.

SelfRef commented 2 years ago

Hey, I have encountered the same problem and I found that after deleting the "System Volume Information" folder on Ventoy partition of the USB disk, it can boot now.

I didn't expect this folder to be an issue. I can confirm it was the reason for some ISOs to not boot (ChimeraOS, Manjaro Gnome). Many thanks!

kichito commented 2 years ago

para usuarios de habla hispana.

relativo a la imagen iso a utilizar 1.- comprobar que la imagen que tienes sea de 64 bits https://www.youtube.com/watch?v=F5NFuDCZQ00 2.-verificar que la arquitectura de la imagen iso sea compatible con el procesador

relativo a uefi bios

1.-modo uefi: la imagen iso,bin, etc debe ser de 64 bits sino no la reconoce debes activar modo uefi en el bios las particiones seran gpt

modo bios puedes poner cualquier imagen en 32 o 64 bits debes activar modo legacy en el bios-uefi debes desactivar secure boot en el bios-uefi puedes usar las particiones gpt o mbr

espero les sirva, pueden usar rufus, ventoy, easy to boot, etc. lo importante es conocer las diferencias entre uefi y bios y tambien entre gpt y mbr.

Mr-McBride commented 2 years ago

I have the same error with EndeavorOS_Atlantis_neo_21_5.iso using ventoy 1.0.70.

the EndeavorOS iso boots with no issues when on it's on usb, but not through ventoy.

steve6375 commented 2 years ago

EndeavourOS_Atlantis_neo-21_5.iso boots OK using UEFI64 on Ventoy and grubfm. What exactly is the problem? What system are you booting from? Legacy? UEFi64? etc.

cloudxone commented 2 years ago

The current release of Slax (slax-64bit-11.2.1.iso) fails to boot using UEFI64 using ventoy with the error message: "No bootfile found for UEFI! Maybe the image does not support X64 UEFI."

abhin44 commented 2 years ago

same error during creating windows 7 plzz help

Aholicknight commented 2 years ago

I am getting the same error, and I confirmed that the iso has UEFI support. I used Rufus on a new USB with the same iso image, and when I booted to it with UEFI it booted successfully. But when I try to boot it with ventoy it does not boot and says the message "No bootfile found for UEFI".

DocAciD commented 2 years ago

^^ maybe a lenovo / thinkpad / thinkcentre issue ?

Aholicknight commented 2 years ago

^^ maybe a lenovo / thinkpad / thinkcentre issue ?

@DocAciD I don't have a Lenovo, ThinkPad or a ThinkCentre

Suleman-Elahi commented 2 years ago

Getting the same on TinyCoreLiInux (CorePlus)

URL; http://tinycorelinux.net/downloads.html

image

steve6375 commented 2 years ago

The ISO must be UEFI-bootable and have a UEFI64 boot file \EFI\BOOT\BOOTX64.EFI You can open the ISO in 7zip and look for yourself. see http://tinycorelinux.net/13.x/x86_64/release/ TinyCorePure64-13.1.iso does UEFI64 boot OK but CorePure64-13.1.iso does not as it does not contain any EFI boot files

Suleman-Elahi commented 2 years ago

@steve6375 Okay thanks. But I was actually talking about CorePlus. I see your point, this CorePlus ISO is indeed missing that EFI file.

vlad54rus commented 2 years ago

Any way to disable UEFI booting capability from Ventoy and only leave legacy? I have some systems which won't offer legacy boot option if UEFI is present at the same time.

steve6375 commented 2 years ago

Delete or rename the \EFI folder on the VTOYEFI partition 2 of the Ventoy drive.

vlad54rus commented 2 years ago

@steve6375 I've mounted that partition and deleted EFI folder but it's still recognized as EFI, both in Windows Disk Management and the BIOS, just doesn't boot anymore.

steve6375 commented 2 years ago

Maybe because of partition type You can change the type or just delete the partition

theotheroracle commented 1 year ago

i have a really weird edge case, i have the lastest ventoy 1.0.93, and on one machine it will boot uefi fine, specifically the gnome-nixos iso, and on my supermicro server, it's giving the no bootfile found for uefi error, so i'm not sure what's happening in this case

( i also tried grub mode and memcache mode, and neither worked, although the grub mode was just stuck on "booting linux lts" )

theotheroracle commented 1 year ago

guix does boot in uefi though, but it looks to be using a more standard grub install, i'm not sure what the nixos installer is using

poopybunghole commented 1 year ago

I tried running Windows 10 32Bit version ISO using Ventoy on a Thinkpad X230T and I got the same error, turns out UEFI was configured in BIOS and Windows 10 32bit ISO won't start if UEFI boot is configured, so I changed the bios to boot Legacy mode first and it worked. Doesn't really seem to be a problem with Ventoy as far as I can tell. Although the error could be more helpful.