Coder Social home page Coder Social logo

Comments (31)

steve6375 avatar steve6375 commented on August 22, 2024 1

See www.rmprepusb.com tutorial 145

from grub.

a1ive avatar a1ive commented on August 22, 2024 1

Download binary version for windows: https://github.com/aIive/builds
run build_grub.bat to build grubx64.efi.
create grub2 menu file /boot/grub/grub.cfg
add this to menu:

menuentry "wimboot" {
  wimboot @:bcd:/path/to/bcd @:boot.sdi:/path/to/boot.sdi @:bootmgfw.efi:/path/to/bootx64.efi @:boot.wim:/path/to/win10.wim
}

from grub.

a1ive avatar a1ive commented on August 22, 2024 1

This should not happen.
You should rename it to "bootx64.efi" if there are no preloader or shim efi files.
Or you should rename and copy grubia32.efi to flash drive if the uefi firmware is 32bit.

from grub.

steve6375 avatar steve6375 commented on August 22, 2024 1

Change the order so that wim file is first, then bcd then sdi.

from grub.

steve6375 avatar steve6375 commented on August 22, 2024 1

re. Secure Boot. You would have to use a Shim and MokManager which doesn't always work and also programs the target systems NVRAM. So basically I recommend always disable Secure Boot.
re. mapping ISO - yes, I already gave you tutorial for direct boot from ISO - See www.rmprepusb.com tutorial 145
https://www.rmprepusb.com/tutorials/145-grub2winiso

from grub.

Sporesirius avatar Sporesirius commented on August 22, 2024

I'm not familiar with linux kernel, so maybe it will require a lot of work.

I don't know how complicated such a check would be.

Actually, porting wimboot as a grub module should be a better solution, and someone has implemented this feature.

Yeah, a GRUB2 module would be the best.

grub2x64.zip
Here you can try it.
For example:
runudm @bcd=/test/bcd @boot.sdi=/test/boot.sdi @bootx64.efi=/test/bootx64.efi @boot.wim=/test/win10.wim

Okay thanks, i'll take a look.

Unfortunately, the author refused to publish the source code.
http://bbs.wuyou.net/forum.php?mod=viewthread&tid=373513

:(

from grub.

a1ive avatar a1ive commented on August 22, 2024

I can't make the module work properly. I hope someone can help me.

from grub.

jamefane avatar jamefane commented on August 22, 2024

I think we should first try to port wimboot to grub2 bios and then to UEFI.

from grub.

a1ive avatar a1ive commented on August 22, 2024

I think we should first try to port wimboot to grub2 bios and then to UEFI.

I don't know assembly languages. I would very appreciate it if you could help me.

from grub.

jamefane avatar jamefane commented on August 22, 2024

Hello,
I'm sorry, but I don't have much time to help.
Anyway isn't it easier to fix GRUB2 EFI to start wimboot EFI instead of porting wimboot?

from grub.

a1ive avatar a1ive commented on August 22, 2024

0ee7eb8
801e63f
The "wimboot" module is working now. I've tested on VmWare & my PC.
a modified version of ipxe-wimboot is embeded in the module.
modified wimboot source code: https://github.com/a1ive/wimboot

from grub.

a1ive avatar a1ive commented on August 22, 2024

Usage:

wimboot [--gui] [--rawbcd] [--rawwim] [--pause] [--index=n] @:boot.wim:/path/to/test.wim @:bootmgfw.efi:/path/to/test.efi @:bcd:/path/to/bcd @:boot.sdi:/path/to/boot.sdi
   * params:
   *         --gui or -g  Display graphical boot messages.
   *         --rawbcd or -b Disable rewriting .exe to .efi in the BCD file.
   *         --rawwim or -w Disable patching the wim file.
   *         --pause or -p
   *         --index=n or -i n Use WIM image index n.

from grub.

steve6375 avatar steve6375 commented on August 22, 2024

Can extra files such as winpeshl.ini be inserted into X:\windows\system32 in the same way that can be done with iPXE wimboot ? This would be essential if trying to directly boot from Windows Install ISOs for instance.

from grub.

a1ive avatar a1ive commented on August 22, 2024

Can extra files such as winpeshl.ini be inserted into X:\windows\system32 in the same way that can be done with iPXE wimboot ? This would be essential if trying to directly boot from Windows Install ISOs for instance.

yes

from grub.

guimenez avatar guimenez commented on August 22, 2024

Please, can you help me how to make wimboot work in UEFI mode?
Thank you.

from grub.

guimenez avatar guimenez commented on August 22, 2024

Thank you.
I will try it in the weekend.
Still can't boot floppy images in UEFI mode?
I have a program to test disks that work in dos mode and I can't find any that works in UEFI :(

from grub.

steve6375 avatar steve6375 commented on August 22, 2024

Dos , xp and other real mode os's that depend on a BIOS will never work under uefi !!!

from grub.

guimenez avatar guimenez commented on August 22, 2024

I was thinking that it can be emulated has a BIOS.
But I think it will be impossible.
Let's hope that developers make HDD diagnostics tests with UEFI support.
Thanks

from grub.

a1ive avatar a1ive commented on August 22, 2024

Why not boot a tiny linux kernel and emulate a BIOS machine through QEMU (KVM)?

from grub.

guimenez avatar guimenez commented on August 22, 2024

Does the QEMU will recognize the physical HDD from machine to make hdd diagnostics?

from grub.

guimenez avatar guimenez commented on August 22, 2024

Download binary version for windows: https://github.com/aIive/builds
run build_grub.bat to build grubx64.efi.
create grub2 menu file /boot/grub/grub.cfg
add this to menu:

menuentry "wimboot" {
  wimboot @:bcd:/path/to/bcd @:boot.sdi:/path/to/boot.sdi @:bootmgfw.efi:/path/to/bootx64.efi @:boot.wim:/path/to/win10.wim
}

I've compile the grubx64.efi and copy it to EFI/BOOT
but when i start my flashdrive it says "can't find command wimboot"
I'm missing something?
Thanks

from grub.

guimenez avatar guimenez commented on August 22, 2024

This should not happen.
You should rename it to "bootx64.efi" if there are no preloader or shim efi files.
Or you should rename and copy grubia32.efi to flash drive if the uefi firmware is 32bit.

Ok, It's booting and it find the 4 files needed to boot but after loading to memory i'm getting Windows 0X0C000000F error :(

from grub.

guimenez avatar guimenez commented on August 22, 2024

Change the order so that wim file is first, then bcd then sdi.

Amazing, works like a charm.
Only 2 question please:

  • Can i boot with secure boot option? Or i need always to disable it in UEFI firmware.
  • Is it possible to map to an ISO without extracting to get access to the 4 files?

Thank you once again.

from grub.

neps4u avatar neps4u commented on August 22, 2024

I'm not familiar with linux kernel, so maybe it will require a lot of work.
Actually, porting wimboot as a grub module should be a better solution, and someone has implemented this feature.
grub2x64.zip
Here you can try it.
For example:
runudm @bcd=/test/bcd @boot.sdi=/test/boot.sdi @bootx64.efi=/test/bootx64.efi @boot.wim=/test/win10.wim
Unfortunately, the author refused to publish the source code.
http://bbs.wuyou.net/forum.php?mod=viewthread&tid=373513

do the same but getting Windows 0X0C000000F error
tried steve6375 advice but still not succeed. if anyone knows proper code let me know. thanks

from grub.

steve6375 avatar steve6375 commented on August 22, 2024

0xC000000F usually means the BCD is not pointing to the correct path/file.

from grub.

neps4u avatar neps4u commented on August 22, 2024

0xC000000F usually means the BCD is not pointing to the correct path/file.

Thanks steve6375 for quick reply. used default windows 10 bcd with custom
path. any advice

from grub.

a1ive avatar a1ive commented on August 22, 2024

0xC000000F usually means the BCD is not pointing to the correct path/file.

Thanks steve6375 for quick reply. used default windows 10 bcd with custom
path. any advice

What configuration (grub.cfg and bcd)/commands did you use ?

from grub.

neps4u avatar neps4u commented on August 22, 2024

grub.cfg -

menuentry "Win-PE" {
wimboot @:boot.wim:/sources/boot.wim
@:bootmgfw.efi:/boot/bootx64.efi
@:bcd:/EFI/BOOT/bcd
@:boot.sdi:/boot/boot.sdi \

}

BCD-

bcd

from grub.

Sporesirius avatar Sporesirius commented on August 22, 2024

Hello again, @neps4u you can take a look at: https://github.com/Sporesirius/YAMS/blob/60fea72f6ce7b4d984d16325b9b950e9ae9fdda5/YAMS/grub/configs/windows_based/win-bootmgr.d/generic.cfg#L48
and https://github.com/Sporesirius/YAMS/blob/master/YAMS/Tools/WSL/wsl.bat.
Maybe this is helpful.

from grub.

neps4u avatar neps4u commented on August 22, 2024

Hello again, @neps4u you can take a look at: https://github.com/Sporesirius/YAMS/blob/60fea72f6ce7b4d984d16325b9b950e9ae9fdda5/YAMS/grub/configs/windows_based/win-bootmgr.d/generic.cfg#L48
and https://github.com/Sporesirius/YAMS/blob/master/YAMS/Tools/WSL/wsl.bat.
Maybe this is helpful.

thanks for the reply.. doesn't work.. any other help appreciated. thanks

from grub.

a1ive avatar a1ive commented on August 22, 2024

Hello again, @neps4u you can take a look at: https://github.com/Sporesirius/YAMS/blob/60fea72f6ce7b4d984d16325b9b950e9ae9fdda5/YAMS/grub/configs/windows_based/win-bootmgr.d/generic.cfg#L48
and https://github.com/Sporesirius/YAMS/blob/master/YAMS/Tools/WSL/wsl.bat.
Maybe this is helpful.

thanks for the reply.. doesn't work.. any other help appreciated. thanks

I recommend using wimboot-bcd to create bcd.

from grub.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.