I have spent a couple hours this weekend to troubleshoot a partition creation issue during the Windows Server 2012 R2 installation. I was getting the infamous “We couldn’t create a new partition or locate an existing one. Fore more information, see the Setup log files” error message.
I have tried all the DISKPART recommendations on the following TechNet blogs:
In my case, the issue was related to the boot order or sequence in the BIOS. I was trying to install OS on to an SSD drive. It was the first boot device configured in the BIOS. Once I change the SSD drive to the 2nd place, everything start working!