The “selected partition error 0x8004242d” appears during Windows installation when the setup program cannot use the partition you chose, usually because of a mismatch between the partition table type (MBR vs. GPT) and the firmware mode (BIOS vs. UEFI). The fix is to either convert the disk to the correct partition style or delete and recreate the partition so it matches your system’s boot mode.
What This Error Means
Error 0x8004242d is a Windows Setup error that occurs in the “Where do you want to install Windows?” screen. When you select a partition and click Next, setup validates it against several conditions: the partition must have enough space, must be formatted correctly, and must match the disk’s partition table style. The error message usually reads “We couldn’t install Windows in the location you selected. Please check your media drive.” The underlying cause is almost always that the disk uses a partition table (MBR or GPT) that is incompatible with the firmware mode (BIOS/CSM or UEFI) you booted the installer with.
Why MBR and GPT Matter
Every bootable hard drive uses one of two partition table standards:
- MBR (Master Boot Record) – the older standard, works with both BIOS and UEFI (in legacy mode), supports disks up to 2 TB, and allows a maximum of four primary partitions.
- GPT (GUID Partition Table) – the modern standard, required for UEFI boot, supports disks larger than 2 TB, and allows up to 128 partitions.
Windows Setup refuses to install to a GPT disk when booted in BIOS mode, and it refuses to install to an MBR disk when booted in UEFI mode (unless the disk has a special hybrid layout). This mismatch is the most common trigger for error 0x8004242d. The error can also appear if the partition you selected is a system or recovery partition, or if the disk has an unrecognized or corrupted partition table.
How to Check Your Boot Mode and Partition Style
Before attempting a fix, you need to know which firmware mode your computer uses and which partition style your disk currently has.
- Boot from your Windows installation USB or DVD.
- On the first screen, press Shift+F10 to open a Command Prompt.
- Type
diskpartand press Enter. - Type
list diskand press Enter. Look at the “Gpt” column – if it has an asterisk (*), the disk is GPT; if not, it is MBR. - To check the firmware 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.” If it says UEFI, you need GPT; if it says Legacy/BIOS/CSM, you need MBR.
Fix 1: Convert the Disk to the Correct Partition Style
If your disk is GPT but you are booting in BIOS mode (or MBR but booting in UEFI mode), you can convert the disk without losing data – but only if the disk has no partitions yet, or if you are willing to delete all partitions. The conversion command is clean followed by convert gpt or convert mbr.
- In the Command Prompt (Shift+F10), type
diskpartand press Enter. - Type
list diskto identify your target disk number (e.g., Disk 0). - Type
select disk 0(replace 0 with your disk number). - Type
clean– this deletes ALL partitions and data on the disk. - Type
convert gpt(if you are booting in UEFI) orconvert mbr(if booting in BIOS). - Type
exitto close diskpart, then close the Command Prompt and refresh the partition list in Windows Setup.
After conversion, you will see one unallocated space. Select it and click Next – Windows will create the necessary partitions automatically.
Fix 2: Delete and Recreate the Partition
If the disk is already the correct type but the partition itself is problematic (e.g., it is a system partition, or it has an invalid file system), you can delete just that partition and let Windows create a fresh one.
- In the Windows Setup partition screen, select the partition that triggers the error.
- Click Delete – this removes the partition but leaves the disk space unallocated.
- Select the unallocated space and click New to create a new partition, or simply select the unallocated space and click Next (Windows will create the needed partitions automatically).
Be aware that deleting a partition erases all data on it. If you need to keep files, back them up before proceeding.
Fix 3: Switch the Firmware Boot Mode
Instead of converting the disk, you can change the BIOS/UEFI setting to match the disk’s current partition style. For example, if your disk is MBR and you are in UEFI mode, switch to Legacy/CSM mode. If your disk is GPT and you are in BIOS mode, switch to UEFI mode. This is often easier if you are not comfortable with diskpart.
- Restart your PC and enter BIOS/UEFI setup.
- Find the boot mode setting – it may be under “Boot,” “Startup,” or “Advanced.”
- Change it to UEFI (if disk is GPT) or Legacy/CSM (if disk is MBR).
- Save changes and exit. Boot again from the installation media and try the installation.
Note that some older systems only support BIOS, and some newer systems only support UEFI (no CSM option). In those cases, converting the disk is the only option.
Common Mistakes and Misconceptions
- Thinking the error is about disk space – 0x8004242d is not a space error; it is a partition-style or partition-type error. If you see it, check the GPT/MBR match first.
- Using the wrong conversion command –
convert gptandconvert mbronly work on an empty disk. If the disk has partitions, you must runcleanfirst, which wipes everything. - Assuming all USB drives boot the same way – some installation media is created to boot only in UEFI or only in BIOS. If your media is UEFI-only, you cannot boot it in BIOS mode. Recreate the media using a tool that supports both, or use the Windows Media Creation Tool which creates dual-boot media.
- Ignoring the “Gpt” column – diskpart’s
list diskshows an asterisk under “Gpt” for GPT disks. Many users misread this and assume the asterisk means something else.
Frequently Asked Questions
Will converting the disk erase my files? Yes, the clean command deletes all partitions and data. There is no built-in way to convert a disk with data from MBR to GPT without third-party tools. Back up your data before attempting any conversion.
Can I install Windows on a GPT disk in BIOS mode? No, Windows Setup will block it with error 0x8004242d. You must either convert the disk to MBR or switch to UEFI mode. Some older 32-bit Windows versions had limited GPT support, but modern 64-bit versions require UEFI for GPT boot.
What if I have multiple disks and the error is on a secondary drive? The error only applies to the disk where you are trying to install Windows. If you have a secondary data drive that is GPT but you are installing to an MBR system disk, that is fine – the error is about the target disk, not the presence of other disks.
Does this error happen on a fresh install or also on an upgrade? It most commonly appears on a clean install. During an upgrade, Windows Setup usually handles the partition conversion automatically. If you see it during an upgrade, it is likely because the existing system partition is corrupted or the disk has an unusual layout.
Is there a way to fix this without losing data? If you have a second computer, you can use a third-party partition tool to convert MBR to GPT (or vice versa) without data loss. However, this is not a built-in Windows feature and carries some risk. Always back up your data before using such tools.
Why does Windows Setup create multiple partitions automatically? Windows creates a system partition (EFI or MSR), a recovery partition, and the main OS partition. If you select an existing partition that is not the primary OS partition, Windows may refuse to install there. Deleting all partitions and letting Windows create fresh ones is the most reliable approach.
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
- Custom Alphanumeric Passcode iPhone: How to Set
- HomePod Software Update: How to Install
- How to Shuffle Photos in Slideshow on iPhone
- Quick Look Not Working on Mac? Fixes That Work
- How to See Deleted WhatsApp Messages on iPhone
- cat, head, or tail: Which Linux Command to Use