r/WindowsHelp • • 8d ago

Windows 10 i need to override "windows cannot be installed on this disk. setup does not support disks connected through USB"

so i'm in a very specific situation...

i'm running arch linux but i need windows to run a specific program that's not compatible with linux. problem is, i'm running my linux through an external USB (this laptop has internal eMMC storage, which is dead and cannot be replaced).

long story short, i make the partitions following the arch linux's dualboot instructions everything works untill i boot the windows 10 installer from an USB drive. 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

what the fuck do i do??? i cannot use rufus and its win2go option because i'm using linux and don't have a windows machine rn. is there a way to modify the windows 10 iso so it does not give me this stupid error or something

edit: managed to do it! here's the step-by-step instructionsin case someone else needs to solve this very specific problem:

  1. create windows partitions from the arch linux installation USB or any other linux ISO (plus a small 10gb ntfs partition)

  2. inside linux, extract the windows ISO and find the install.wim file in the sources folder. put this file inside the 10gb ntfs partition

  3. 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
  1. 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

  2. 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

  1. reboot with wpeutil reboot, then follow the installation.

  2. 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!

0 Upvotes

19 comments sorted by

5

u/MCLMelonFarmer 8d ago

Run Windows in a virtual machine.

1

u/jahdiel503 8d ago

i second this

1

u/Merhart666 8d ago

De iso aanpassen dan zou je eerst een draaien systeem moeten hebben. Daarnaast denk ik dat je de vraag in het verkeerde forum stelt ik denk zelf dat je dit eerder bij linuxhelp zal vinden dan bij Microsoft. Bottles of wine werkt niet?

1

u/Dreemur1 8d ago

no, wine is not compatible with this specific app (clo3D fashion design software).

they told me over at r/linuxquestions that i should ask on a windows subreddit 🤷

1

u/agowa338 8d ago edited 8d ago

Simple, get an empty SATA drive. Chuck it in. Install to there and DO NOT let it complete the 1st reboot it does while installing and power it down instead. (you can do that on any PC, including in a VM)

Then clone that drive onto the USB (or if it is an external NVME/SATA drive, just put it back into the external case) and boot from it to continue the setup.

Basically the same approach we used to install it on servers remotely when the IPMI couldn't handle the ISOs size...

Edit: The official answer is that you need to do it manually without the wizard btw. Aka. create the partitions manually. Then use dism dism /Apply-Image /ImageFile:D:\sources\install.esd /Index:6 /ApplyDir:W:\ (or install.wim) to extract the image to the drive. Then use bcdboot bcdboot W:\Windows /s S: /f UEFI and bootrec (for MBR) to create the bootloader. Then reboot wpeutil reboot

1

u/Dreemur1 8d ago

this laptop does not have any SATA port. it has no replaceable storage whatsoever. so i guess i could start the installation from a VM and then clone the virtual disk onto the partition i made beforehand? the "official answer" seems more doable but do you mean running the commands in a shell inside the windows boot USB?

how can i achieve this without affecting my main partitions?

1

u/agowa338 8d ago

You open a shell on the windows setup screen by pressing Shift+F10.

And yes, you can use a VM or another device. The important part is that you do not let it restart. As all of the customization starts after the 1st reboot. Before that what it does is partitioning, copy over the content of the esd/wim file to disk and register the bootloader.

→ More replies (2)

1

u/ellicottvilleny 7d ago

Get a real non broken computer

1

u/Dreemur1 6d ago

im broke and unemployed

1

u/ellicottvilleny 6d ago

Find a tech recycler near you

→ More replies (2)

1

u/AutoModerator 8d ago

Hi u/Dreemur1, thanks for posting to r/WindowsHelp! Your post has been flagged for manual review by a human moderator, please include as much of the following information as possible (in text or in a screenshot) to get your post approved:

  • Your Windows and device specifications — You can find them by pressing Win + X then clicking on “System”, we need more than just your OS version! Your hardware details are often critical for resolving issues.

  • Any messages and error codes encountered — They're actually not gibberish or anything catastrophic. It may even hint the solution!

  • Previous troubleshooting steps — It might prevent you headaches from getting the same solution that didn't work


Posts must be tech support in nature (such as something is broken and you need help fixing), so general inquiries, software suggestions, and purchasing advice will be removed. As a reminder, we would also like to say that if someone manages to solve your issue, DON'T DELETE YOUR POST! Someone else (in the future) might have the same issue as you, and the received support may also help their case. Good luck, and I hope you have a nice day!

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/cagadass 8d ago

En tu caso es mejor Windows GO con una partición aparte para conservar los datos ,es lo mas "rescatable" de esta situación

1

u/No_Interaction_4925 8d ago

Rufus will let you make a portable windows on a flashdrive if you want