so i'm in a very specific situation...
yes, i've read the arch wiki. i've followed the steps from the "linux before windows" category and it's all good. the only problem is that i'm running my linux from an external SSD (this laptop has internal eMMC storage, which is dead and is not repaceable). when i direct the windows installer to the partitions i've made it says: "windows cannot be installed on this disk. setup does not support configuration of or installation to disks connected through a USB or IEEE 1394 port", which makes sense since i'm trying to install this to an external SSD
now, i've read that you can make a win2go installer with rufus... but this is not available on linux.
is there a way to create win2go installers from arch linux? modify the windows ISO so i can override the external storage disk warning? any ideas?
sorry to bother about windows in a linux sub, idk where else to ask. i need windows 10 to run a program that does not run on wine
edit: managed to do it! here's the step-by-step instructionsin case someone else needs to solve this very specific problem:
- create windows partitions from the arch linux installation USB or any other linux ISO (plus a small 10gb ntfs partition)
- inside linux, extract the windows ISO and find the install.wim file in the sources folder. put this file inside the 10gb ntfs partition
- boot into the windows setup USB. open command prompt and use DISM.exe to write the install.wim file onto the disk. example command:
dism /Apply-Image /ImageFile:E:win10\sources\install.wim /Index:2 /ApplyDir:C:\
be sure to read the DISM documentation to customize the command to your needs before applying any changes. plus, use the diskpart command to learn the correct drive letters of your partitions to avoid overwriting a wrong partition:
diskpart
list volumes
4. with diskpart, assign a drive letter to your EFI partition, a.k.a. the partition where your /boot folder is on linux. read documentation. example commands:
diskpart
select disk 0
select partition 1
assign letter=S
exit
5. use bcdboot to create the bootloader, again, read documentation to customize the command to your needs. in this case, use the drive letter you used with DISM. example command:
bcdboot C:/windows /s S: /f UEFI
6. reboot with wpeutil reboot, then follow the installation.
7. after you installed windows, reinstall grub with the arch installation USB (or whatever linux you use) and remember to use os-prober so windows appears in your grub menu. reorder your boot options in your UEFI so grub stays first.
done!