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.
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:
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.
|This will erase the disk completely including partitions and the boot sector including MBR records|
|Technically 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 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:
CREATE PARTITION PRIMARY
SELECT PARTITION 1
FORMAT QUICK FS=NTFS
Select Turn off your PC and then restart the installation process.