Jump to content











Photo

Boot Windows 10 PE


  • Please log in to reply
No replies to this topic

#1 Arlino123

Arlino123
  • Members
  • 1 posts
  •  
    Italy

Posted 23 February 2023 - 08:22 PM

Hello everyone. I searched for the answer but could not find it. I am sure that somewhere there is.

 

I would like boot a windows10PE.iso with grub4dos and I have in second partition grub2 and so botting iso with grub2

I tried various menus in grub4dos and grub2 but the iso not started.

The iso is this: https://www.hirensbootcd.org/

 

Thanks in advance.

Arlino



#2 Tokener

Tokener

    Frequent Member

  • Developer
  • 378 posts

Posted 23 February 2023 - 11:24 PM

Hi Arlino123,

does the ISO boot when you attach it to a virtual machine like Hyper-V or VirtualBox?

Regards   T.



#3 misty

misty

    Gold Member

  • Developer
  • 1066 posts
  •  
    United Kingdom

Posted 24 February 2023 - 06:17 AM

After following Tokener's advice, which should establish whether the iso is bootable, try and use the GRUB4DOS commandline. This should give more verbose feedback and may help troubleshoot.

Also, it would be helpful to know which commands you have tried as I suspect that Wonko's magic ball still isn't working.

It's been a while, however I'm sure my usual GRUB4DOS commands are similar to -
map --mem (hd0,1)/path/my.iso (0xff)
map --hook
chainloader (0xff)
boot

Add each line at the commandline, pressing enter after each one.

misty

#4 Arlino123

Arlino123
  • Members
  • 1 posts
  •  
    Italy

Posted 26 February 2023 - 02:46 PM

Ok, thanks Tokener adn misty. In this two days I tried various solution and at the end I achieved a working result.

 

For Grub4dos I use this:

 

title Windows 10 Live ver.2
find --set-root /path/to/iso.iso
map /path/to/iso.iso (hd32)
map --hook
root (hd32)
chainloader (hd32)

 

And for grub2 I use agfm inside in easy2boot with this lines:

 

# Only show menu if 64-bit CPU
if [ "$CPU" = "64" ] ; then
# --class=   defines the icon displayed next to the menuentry
menuentry "Windows 10 live" --class=check {
    set "ISO=(${bootdev},msdos1)/path/to/iso.iso"

    if [ ! -f "${ISO}" ] ; then echo "ERROR: ${ISO} not present!" ; read ; fi
    clear
    loopback -d loop
    echo Loading ${ISO}
    loopback loop "${ISO}"
    if [ ! -f "(loop)/sources/boot.wim" ] ; then echo "ERROR: /sources/boot.wim not present in ISO file!" ; read ; fi
    echo Loading ${ISO}
    set "grubfm_file=${ISO}"
    source (${user})/boot/grubfm/rules/iso/win.sh
    win_isoboot "(loop)/sources/boot.wim"
}
fi

 

Thank you very much anyway for the availability!

Arlino


  • Tokener likes this




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users