0

Hello i want grub to boot Windows . I have a Windows ISO in my Linux Filesystem . I have No USB Ports . Uefi bios

1 Answers1

0

Boot with Windows ISO file from Grub

  1. Download the Windows ISO file and save it on the root of any NTFS data partition.
  2. Download wimboot (Windows Imaging Format bootloader), extract the file, and copy the wimboot file to the root of the same NTFS partition.
  3. Download ImDisk (virtual Disk Driver for Windows NT/2000/XP/2003/Vista/7/8/8.1/10), extract the file, and save the extracted folder on the root of the same NTFS partition.
  4. Add a grub menu entry to boot from the Windows ISO file using wimboot method. this is an example:
menuentry "Win-iso wimboot" --class windows11 {
insmod part_msdos
insmod ntfs
set root='hd0,msdos3'
loopback loop /Win11.ISO
linux16 /wimboot
initrd16 \
newc:bcd:(loop)/boot/bcd \
newc:boot.sdi:(loop)/boot/boot.sdi \
newc:boot.wim:(loop)/sources/boot.wim
boot
}
  1. Reboot with Windows ISO. Select "Repair your Computer" (don't select install now), select "Troubleshoot," and select "Command Prompt." enter image description here

enter image description here

In the Windows CMD, write notepad. From the notepad window, select open or press ctrl+O. Use the explorer window to navigate to the ImDisk folder, right-click on the imdisk.inf file, and select install. you can show all the files when you select "all files" from the files or types tab.

enter image description here

  1. Use the same Explorer window to navigate to the Windows ISO file, right-click on it, and select "mount by ImDisk as virtual disk."

enter image description here

enter image description here

  1. Use the same Explorer window to navigate to the mounted ISO on a virtual CD/DVD, right-click on setup.exe, and select "open as administrator."

enter image description here

enter image description here

  1. Install Windows in the normal state. if the setup.exe failed, use \sources\setupprep.exe instead.

INSTALL WINDOWS DIRECTLY FROM AN ISO FILE USING WIMBOOT (MBR\UEFI + GRUB2\GRUB4DOS)

Talaat Etman
  • 1,340