Hello i want grub to boot Windows . I have a Windows ISO in my Linux Filesystem . I have No USB Ports . Uefi bios
Asked
Active
Viewed 1,588 times
1 Answers
0
Boot with Windows ISO file from Grub
- Download the Windows ISO file and save it on the root of any
NTFSdata partition. - Download wimboot (Windows Imaging Format bootloader), extract the file, and copy the
wimbootfile to the root of the same NTFS partition. - 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.
- Add a grub menu entry to boot from the Windows ISO file using
wimbootmethod. 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 }
- Reboot with Windows ISO. Select "Repair your Computer" (don't select install now), select "Troubleshoot," and select "Command Prompt."

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.
- Use the same Explorer window to navigate to the Windows ISO file, right-click on it, and select "mount by ImDisk as virtual disk."
- 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."
- Install Windows in the normal state. if the setup.exe failed, use
\sources\setupprep.exeinstead.
INSTALL WINDOWS DIRECTLY FROM AN ISO FILE USING WIMBOOT (MBR\UEFI + GRUB2\GRUB4DOS)
Talaat Etman
- 1,340





