Jump to content











Photo
- - - - -

Boot Win10XPE with Grub2


  • Please log in to reply
11 replies to this topic

#1 alz52879

alz52879

    Newbie

  • Members
  • 19 posts
  •  
    Germany

Posted 11 May 2020 - 04:59 PM

I've installed grub-2.02-for-windows on one partition of my USB Flash Disk. The second partition contains a dd'ed Porteus-Kiosk.

menuentry 'Porteus-Kiosk' {
    set root='hd0,msdos0'
    search --no-floppy --fs-uuid --set=root xxxx-xx-xx-xx-xx-xx-xx
    linux /boot/vmlinuz
    initrd /boot/initrd.xz
}

I'd like to boot Win10XPE.iso as well but I just don't seem to find the right menuentry for that.

Any help would be appreciated.


Edited by alz52879, 11 May 2020 - 05:03 PM.


#2 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 16066 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 12 May 2020 - 09:47 AM

I've installed grub-2.02-for-windows 

From where?

Link please.

 

:duff:

Wonko



#3 alz52879

alz52879

    Newbie

  • Members
  • 19 posts
  •  
    Germany

Posted 12 May 2020 - 10:19 AM

https://www.aioboot....ub2-for-windows



#4 a1ive

a1ive

    Member

  • Developer
  • 58 posts
  •  
    China

Posted 12 May 2020 - 10:23 AM

UEFI or Legacy BIOS?



#5 alz52879

alz52879

    Newbie

  • Members
  • 19 posts
  •  
    Germany

Posted 12 May 2020 - 10:28 AM

For BIOS for a start as explained here.



#6 a1ive

a1ive

    Member

  • Developer
  • 58 posts
  •  
    China

Posted 12 May 2020 - 10:43 AM

For BIOS-booting,

use memdisk (https://wiki.syslinu...p?title=MEMDISK)

menuentry "Boot WinPE" {
    linux16 /path/to/memdisk iso raw
    initrd16 /path/to/WIN10XPE.iso
}

or call grub4dos grub.exe (https://github.com/chenall/grub4dos)

menuentry "Boot WinPE" {
    set g4d_cmd="find --set-root --ignore-floppies /path/to/WIN10XPE.iso; map /path/to/WIN10XPE.iso (0xff); map --hook; chainloader (0xff)"
    linux /path/to/grub.exe --config-file=${g4d_cmd}
}

Edited by a1ive, 12 May 2020 - 10:47 AM.


#7 alz52879

alz52879

    Newbie

  • Members
  • 19 posts
  •  
    Germany

Posted 12 May 2020 - 12:00 PM

@ a1ive

 

Thanks very much for the input.

menuentry "Boot WinPE" {
    linux16 /path/to/memdisk iso raw
    initrd16 /path/to/WIN10XPE.iso
}

 .... works fine but it's considerably slower than unpacking the WIN10XPE.iso to the USB Flash Disk and using the code below:

menuentry "Win10XPE" {
if [ ${grub_platform} == "pc" ]; then ntldr /bootmgr; fi
if [ ${grub_platform} == "efi" ]; then chainloader /efi/boot/bootx64.efi; fi
}   


#8 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 16066 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 12 May 2020 - 12:19 PM

Sure, the memdisk entry loads the .iso in RAM, so there is the additional time to transfer the whole .iso into RAM.

 

The other one, via grub4dos, maps it directly, and should be very fast.

 

Or you could use the "partnew" approach, that will work with grub4dos and should also work with the GRUB2 from A1ive:

https://translate.go...o/grub2_zh.html

 

 

:duff:

Wonko


  • alz52879 likes this

#9 a1ive

a1ive

    Member

  • Developer
  • 58 posts
  •  
    China

Posted 12 May 2020 - 12:22 PM

Sure, the memdisk entry loads the .iso in RAM, so there is the additional time to transfer the whole .iso into RAM.

 

The other one, via grub4dos, maps it directly, and should be very fast.

 

Or you could use the "partnew" approach, that will work with grub4dos and should also work with the GRUB2 from A1ive:

https://translate.go...o/grub2_zh.html

 

 

:duff:

Wonko

we don't have "map" module for BIOS GRUB2 :unsure:



#10 wimb

wimb

    Platinum Member

  • Developer
  • 3756 posts
  • Interests:Boot and Install from USB
  •  
    Netherlands

Posted 12 May 2020 - 12:23 PM

The other one, via grub4dos, maps it directly, and should be very fast.

 

 

Tested the other one using grub.exe and booting of 10XPE is indeed fast.



#11 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 16066 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 12 May 2020 - 12:34 PM

we don't have "map" module for BIOS GRUB2 :unsure:

Yep, sorry for having been confusing :blush: , I meant not for the Win10XPE.ISO, for a Linux one, my bad :( .

 

If "partnew" and partition recognition in the MBR in your GRUB2 build works "correctly" (or "as it does on grub4dos"), the original method (largely used by Steve6375 in Easy2boot)  is here:

http://reboot.pro/to...brided/?p=88531

 

In grub4dos we use map because it is what we have to make the kernel and initrd initially chainloadable, in GRUB2 this could be a loopback to the .iso in order to be able to chainload the kernel and initrd initially, can't it?. :unsure:

 

:duff:

Wonko



#12 alz52879

alz52879

    Newbie

  • Members
  • 19 posts
  •  
    Germany

Posted 12 May 2020 - 01:58 PM

menuentry "Boot WinPE" {
    set g4d_cmd="find --set-root --ignore-floppies /path/to/WIN10XPE.iso; map /path/to/WIN10XPE.iso (0xff); map --hook; chainloader (0xff)"
    linux /path/to/grub.exe --config-file=${g4d_cmd}
}

 

Running flawlessly as well, thank you very much indeed   :)


Edited by alz52879, 12 May 2020 - 01:58 PM.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users