Fix Windows Cannot Be Installed to Disk 0 Partition
In this article
Yes, you can fix the "Windows cannot be installed to this disk" error during setup by adjusting the disk partition style or clearing incompatible partitions. This issue usually occurs when installing Windows on a drive with the wrong partition scheme (MBR vs GPT), existing partitions that conflict with the installer, or when Secure Boot and UEFI/Legacy settings don’t match. Before starting, back up any important data on the target drive, as these steps will erase all partitions.
What You'll Need
- Windows installation USB or DVD
- Access to BIOS/UEFI settings (usually by pressing F2, F12, Delete, or Esc during boot)
- Administrator rights during installation (not required on the installer itself)
- Optional: A backup drive for personal files
Step-by-Step
- Insert the Windows installation media and boot from it. On most systems, press a key like F12, F10, or Esc during startup to open the boot menu, then select the USB or DVD drive.
- When the Windows Setup screen appears, select your language and click "Next." Then click "Install now."
- Enter your product key if prompted, or click "I don’t have a product key" to proceed without it (you can activate later).
- Choose the edition of Windows you want to install and accept the license terms.
- At the "Which type of installation do you want?" screen, select "Custom: Install Windows only (advanced)."
- You’ll now see the list of drives. If you get the error "Windows cannot be installed to this disk," click "Drive options (advanced)" below the drive list.
- In the Drive Options menu, select each partition on Disk 0 and click "Delete" until all partitions are removed. The entire disk should show as "Unallocated Space."
- With the full disk unallocated, click "Next." Windows will now create the correct partitions automatically based on your system’s firmware mode.
- If the error persists, restart the setup and enter BIOS/UEFI (typically by pressing Delete or F2 during boot). Check whether your system is set to UEFI or Legacy (CSM) mode.
- If Secure Boot is available, ensure it is enabled. UEFI systems require GPT partitioning, while Legacy BIOS systems use MBR.
- Exit BIOS and reboot into Windows Setup again. If you switched from Legacy to UEFI (or vice versa), delete all partitions again and retry installation.
- Alternatively, during setup, press Shift + F10 to open Command Prompt. Type
diskpartand press Enter. Then run:list disk– identify Disk 0select disk 0clean– removes all partitions and dataconvert gpt(for UEFI) orconvert mbr(for Legacy)- Exit Command Prompt and click "Refresh" in the installer.
- Now select the unallocated space and click "Next." Installation should proceed.
Common Mistakes
- Not matching the partition style (GPT vs MBR) with the firmware mode (UEFI vs Legacy). Installing in UEFI mode requires GPT; Legacy BIOS requires MBR.
- Deleting only some partitions instead of all—leftover system or recovery partitions can block installation.
- Forgetting to enable Secure Boot in UEFI mode, which can prevent GPT-based installation.
- Using an outdated Windows installer that doesn’t support GPT on UEFI systems (ensure media is created with the latest Media Creation Tool).
- Assuming the disk is faulty when the issue is purely configuration-based.
Tips
- Always check your firmware mode before starting. If you’re unsure, UEFI is standard on systems from the last 8+ years.
- Use the Windows Media Creation Tool to make your USB installer—this ensures compatibility with both MBR and GPT setups.
- If you’re building a new PC, set BIOS to UEFI mode and use GPT for faster boot and support for drives over 2TB.
- After running
cleanin diskpart, verify the disk shows no partitions before exiting. - On some laptops, you may need to disable Fast Boot or RAID Mode in BIOS and switch to AHCI for Windows to detect the drive.
Troubleshooting
If Windows still won’t install after cleaning the disk and matching firmware settings:
- Recheck BIOS: Confirm the boot mode (UEFI/Legacy) matches the partition style. Switching modes may require reformatting the installer USB using the correct partitioning.
- Try a different USB port or recreate the installation media—corrupted installers often cause disk errors.
- If the disk doesn’t appear at all, ensure it’s properly connected. For NVMe drives, verify they’re seated correctly in the M.2 slot.
- Run
bootrec /fixmbrandbootrec /fixbootfrom recovery Command Prompt if dual-booting or upgrading from an old OS. - On older systems with large drives (over 2TB), Legacy BIOS may not support MBR fully—consider reducing drive size or using UEFI if supported.
- If the drive is listed but grayed out, it may be locked or have read-only attributes. Use
diskpart, thenattributes disk clear readonlybefore cleaning.
Frequently Asked Questions
Can I install Windows without deleting all partitions?
Only if there’s enough unallocated space and the partition style matches your firmware. Otherwise, Windows Setup will block installation.
What’s the difference between MBR and GPT?
MBR supports up to 2TB drives and 4 primary partitions. GPT supports larger drives, more partitions, and is required for UEFI systems with Secure Boot.
Will cleaning the disk erase all data?
Yes. The clean command in diskpart removes all partitions and data permanently. Back up files first.
Do I need to convert to GPT?
Only if installing in UEFI mode. If your system uses Legacy BIOS, stick with MBR unless you change the boot mode.
Why does the drive show as read-only?
This can happen if the disk has system protection or was used in another system. Use diskpart to clear the readonly attribute.
Can I fix this without a Windows installer?
No. You need the installer to access diskpart or the setup interface. Third-party tools can help prepare the disk, but Windows Setup must still recognize it.