Another easy way to install Windows in Linux is to start a VM. You have to pass the installtion target device block (for example /dev/sda) to VM and of course the windows installer.
Here a simple script you can change to fit your purpose:
#!/bin/bash
function run_vm {
qemu-system-x86_64 \
-name windows-os-install \
-m 4G \
-no-reboot \
-cpu host \
-smp 12,sockets=1,cores=12,threads=1 \
-boot d \
-drive file=/dev/sda,media=disk,driver=raw \
-drive file=/home/<user>/documents/isos/Win10_1909_x64.iso,media=cdrom &
}
run_vm
wait
After installation (windows attempts a reboot, but due to no-reboot the VM does not reboot), you may now reboot to the real drive and continue the installation there.
In the end, what did you do? – cdlvcdlv – 2018-08-07T19:21:17.633
@cdlvcdlv now this was 6 years ago, I don't remember what I did in the end. Probably just got a bigger USB. But the answer below does sound like a solution in case you don't have access to a larger USB stick. – Victor Bjelkholm – 2018-08-08T09:35:00.783
I supposed you'd say something like that but I had to try... I have Endless OS right now and I cannot use apt commands. I tried several USB boot makers but my W7 DVD won't boot on UEFI when installed on USB (it stop with error about winload.efi and that). Well, thanks anyway. – cdlvcdlv – 2018-08-08T10:49:16.273