We Couldn’t Create A New Partition Or Locate An Existing One, see the Setup log files.

When you get the message “We Couldn’t Create A New Partition Or Locate An Existing One, see the Setup log files.”

At the Windows setup window Press Shift + F10 to open CMD

DISKPART
list disk
select disk 1 // select the disk that you want to format and install windows on it
clean // delete all partition from selected disk
create partition primary size=5000 // create a small partition. this partition will become our installation drive
format fs=ntfs quick // format partition
assign // assign drive letter
active // mark partition as active
EXIT


CD D: // change directory to the USB flash drive (ie cd d:)
xcopy d: c:/e /h /k // copy all the windows installation files from USB drive to C:

Now, remote the installation USB and reboot your computer. It will boot from the partition we created earlier and start the installation from there.

 

https://support.microsoft.com/en-us/help/300415/a-description-of-the-diskpart-command-line-utility