Hardware⏱️ 3 min read📅 2026-06-19

How to Fix: diskpart: creating primary partion error

DiskPart error creating primary partition on Windows 10 installation

Quick Answer: Check the disk's controller is enabled in the computer's BIOS menu and try booting in UEFI mode to resolve the cyclic redundancy check error.

The error 'diskpart: creating primary partition error' affects users who are attempting to perform a clean installation of Windows 10 from a bootable flash drive. This issue can be frustrating, as it prevents users from successfully setting up their operating system.

This problem occurs when the diskpart command fails to create a primary partition due to hardware or software issues, leading to an inability to access the drive.

🔍 Why This Happens

  • The first main reason for this error is that the disk's controller may not be enabled in the computer's BIOS menu. This can cause the system to fail when attempting to create a primary partition.
  • Another possible cause of this issue is a data error (cyclic redundancy check), which can occur due to hardware failure or corruption on the disk.

🔧 Proven Troubleshooting Steps

Enabling the Disk Controller in BIOS

  1. Step 1: Restart the computer and enter the BIOS setup by pressing the corresponding key (usually F2, F12, or Del).
  2. Step 2: Navigate to the Advanced or Boot tab and ensure that the disk controller is enabled. Save changes and exit the BIOS setup.
  3. Step 3: After enabling the disk controller, attempt to create a primary partition using diskpart again.

Checking for Data Errors and Formatting the Disk

  1. Step 1: Run a diagnostic test on the disk to identify any data errors or corruption. If an error is found, use the diskpart command 'check disk' to repair it.
  2. Step 2: After repairing the data error, format the disk using the 'diskpart' command 'format fs=ntfs quick'.
  3. Step 3: Assign a drive letter to the newly formatted partition and attempt to create a primary partition again.

🎯 Final Words

To resolve the 'diskpart: creating primary partition error,' it is essential to identify and address any underlying hardware or software issues. By enabling the disk controller in BIOS, checking for data errors, and formatting the disk, users can successfully set up their Windows 10 installation.

Did this fix your problem?

If not, try searching for specific error codes.

🔍 Search Error Database

❓ Frequently Asked Questions