Jump to content











Photo
- - - - -

Boot Win7pe ISO with Grub2?


  • Please log in to reply
1 reply to this topic

#1 Jim A

Jim A

    Newbie

  • Members
  • 23 posts
  •  
    United States

Posted 23 February 2017 - 04:11 PM

I have 32bit Ubuntu 16.04.2 installed on a USB stick (formatted ext4)

 

I would like to add a Grub 2 menu item to boot a Win7pe ISO file from

the Ubuntu (first) partition.

 

I could create another partition if require.



#2 nguyentu

nguyentu

    Member

  • Members
  • 75 posts
  •  
    Vietnam

Posted 23 February 2017 - 10:51 PM

You can use Wimboot to do this. If bootmgr.exe does not exist in the ISO, using 7-Zip to open /sources/boot.wim and get bootmgr.exe from Windows\Boot\PXE\.

menuentry "WinPE 7" {
    set iso_path="/path/to/YourISO.iso"
    loopback loop $iso_path
    linux16 /path/to/wimboot
    initrd16 \
        newc:bootmgr:(loop)/bootmgr \
	#newc:bootmgr.exe:(loop)/bootmgr.exe \
	newc:bootmgr.exe:/path/to/bootmgr.exe \
        newc:bcd:(loop)/boot/bcd \
        newc:boot.sdi:(loop)/boot/boot.sdi \
        newc:boot.wim:(loop)/sources/boot.wim
}

Edited by nguyentu, 23 February 2017 - 10:59 PM.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users