Windows Can’t Be Installed On Drive…

How to fix the "Windows can’t be installed on drive..." error

When installing Windows onto a new system and the target drive was previously used for another purpose or operating environment, the Windows Installer sometimes fails with the message “Windows can't be installed on drive …”


When the Windows Installer attempts to install on a computer, and at the step where the installer attempts to partition the OS drive, the installer displays the above error message error and cannot continue.

KB5 - 1 Error Message

Some operating systems such as versions of and SunOS create a partition where Windows cannot read and remove the existing partition. Even when using the Windows Installer and deleting the partition, the disk drive is left in a state unusable by the Windows Installer. The installer will produce the following message:


We couldn't create a new partition or locate an existing one. For more information, see the Setup log files.

KB5 - 2 Error Message 2


To resolve this condition and put the OS drive into a clean state, the system will have to be booted into a Windows PE Environment. There is a Windows PE environment included with the Window Installation system.

Boot into Windows PE from Windows Installer

  1. Boot the computer system from the Windows Installer media, and select “Repair your Computer”.
  2. Next, select the option
  3. Then, select the Command Prompt

You are now booted into a tiny version of Windows. From this environment, we can then clean and process the drive.

Clean and partition the drive

From the command prompt, type the following sequence of commands.

DISKPARTThis will start the disk management command line utility. This is the command line equivalent to Windows Disk Management.
LIST DISKThis will show a list of disks available. If you have a USB drive plugged in, it will likely include this in the list. Select the disk to install Windows.
SELECT DISK xIf you type LIST DISK again, an asterisk will show the selected drive. The next disk commands will be performed on this selected disk Be careful to select the correct disk
CLEANThis will erase the disk completely including partitions and the boot sector including MBR records
CREATE PARTITION PRIMARYTechnically we do not have to do the next commands, but we should test the functionality of the OS disk and the Windows drivers

If this procedure competes correctly, the Windows Installer should complete it correctly.

KB5 - 3 Installs correctly

Step by Step

Exit the Windows installer environment by clicking on the exit X button (top right)

KB5 - 4 Blow 1

Return to the beginning of the Windows Installation process. Click on the “Repair your computer” link.

KB5 - 5 Blow 2

Select the option.

KB5 - 6 Blow 3

Select the “Command Prompt” option

KB5 - 8 Blow 5

Select the correct disk to clean.

In this example, the 29GB disk is the Windows Installation USB drive.
The LIST DISK command now shows Disk 16 being managed.

Type the following DISKPART commands:

KB5 - 9 Blow 7

Select Turn off your PC and then restart the installation process.

KB5 - 10 Blow 8

2 thoughts on “Windows Can’t Be Installed On Drive…”

  1. Hi
    I have problem ..when I enter create partition primary it says diskpart has encountered an error.. Data error cyclic redudancy check..any solution please?

  2. Teo, that sounds like you’re having a hardware problem. You should run diagnostics to verify the hardware isn’t failing. You may have a problem with your registry, or even misconfiguration of the app and files. There’s so many possible causes it’s impossible to suggest a solution. Sometimes the answer is to format the drive. I would start with chkdsk.

Leave a Reply

Your email address will not be published. Required fields are marked *