-1

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

  • 1
    Without a USB port, you cannot install windows alongside Linux. You have to have a Windows bootable USB. Another option could be a Virtual Machine to install Windows inside Linux. Use the VirtualBox or GNOME Boxes app to create a Windows virtual machine and use it inside Linux. – nikrishttam Apr 15 '20 at 11:28
  • My machine ist to Week to have a virtual machine – Marcel Davis Apr 15 '20 at 11:29
  • Isnt it possible to create a Partition with an unzipped ISO File , and Boot from it ? – Marcel Davis Apr 15 '20 at 11:31
  • You can do that on windows using Wubi (Windows-based Ubuntu Installer) software. So, search for any Linux-based Windows Installer if there is any. But I think it would be risky as it might break any partition. – nikrishttam Apr 15 '20 at 11:41
  • What kind of PC do you have and how did you install Ubuntu on the machine? – Béné Apr 15 '20 at 11:48
  • Well i installed Ubuntu via USB , but now the USB ports are all. Dead. – Marcel Davis Apr 15 '20 at 11:56
  • 2
    Dead USB ports do show up in google, might be easier to try to fix them first, unless it is a hardware problem. Seems like ubuntu is not seeing them more than they are broken. – crip659 Apr 15 '20 at 12:14
  • One could Work , but there are No drivers for my Laptop for Linux I have a e200ha . The Internet says there are issiues with this when installing Linux https://wiki.debian.org/InstallingDebianOn/Asus/E200HA – Marcel Davis Apr 15 '20 at 13:05

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,352