Jump to content











Photo
- - - - -

Boot Win10XPE with Grub2


  • Please log in to reply
11 replies to this topic

#1 alz52879

alz52879

    Newbie

  • Members
  • 18 posts
  •  
    Germany

Posted 3 weeks ago

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, 3 weeks ago.


#2 Wonko the Sane

Wonko the Sane

    The Finder

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

Posted 3 weeks ago

I've installed grub-2.02-for-windows 

From where?

Link please.

 

:duff:

Wonko



#3 alz52879

alz52879

    Newbie

  • Members
  • 18 posts
  •  
    Germany

Posted 3 weeks ago

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



#4 a1ive

a1ive

    Newbie

  • Members
  • 19 posts
  •  
    China

Posted 3 weeks ago

UEFI or Legacy BIOS?



#5 alz52879

alz52879

    Newbie

  • Members
  • 18 posts
  •  
    Germany

Posted 3 weeks ago

For BIOS for a start as explained here.



#6 a1ive

a1ive

    Newbie

  • Members
  • 19 posts
  •  
    China

Posted 3 weeks ago

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, 3 weeks ago.


#7 alz52879

alz52879

    Newbie

  • Members
  • 18 posts
  •  
    Germany

Posted 3 weeks ago

@ 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
  • 15278 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 3 weeks ago

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

    Newbie

  • Members
  • 19 posts
  •  
    China

Posted 3 weeks ago

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
  • 2795 posts
  • Interests:Boot and Install from USB
  •  
    Netherlands

Posted 3 weeks ago

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
  • 15278 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 3 weeks ago

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
  • 18 posts
  •  
    Germany

Posted 3 weeks ago

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, 3 weeks ago.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users