Windows 11 Upgrade Fails with Error 0x80070003 – 0x40008

Published by Ryan Tan - Updated on

Say you’ve left the Windows 11 Installation Assistant running on your Windows 10 PC, and right when it looks like it’s getting somewhere, it stops with “Setup has encountered a critical error” and the code “0x80070003 – 0x40008“, then undoes everything, even though PC Health Check says your PC can run Windows 11. This guide will show you what the code points to and how to fix the partition problem that’s usually behind it.

Also see: “Windows Could Not Complete The Installation” Windows 11/10

Windows 11 Upgrade Fails with Error 0x80070003 - 0x40008

Windows Setup probably can’t use the boot partition on your system disk

The first part of the code, 0x80070003, means “The system cannot find the path specified.” The second, 0x40008, is the step of Setup that failed, the one where it prepares its “Safe OS”.

In most cases where this error got fixed, the cause was the small boot partition near the start of the drive Windows is on, which Setup writes to during the upgrade.

The disk is most often GPT, but that partition isn’t marked as an EFI system partition. Many of these are old “System Reserved” partitions left over from an earlier install or from cloning the drive. The partition can also have a drive letter (like G:, S: or T:) when it shouldn’t. On other PCs, the system disk still uses the old MBR layout from the Legacy BIOS days, or the EFI partition is missing.

This isn’t one update’s bug. Reports go back to late 2024 and still come in, from in-place upgrades to a newer version of Windows 10 or 11 too. A passing PC Health Check doesn’t rule it out. SFC, DISM or freeing up disk space haven’t been shown to fix it.

Running setup.exe from a Windows 11 ISO can end with the same code, along with “Sorry, we’re having trouble determining if your PC can run Windows 11. Please close Setup and try again.” Windows Update can also fail with just 0x80070003 on an affected PC. If that’s your only error, Microsoft suggests the Windows Update troubleshooter, resetting the Windows Update components and clearing the update cache.

Related problem: “We couldn’t update the system reserved partition” in Windows 11

Check how your drive is set up first

Nothing here changes your PC. It just tells you which fix below you need.

  1. Right-click the Start button and select Disk Management.Open Disk Management via Win X Windows 11
  2. Find the disk Windows is on (the one with C:, usually Disk 0). On a normal PC, there’s a small partition of about 100 to 300 MB near its start, shown as “EFI System Partition“, with no drive letter. Don’t mix it up with the Recovery partitions next to it.EFI System Partition in Disk Management Windows 11
  3. Right-click that disk’s label on the left (for example, Disk 0), select Properties, and go to the Volumes tab. Check what it says next to “Partition style“.Disk Partition style GPT in Disk Properties Windows 11
  4. Optionally, press Win + R, type “msinfo32” and press Enter. In System Summary, the “BIOS Mode” line should say UEFI.BIOS Mode UEFI in System Information Windows 11

What your results mean:

  • GPT, but the small partition isn’t shown as “EFI System Partition”, or has a drive letter: see the next section.
  • GPT, but there’s no small boot partition at all: see “What if there’s no EFI partition at all?” below.
  • GPT, with a normal “EFI System Partition” and no letter: your layout is fine, so skip to the ISO and SetupDiag sections.
  • Master Boot Record (MBR): skip to the MBR2GPT section (if BIOS Mode says Legacy, you’ll switch it to UEFI after converting).

Remove the drive letter and mark the boot partition as EFI

Setup expects the boot partition to carry the EFI system partition type and no drive letter. If yours has the wrong type or a letter, removing the letter and setting the type with diskpart usually lets the upgrade go through.

Be warned: Changing a partition’s type can leave your PC unable to start, Microsoft says, so take your time picking the right one. Back up your important files first, and if your drive uses BitLocker, make sure you have the recovery key. If you’re not sure which partition is which, it’s better to get someone who knows to help you instead.

  1. Open Command Prompt as administrator.Command Prompt Run as Administrator
  2. Type the following commands one by one, and press Enter after each (if Windows isn’t on Disk 0, use its disk number instead of 0):
    diskpart
    list disk
    select disk 0
    list partition

    DiskPart list partition Windows 11

  3. Find the small boot partition and note its number. list partition doesn’t show the “System Reserved” name, so go by the size you saw in Disk Management.
    • If one is already listed as System, that’s the one. Don’t change a second one.
    • Otherwise, it’s the small Primary partition of that size.
    • Never pick one listed as Reserved (a different hidden partition), a Recovery one or your large Windows partition.
  4. If the boot partition has a drive letter, remove it (replace X with that letter):
    select volume X
    remove
  5. Select the boot partition, using your disk number again and replacing N with the partition number you noted:
    select disk 0
    select partition N
  6. Mark it as an EFI system partition and stop it from getting a drive letter:
    set id=c12a7328-f81f-11d2-ba4b-00a0c93ec93b override
    gpt attributes=0x8000000000000000

    Set EFI System Partition ID with DiskPart Windows 11

  7. Type “exit” to close diskpart and run the upgrade again.

What if there’s no EFI partition at all?

If the disk is GPT but has no small boot partition, you can make one by shrinking C: by 200 MB (Microsoft’s minimum for most drives). The same warning applies, so back up first.

  1. In an admin Command Prompt, type these one by one, pressing Enter after each:
    diskpart
    select volume C
    shrink desired=200
    create partition efi size=200
    format fs=fat32 quick
    assign letter=Y
    exit
  2. Copy the boot files to the new partition, then remove its temporary Y: letter:
    bcdboot C:\Windows /s Y: /f UEFI
    mountvol Y: /d

Convert an MBR drive to GPT with MBR2GPT

If your drive is MBR, Microsoft’s MBR2GPT tool can convert it to GPT without deleting your files.

Be warned: The conversion can’t be undone, and afterwards the PC only starts in UEFI mode, so make sure your PC supports UEFI first. Back up your files and suspend BitLocker if you use it. If you’re not sure about any of this, get someone who knows to help you.

  1. Open Command Prompt as administrator.
  2. Check whether the drive can be converted (it fails with more than three primary partitions; use your disk’s number if it isn’t 0):
    mbr2gpt /validate /disk:0 /allowFullOS
  3. If the validation passes, convert it:
    mbr2gpt /convert /disk:0 /allowFullOS
  4. Restart into your BIOS, switch the boot mode to UEFI (turn off CSM or Legacy support), and turn on Secure Boot and TPM 2.0 if they’re off (see Can’t find TPM 2.0 and Secure Boot options in BIOS if you can’t find them). Then try the upgrade again.

Linked issue: MBR2GPT “Cannot find OS partition(s) for disk 0” in Windows 11 or 10

Upgrade with the Windows 11 ISO instead

If your drive layout looks fine and you got the error from the Installation Assistant, run Setup straight from the Windows 11 ISO. No one has confirmed it fixes this exact code, but it skips the Installation Assistant, so it’s a quick way to rule that out. If the error came from the ISO already, go to SetupDiag below.

  1. Go to https://www.microsoft.com/software-download/windows11.
  2. Under “Download Windows 11 Disk Image (ISO) for x64 devices“, select “Windows 11 (multi-edition ISO for x64 devices)“, click Confirm, and follow the page to download it.Download Windows 11 Disk Image ISO for x64 devices
  3. Right-click the downloaded ISO file and select Mount.Mount Windows 11 ISO file
  4. Open the new virtual drive in File Explorer and double-click setup.exe.

Find out exactly what failed with SetupDiag

When none of the above fits, Microsoft’s SetupDiag tool reads Setup’s log files and reports why the upgrade failed.

  1. Download SetupDiag from Microsoft at https://go.microsoft.com/fwlink/?linkid=870142.
  2. Make a folder called C:\SetupDiag and move SetupDiag.exe into it.
  3. Open Command Prompt as administrator and run these two commands:
    cd C:\SetupDiag
    SetupDiag.exe /Output:C:\SetupDiag\Results.log

    Run SetupDiag in Command Prompt Windows 11If you run it without the /Output part, it may just show its help text.

  4. When it’s done, open Results.log in that folder with Notepad and look for the issue it found.

Clean install Windows 11 as a last resort

If the upgrade still fails, the last option is a clean install of Windows 11 from a USB drive. It wipes the drive, so back up everything first. To make the USB drive, see How to Burn Windows 11 ISO to USB, and if the install itself fails partway, see Windows 11 Clean Install Keeps Failing at 77%.

Reinstall Windows 11


Ryan Tan
Ryan Tan is a writer and editor at WindowsDigitals.com with a background in software engineering. He loves coding and playing with new tech, and Windows is what he uses most. Ryan is a problem solver at heart when it comes to PCs. He would rather find the real cause of an issue than settle for a quick workaround.