Fix WinRE Missing After a Disk Clone to a Larger Drive on Windows 11
🔍 WiseChecker

Fix WinRE Missing After a Disk Clone to a Larger Drive on Windows 11

After cloning your system drive to a larger drive on Windows 11, you may find that the Windows Recovery Environment or WinRE is no longer available. This happens because the disk partition layout is not updated correctly during the clone process. The recovery partition that contains WinRE may be missing, incorrectly sized, or not marked with the correct type ID. This article explains why WinRE disappears after a disk clone and provides a step-by-step method to restore it.

Key Takeaways: Restoring WinRE After a Disk Clone

  • Diskpart command sequence: Shrink the OS partition and create a new recovery partition with the correct type ID.
  • reagentc /enable command: Registers the new recovery partition with Windows and copies the WinRE image.
  • Check WinRE status with reagentc /info: Verifies that WinRE is present and active on the correct partition.

ADVERTISEMENT

Why WinRE Disappears After a Disk Clone to a Larger Drive

When you clone a disk using third-party cloning software, the tool typically copies all partitions from the source disk to the destination disk. However, many cloning tools do not correctly resize the recovery partition to account for the larger destination drive. The recovery partition is often left as a small partition at the end of the disk, or it may be dropped entirely if the tool cannot handle the partition layout.

WinRE is stored in a dedicated recovery partition that must have a specific partition type ID: DE94BBA4-06D1-4D40-A16A-BFD50179D6AC for GPT disks or 27 for MBR disks. If the cloned drive uses GPT, which is standard for Windows 11, the partition must also have the No Default Drive Letter attribute set. When these conditions are not met, Windows does not recognize the partition as a valid recovery partition.

Another common cause is that the clone process places the recovery partition at the beginning of the disk instead of after the OS partition. Windows expects the recovery partition to be located immediately after the OS partition. If the layout is incorrect, the system cannot find WinRE and may show a status of Disabled or Unknown in the output of the reagentc /info command.

Steps to Restore WinRE After a Disk Clone

You can restore WinRE by shrinking the OS partition, creating a new recovery partition with the correct type ID, and then enabling WinRE using the reagentc command-line tool. These steps assume you are using a GPT disk, which is the default for Windows 11 installations.

Step 1: Open Command Prompt as Administrator

  1. Open Start and search for Command Prompt
    Right-click Command Prompt in the search results and select Run as administrator. Click Yes in the User Account Control prompt.

Step 2: Check Current WinRE Status

  1. Run the reagentc /info command
    Type reagentc /info and press Enter. Look at the Windows RE status line. If it shows Disabled or Unknown, WinRE is missing. Also note the Recovery partition line; if it says None, no valid recovery partition is present.

Step 3: Shrink the OS Partition to Create Space for the Recovery Partition

  1. Open Diskpart
    Type diskpart and press Enter. Wait for the Diskpart prompt to appear.
  2. List and select your system disk
    Type list disk and press Enter. Identify the disk that contains your cloned Windows installation. Usually this is Disk 0. Type select disk 0 and press Enter. Replace 0 with the correct disk number if needed.
  3. List partitions and find the OS partition
    Type list partition and press Enter. Look for the partition labeled Primary or System that has a size close to your OS drive capacity. Note its partition number.
  4. Select the OS partition and shrink it
    Type select partition X where X is the OS partition number. Then type shrink desired=1024 minimum=1024 and press Enter. This shrinks the partition by 1 GB to create space for the recovery partition. You can use a larger value like 2048 MB if you want extra space for future updates.

Step 4: Create a New Recovery Partition

  1. Create a new partition in the unallocated space
    Type create partition primary id=DE94BBA4-06D1-4D40-A16A-BFD50179D6AC and press Enter. This creates a partition with the correct GPT type ID for WinRE.
  2. Set the partition as a recovery partition
    Type gpt attributes=0x8000000000000001 and press Enter. This sets the No Default Drive Letter attribute and marks the partition as a recovery partition.
  3. Format the new partition
    Type format quick fs=ntfs label=WinRE and press Enter. This formats the partition with the NTFS file system and gives it a recognizable label.
  4. Assign a temporary drive letter
    Type assign letter=R and press Enter. This assigns the letter R to the partition so you can copy files to it later.
  5. Exit Diskpart
    Type exit and press Enter to close Diskpart.

Step 5: Copy the WinRE Image to the New Partition

  1. Locate the WinRE image
    The WinRE image is stored in a hidden folder at C:\Windows\System32\Recovery\. Type dir /ah C:\Windows\System32\Recovery\ and press Enter. You should see a file named ReAgent.xml and a folder named WindowsRE.
  2. Copy the WindowsRE folder to the new partition
    Type xcopy /h C:\Windows\System32\Recovery\WindowsRE R:\Recovery\WindowsRE\ and press Enter. This copies the recovery environment files to the new partition.
  3. Remove the temporary drive letter
    Type diskpart again, then select volume R, remove letter=R, and exit to remove the drive letter.

Step 6: Enable WinRE

  1. Use reagentc to enable WinRE
    Type reagentc /enable and press Enter. This registers the new recovery partition with Windows and activates WinRE.
  2. Verify WinRE is active
    Type reagentc /info and press Enter. The output should show Windows RE status: Enabled and a Recovery partition line with a valid partition location.

ADVERTISEMENT

If WinRE Still Does Not Appear After the Fix

WinRE Status Shows Disabled After Running reagentc /enable

If reagentc /enable fails, the partition may not have the correct type ID or attributes. Run diskpart again, select the recovery partition, and verify the type ID and GPT attributes using detail partition. The type ID must be DE94BBA4-06D1-4D40-A16A-BFD50179D6AC and the attributes must include 0x8000000000000001.

The Recovery Partition Is Not at the End of the Disk

Windows expects the recovery partition to be the last partition on the disk. If your cloned disk has partitions after the recovery partition, you must delete them or move them. Use a third-party partition manager to rearrange the layout. After moving the recovery partition to the end, run reagentc /enable again.

WinRE Image File Is Corrupted or Missing

If the WindowsRE folder cannot be found in C:\Windows\System32\Recovery\, the image may be missing. You can extract it from a Windows 11 installation ISO. Mount the ISO, navigate to sources\install.wim, and use the dism command to extract the WindowsRE folder from the image. Then copy it to the recovery partition as described in Step 5.

Disk Clone vs Clean Install: WinRE Availability

Item Disk Clone Clean Install
Recovery partition creation Manual creation required after clone Automatic during installation
Partition type ID Often missing or incorrect after clone Set correctly by Windows Setup
WinRE image Must be copied manually Copied automatically
Time to complete 15 to 30 minutes 30 to 60 minutes
Risk of data loss Low if steps are followed correctly High because all data is erased

After reading this article, you can restore WinRE on a cloned drive using the Diskpart and reagentc commands. The process involves shrinking the OS partition, creating a new recovery partition with the correct GPT type ID, copying the WinRE image, and enabling it. For future disk upgrades, consider using a cloning tool that properly resizes the recovery partition, such as Macrium Reflect or EaseUS Todo Backup, to avoid this issue entirely. If you encounter persistent problems, perform a clean install of Windows 11 to ensure all partitions are created correctly.

ADVERTISEMENT