Workaround for 0x80300024 Error In Windows 10/11 SetupDuring the installation of Windows 10 or Windows 11, on the partition creation and formatting page, you may encounter error 0x80300024. This error occurs on hardware configurations with multiple hard drives or SSDs. It is caused by inability of Windows Setup to correctly recognize which internal storage device is bootable. But there is a workaround for error 0x80300024: by manually transferring the bootloader, BCD registry hive and bootable ramdisk to internal bootable storage device and booting from that device, we can hint Windows Setup which of the multiple internal storage devices is bootable. Windows installation will then proceed as usual.
1. Symptoms of the problemDuring the installation of Windows 10 or Windows 11 to your computer the following error occurs: We coundn't install Windows in the location you chose. Please check your media drive. Here's more info about what happened: 0x80300024. 2. Cause of this problemFor hardware configurations with multiple internal storage devices (hard drives or SSDs), Windows Setup must determine which one of these storage devices is set as bootable in firmware (BIOS or UEFI) settings. Then Windows Setup will install its bootloader together with configuration file (BCD hive) to the separate partition on that storage device. Error 0x80300024 occurs when Windows Setup is unable to determine which internal storage device is bootable or when Windows Setup, for some reason, misdetects bootable storage device. 3. Solution in a nutshell
4. Step by step guide for UEFI boot method1) Press Shift+F10 to open console window 2) Run diskpart command. In diskpart context, run list disk command. 3) Determine target storage device you want to install Windows to (if there are multiple storage devices listed here, distinguish them by size). Note its number. 4) Run select disk N command where N is a disk number noted on the step 3. 5) Make sure that target disk has GPT layout. You must save your files from target disk before entering these commands, otherwise you will lose your data! Commands to forcibly change disk layout are: clean, then convert gpt. If you are absolutely sure that target disk already has GPT layout (not MBR), then you may skip this step. 6) Run create partition efi size=768 command in diskpart context. It will create unformatted EFI System Partition. Depending on size of bootable ramdisk (\sources\boot.wim) on Windows Setup media, you may choose smaller size of this partition (down to 512 MB if necessary), but generally few extra megabytes won't hurt and it's better to be safe than sorry. 7) Format newly created partition to FAT32 filesystem and assign drive letter S: to it: format fs=fat32 quick, then assign letter=s. 8) Run list vol command in diskpart context to determine drive letter for Windows Setup media (C: in this example). Distinguish Windows Setup media from the rest of volumes by size. Drive letter may be arbitrary, make corrections down to the end of this section if drive letter is not C: in your case. 9) Run exit command to exit diskpart. 10) Install Windows UEFI loader and its BCD hive to the EFI System Partition
(copy from Windows Setup media). To do this, run the following commands: 11) Copy boot ramdisk from Windows Setup media to the EFI System Partition: 12) Finally, run wpeutil reboot command to reboot. During reboot, press boot menu key (as appropriate for your laptop or motherboard) and choose to boot from internal HDD/SSD in UEFI mode. 13) After reboot, on the first page of Windows Setup, before clicking Next,
press Shift+F10 to open console window and enter the following commands
(otherwise Windows Setup may run out of free space in the EFI System Partition): 14) Make sure that USB thumbdrive with Windows Setup is plugged in to the USB port. Continue Windows Setup as usually. 15) When Windows Setup completes, to remove stale boot entry from the boot menu,
open elevated command prompt (press Win+X, choose "Windows PowerShell (Admin)",
from there run start cmd command) and
enter the following commands: 5. Step by step guide for CSM/BIOS boot method1) Press Shift+F10 to open console window 2) Run diskpart command. In diskpart context, run list disk command. 3) Determine target storage device you want to install Windows to (if there are multiple storage devices listed here, distinguish them by size). Note its number. 4) Run select disk N command where N is a disk number noted on the step 3. 5) Make sure that target disk has MBR layout. You must save your files from target disk before entering these commands, otherwise you will lose your data! Commands to forcibly change disk layout are: clean, then convert mbr. If you are absolutely sure that target disk already has MBR layout (not GPT), then you may skip this step. 6) Run create partition primary size=768 command in diskpart context. It will create unformatted System Reserved Partition. Depending on size of bootable ramdisk (\sources\boot.wim) on Windows Setup media, you may choose smaller size of this partition (down to 512 MB if necessary), but generally few extra megabytes won't hurt and it's better to be safe than sorry. 7) Format newly created partition to NTFS filesystem and assign drive letter S: to it: format fs=ntfs quick, then assign letter=s. 8) Mark newly created partition as active/bootable in the MBR: run active command in diskpart context. 9) Run list vol command in diskpart context to determine drive letter for Windows Setup media (D: in this example). Distinguish Windows Setup media from the rest of volumes by size. Drive letter may be arbitrary, make corrections down to the step 14 of this section if drive letter is not D: in your case. 10) Run exit command to exit diskpart. 11) Install Windows BIOS loader and its BCD hive to the System Reserved Partition
(copy from Windows Setup media). To do this, run the following commands: 12) Write NTFS volume boot record to the System Reserved Partition: 13) Copy boot ramdisk from Windows Setup media to the System Reserved Partition: 14) Finally, run wpeutil reboot command to reboot. During reboot, press boot menu key (as appropriate for your laptop or motherboard) and choose to boot from internal HDD/SSD in CSM/BIOS mode. 15) After reboot, on the first page of Windows Setup, before clicking Next,
press Shift+F10 to open console window and enter the following commands
(otherwise Windows Setup may run out of free space in the System Reserved Partition): 16) Make sure that USB thumbdrive with Windows Setup is plugged in to the USB port. Continue Windows Setup as usually. 17) When Windows Setup completes, to remove stale boot entry from the boot menu,
open elevated command prompt (press Win+X, choose "Windows PowerShell (Admin)",
from there run start cmd command) and
enter the following commands: |
|||||
|