Why this happens
This problem is commonly caused by:
The USB installer interfering with how Setup detects or prepares the drive
Existing partitions or formatting conflicts on the target disk
The installation drive not being prioritized correctly in boot order
BIOS/UEFI storage settings (like RAID/AHCI) affecting detection
A drive previously used with another operating system and not initialized cleanly for Windows
How to fix it
Disconnect extra drives and USB devices
Leave only what’s necessary for installation:
Keep connected only the drive where Windows will be installed
Unplug other internal/external drives
Remove extra USB devices (hubs, receivers, secondary USB sticks)
Then restart the installation process.
Clean the drive using Command Prompt (erases data)
Warning: This deletes everything on the selected drive. Back up files first.
At the “Where do you want to install Windows?” screen, press Shift + F10 to open Command Prompt.
Run these commands:
diskpart
list disk
select disk X (replace X with the correct disk number)
clean
exit
Close Command Prompt, click Refresh, select the unallocated space, and try installing again. Windows should now be able to create the needed partitions automatically.
Rebuild the installer USB using Microsoft’s tool
A damaged or outdated installer can trigger this error. Create a new bootable USB using Microsoft’s latest installation tool for Windows 10 or Windows 11.
Use a USB drive of 8 GB or larger and recreate the installer from a clean download.
Try a USB 2.0 port instead of USB 3.0
If your PC has USB 2.0 ports available, use one for the installer. This can reduce driver-related issues during Setup and help Windows detect the drive correctly.