---
title: "Solution: Windows Installation Fails With Error Code 0x80300024"
description: "Error 0x80300024 usually appears during Windows Setup on the screen where you choose the drive for installation. In most cases, it’s caused by drive, partition, or controller configuration issues. The steps below typically resolve it quickly."
url: https://help.activekeys.com/en/articles/49-solution-windows-installation-fails-with-error-code-0x80300024
collection: "Windows Troubleshooting"
updated: 2026-02-12
language: en
---

# Solution: Windows Installation Fails With Error Code 0x80300024

Error 0x80300024 usually appears during Windows Setup on the screen where you choose the drive for installation. In most cases, it’s caused by drive, partition, or controller configuration issues. The steps below typically resolve it quickly.

**🔍 Common reasons for 0x80300024**

This error is often triggered when:

-   Multiple drives or partitions are connected and Setup selects the wrong target
    
-   The chosen drive doesn’t have enough free space
    
-   The drive contains leftover data from a failed install or a formatting issue
    
-   The drive is connected through a secondary controller or a non-primary SATA port
    

**✅ How to fix it**

1.  Disconnect other drives (recommended first step)  
    Unplug any drives you don’t need for installation, including:
    

-   External USB drives
    
-   Extra internal HDDs/SSDs
    
-   Additional USB sticks
    

Leave only the drive where you want Windows installed, then restart Windows Setup.

2.  Clean the target drive using DiskPart (erases data)  
    💡 Warning: This permanently deletes all data on the selected drive.
    

At the Windows Setup screen, press **Shift + F10** to open Command Prompt.

Run these commands one at a time:

diskpart  
list disk  
select disk X (replace X with the correct disk number)  
clean  
exit

Close Command Prompt, click **Refresh** in the installer, then select the **unallocated space** and click **Next**.

3.  Check SATA port / controller settings (advanced)  
    If the issue continues:
    

Enter BIOS/UEFI (often **F2**, **DEL**, or **ESC** during startup)  
Ensure the drive is connected to the primary SATA port  
If applicable, try switching SATA mode **between AHCI and RAID** (only if you understand your current setup and it’s safe to change)  
Save changes, restart, and run Setup again
