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,858 times
-1
-
1Without 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
-
2Dead 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 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,352