Contents
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 …”
Symptom
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.
Some operating systems such as versions of Linux 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:
Solution
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
- Boot the computer system from the Windows Installer media, and select “Repair your Computer”.
- Next, select the Troubleshoot option
- 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.
Command | Notes |
---|---|
DISKPART |
|
LIST DISK |
|
SELECT DISK x |
|
CLEAN | This will erase the disk completely including partitions and the boot sector including MBR records |
CREATE PARTITION PRIMARY | Technically we do not have to do the next commands, but we should test the functionality of the OS disk and the Windows drivers |
SELECT PARTITION 1 | |
ACTIVE | |
FORMAT QUICK FS=NTFS | |
ASSIGN | |
EXIT | |
EXIT |
If this procedure competes correctly, the Windows Installer should complete correctly.
Step by Step with Screen Shots
Exit the Windows installer environment by clicking on the exit X button (top right)
Return to the beginning of the Windows Installation process. Click on the “Repair your computer” link.
Select the Troubleshoot option.
Select the “Command Prompt” option
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:
1 2 3 4 5 6 7 8 9 10 11 12 13 | CLEAN CREATE PARTITION PRIMARY SELECT PARTITION 1 ACTIVE FORMAT QUICK FS=NTFS ASSIGN EXIT |
Select Turn off your PC and then restart the installation process.
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?
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.