Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Woeusb-gui is creating an empty file for bootx64.efi, windows 7. #72

Open
SisyphusIsntHappy opened this issue Mar 9, 2022 · 11 comments
Assignees

Comments

@SisyphusIsntHappy
Copy link

  • [ yes] I've searched the issue tracker and is pretty sure that there's no duplicate issue already filed
  • [ yes] I've built the latest development snapshot using the instructions in README and verified that the issue can still be reproduced

OS : ArchLinux
woeusb-gui installed from AUR, version - 0.2.10

The program is not creating the efi bootloader named efi/boot/bootx64.efi properly. In my case a 0 bytes sized file "bootx64.efi" is created which obviously is useless. The ISOs I tested are Win7-professional, ultimate, and enterprise.

I tried the old version of the program too, it also yielded same results.

How to fix it?

@SisyphusIsntHappy SisyphusIsntHappy changed the title Woeusb-gui, creating and empty file for bootx64.efi, windows 7. Woeusb-gui is creating an empty file for bootx64.efi, windows 7. Mar 9, 2022
@WaxyMocha
Copy link
Member

This was added in #70, I just haven't pushed new release yet. You can install the woeusb-ng from source to get that functionality.

@WaxyMocha
Copy link
Member

oh, wrong issue

@WaxyMocha WaxyMocha reopened this Mar 9, 2022
@WaxyMocha
Copy link
Member

No, I was writing for #71 and sent it here

@SisyphusIsntHappy
Copy link
Author

I see, so any idea how to fix my issue?

@WaxyMocha
Copy link
Member

I'm creating a bootable drive in virtual machine to confirm the issue, I'll get back to you when I'm done.

@SisyphusIsntHappy
Copy link
Author

SisyphusIsntHappy commented Mar 9, 2022

Just FYI, this is where I obtained the untouched ISOs

https://[redacted]

@WaxyMocha
Copy link
Member

Firstly, I'm not clicking this link.

Secondly,
Are you from China?
Why I'm asking, this whole partition is created from rufus boot iso: https://github.com/pbatard/rufus/tree/master/res/uefi
and thus is not tied to Windows ISO used, and I think there was some guy that was mentioning this issue, but I can't find it now.

So, if this is an issue that breaks the functionally for you, I don't think I can help you, maybe you can hack the code to change download link.

@SisyphusIsntHappy
Copy link
Author

No offense, but it's an archive, what are you browsing the web on, windows XP?
No I'm not from china.
Could you explain the part about rufus?

@WaxyMocha
Copy link
Member

The woeusb-ng creates fat partition for uefi, and then downloads image of that partition form the link I given you. All files that are in uefi partition come from this image, if you get empty files that means that the image was corrupted in some way.

@SisyphusIsntHappy
Copy link
Author

SisyphusIsntHappy commented Mar 11, 2022

If I'm not mistaken that image file is only downloaded when the ISO install image is larger than 4GB in which case an NTFS partition is created and the image file is downloaded form the web. Here it says that,

def install_uefi_ntfs_support_partition(uefi_ntfs_partition, download_directory):

Those are said to be uefi-ntfs bootloader, also looking at the file size the bootx64.efi present in the image, it is only 27KB while the actual windows bootloader bootx64.efi is over 500KB.

In workaround.py, it can be seen that the program is trying to open the install.wim file and extract a certain efi file which is then renamed as bootx64.efi.

bootloader = subprocess.run(["7z",

My skills are not perfect but please look into it. I'm guessing some bug is preventing the proper extraction of that file. Could you please check?

@WaxyMocha WaxyMocha reopened this Mar 15, 2022
@WaxyMocha WaxyMocha self-assigned this Mar 15, 2022
@zoeleu
Copy link

zoeleu commented Jun 22, 2022

Firstly, I'm not clicking this link.

Secondly, Are you from China? Why I'm asking, this whole partition is created from rufus boot iso: https://github.com/pbatard/rufus/tree/master/res/uefi and thus is not tied to Windows ISO used, and I think there was some guy that was mentioning this issue, but I can't find it now.

So, if this is an issue that breaks the functionally for you, I don't think I can help you, maybe you can hack the code to change download link.

By the way, I can open the comment history and find the link. I would advise you to delete the comment if you truly wish to remove it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants