sodcalculator

10 Tech How-To

Fix Installation Error 0x80300024 in Windows

Guide 10-52581 · Updated · Step by step

Installation error 0x80300024 stops Windows Setup before files are copied, usually because the target disk uses the wrong partition style or has leftover boot files. The fix is to clean the disk and convert it to GPT (or, less commonly, MBR) before retrying the installation.

What This Error Means

Error 0x80300024 appears during a clean Windows installation, typically when you select a partition on the setup screen. Windows Setup checks the disk’s partition table and boot configuration before writing any files. If it finds an MBR (Master Boot Record) disk when it expects GPT (GUID Partition Table), or if the partition you chose is not the correct type, it aborts with this code. The error is not a hardware failure—it is a disk layout mismatch.

Why GPT vs. MBR Matters

Modern Windows (11 and most 64-bit installations of Windows 10) require UEFI firmware and a GPT disk. Older BIOS-based systems use MBR. When you boot the installer in UEFI mode, Setup will only install to GPT disks. If your disk is still MBR from a previous installation, you get 0x80300024. Conversely, if you boot in legacy BIOS mode, Setup expects MBR and may reject GPT. The disk’s partition style must match the firmware mode you booted from.

Before You Start: Back Up Your Data

The steps below erase everything on the target drive. Copy any files you need to another drive or external storage before proceeding. There is no safe way to convert a disk from MBR to GPT without deleting all partitions using the built-in tools. If you have important data, back it up now—do not skip this step.

Fix 1: Delete All Partitions and Reinstall

This is the simplest fix if you are willing to lose everything on the disk.

  1. Boot from your Windows installation USB or DVD.
  2. On the “Which type of installation do you want?” screen, choose Custom: Install Windows only (advanced).
  3. You will see a list of partitions. Select each partition on the drive you want to install to and click Delete. Repeat until the drive shows as Unallocated Space.
  4. Select the unallocated space and click Next. Windows will automatically create the necessary partitions and begin installation.

If the disk was MBR and your system is UEFI, deleting all partitions and letting Setup recreate them will convert it to GPT automatically. This resolves the error in most cases.

Fix 2: Use DiskPart to Clean the Disk

If the first fix does not work, or if Setup still complains, use DiskPart from the command line to clean the disk completely.

  1. On the setup screen, press Shift+F10 to open a Command Prompt.
  2. Type diskpart and press Enter.
  3. Type list disk and press Enter. Note the disk number of your target drive (e.g., Disk 0).
  4. Type select disk 0 (replace 0 with your disk number) and press Enter.
  5. Type clean and press Enter. This removes all partitions and the partition table.
  6. If you want to force GPT, type convert gpt and press Enter. For MBR, type convert mbr.
  7. Type exit and press Enter, then close the Command Prompt.
  8. Click Refresh on the partition selection screen, then select the unallocated space and click Next.

This method gives you explicit control over the partition style and is more thorough than deleting partitions in the GUI.

Fix 3: Check Boot Mode and Enable UEFI

Sometimes the disk is fine but the installer booted in the wrong mode. Restart your PC and enter the BIOS/UEFI setup (usually by pressing Del, F2, F10, or Esc during startup). Look for a setting called Boot Mode, UEFI/Legacy, or CSM (Compatibility Support Module).

  • If you want to install to a GPT disk, set boot mode to UEFI (disable CSM).
  • If you want to install to an MBR disk, set boot mode to Legacy or CSM.
  • Save changes and restart, then boot from the installation media again.

Make sure your installation USB is formatted as FAT32 for UEFI boot. If you created the USB with a tool that uses NTFS, UEFI may not recognize it. Recreate the USB using Microsoft’s Media Creation Tool or Rufus with GPT partition scheme for UEFI.

Fix 4: Disconnect Other Drives

If you have multiple hard drives connected, Windows Setup can get confused about which disk is the system disk. Disconnect all drives except the one you want to install to, then retry the installation. This is a common cause of 0x80300024 when a secondary drive has an old Windows installation or a recovery partition that interferes with the boot configuration.

What to Do If the Error Persists

If you have tried all the above and still get the error, check the following:

  • Ensure your installation media is not corrupted. Recreate it with the official Media Creation Tool.
  • Try a different USB port (preferably a USB 2.0 port on the back of the PC).
  • Update your motherboard BIOS/UEFI firmware to the latest version.
  • If the disk is an SSD, check if it requires a firmware update from the manufacturer.
  • Run a memory test (Windows Memory Diagnostic) to rule out RAM issues that could cause setup failures.

In rare cases, the disk itself may be failing. Use the manufacturer’s diagnostic tool or try a different drive to isolate the problem.

Frequently Asked Questions

Will this error lose my data?

Yes, the fixes above erase the entire target disk. You must back up any important files before starting. If you have not backed up, stop and do that now.

Can I convert MBR to GPT without losing data?

Windows includes a tool called MBR2GPT that can convert a disk without deleting data, but it must be run from an existing Windows installation (not from Setup). If you can boot into Windows, you can try: open Command Prompt as administrator and run mbr2gpt /convert. This works on Windows 10 version 1703 and later. However, if you are already stuck at the installation screen, you cannot run it.

Is this error the same as 0x80300024 on a USB drive?

Yes, the same error can occur when installing to an external USB drive. The same fixes apply: clean the drive and ensure the partition style matches the boot mode.

Why does Windows Setup not offer to convert the disk automatically?

Windows Setup only converts a disk automatically when you delete all partitions and select unallocated space. If you select an existing partition, it may not convert. That is why the fix requires deleting all partitions or using DiskPart’s clean command.

Should I use GPT or MBR for my new installation?

For any modern PC with UEFI firmware (most computers from 2012 onward), use GPT. It supports larger drives (over 2 TB) and is required for Windows 11. Use MBR only if you have an older BIOS-based system or need to dual-boot with an OS that requires MBR.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →