UniteInnovations

Home / Blog / Helpful Information

Move Windows Recovery Partition Correctly: A Comprehensive Guide

When you need to free up space on your primary drive or upgrade to a faster storage device, Move Windows recovery partition can be a daunting task. Sometimes the recovery partition can create a problem by sitting between your primary partition and free space on the drive. Most articles and advice, while searching for a solution, would say to just delete it. What if you want to move the Windows recovery partition instead? With the right guidance, you can migrate your recovery partition correctly. Here’s a way to do it so it doesn’t have to be deleted permanently. In this article, we’ll show you how to Move Windows recovery partition safely and efficiently.

Move Windows Recovery Partition Correctly: A Comprehensive Guide

Why Move Windows Recovery Partition?

The Windows recovery partition is an essential component of your operating system. It contains the files needed to restore your system in case of a failure or crash. Moving Windows recovery partition to a new drive or SSD can free up valuable space on your primary drive, improve overall system performance, and even enhance data security.

Preparation is Key

Before moving Windows recovery partition, ensure you have:

  1. A Backup of Your Important Files: Regular backups are essential to prevent data loss in case something goes wrong during the migration process. Make sure you have proper backups before starting.
  2. Sufficient Disk Space: Verify that the drive (new drive or SSD) has enough free space to accommodate the recovery partition.

Move Windows Recovery Partition

To move Windows recovery partition correctly, follow these steps:

Open Command Prompt as Administrator:

Press Win + X and select “Command Prompt (Admin)“.

Alternatively, right-click on the Start button and select “Command Prompt (Admin)“.

Move Windows Recovery Partition Correctly command menu

To proceed, we must first disable the current Windows recovery partition. To accomplish this, simply run the following command: reagentc /disable

Move Windows Recovery Partition Correctly reagentc

Executing the reagentc /disable command will effectively disable the existing recovery partition. As a result, the recovery environment will be relocated into a file called Winre.wim, which can be found in the directory C:\Windows\System32\Recovery.

Note: To view this file, you’ll need to enable the display of hidden system files. I recommend verifying the file is there before moving on to the next step.

Move Windows Recovery Partition Correctly system32

Click three dots (…), then select options.

Move Windows Recovery Partition Correctly hidden files

Uncheck “Hide protected operating system files (Recommended)“

Folder Options with Hide protected operating system files unchecked

Click Yes

Windows warning about showing protected system files, with the Yes button

Now you should see the Winre.wim file.

File Explorer showing the Winre.wim file

Identify The Recovery Partition And Delete

Type diskpart and press Enter to open the DiskPart utility.

Move Windows Recovery Partition Correctly Diskpart

Type list disk and press Enter to list all disks on your system.

Move Windows Recovery Partition Correctly list disk

Note whether the disk is a GPT disk or an MBR disk. This information will be important later. If the GPT column has a * then its GPT, if not it’s MBR.

Move Windows Recovery Partition Correctly gpt mbr

Select the Disk

Select the disk where the recovery partition is located by running the command select disk <number> (replace <number> with the actual number of the disk).

Move Windows Recovery Partition Correctly select disk

List Partition

List partitions by running the command list partition

Move Windows Recovery Partition Correctly list partition

Identify the recovery partition, which is usually labeled as “Recovery” or “WinRE”.

Move Windows Recovery Partition Correctly recovery select

Select the Recovery Partition

Select the recovery partition by running the command select partition <number>

(replace “<number>” with the actual number of the recovery partition).

Move Windows Recovery Partition Correctly recovery select

Delete The Recovery Partition

Delete the recovery partition by running the command delete partition override

Move Windows Recovery Partition Correctly delete

Don’t exit or close. We will come back to DiskPart later on.

Back to Disk Manager

Now, if you look in Disk Management, you should no longer have the Recovery Partition, and it should show up as unallocated.

Move Windows Recovery Partition Correctly disk manager

This was a virtual machine I was working on and I wanted to in crease the space of the disk to be 300 GB total. So at this point I added space to the virtual disk to total the 300 GB. This step can be skipped if it doesn’t apply.

Move Windows Recovery Partition Correctly disk manager 2

Resize the Disk

Resize the partition you want to increase. For me it was the C: drive by right-clicking it in Disk Management and selecting Extend Volume. Then, expand your disk and leave about 1024 MB off your resized size to leave room for re-enabling the Recovery Partition.

Move Windows Recovery Partition Correctly extend menu

I just subtracted 1024 MB from the total unallocated space.

Move Windows Recovery Partition Correctly amount

Change amount and click next.

Move Windows Recovery Partition Correctly new amount

Now you should see the partition extended with 1 GB of unallocated space.

Disk Management showing 1 GB of unallocated space after the extend

Create a New Simple Volume

Create a new simple volume with the unallocated space.

Disk Management right-click menu with New Simple Volume

Click next

New Simple Volume Wizard welcome screen
New Simple Volume Wizard volume size step

Don’t Assign a Drive Letter

Important: Don’t assign a drive letter to the new simple volume.

Wizard option Do not assign a drive letter or drive path selected

Name the New Partition (Optional)

You can give the new partition a name if you want; it doesn’t matter, but it does make it easier to identify. In this example, we’ll call it “New Recovery”.

Format partition step with the volume label New Recovery

Now you have created a new 1 GB partition.

Disk Management showing the new 1 GB New Recovery partition

Return to DiskPart To Finalize The Move Of The Windows Recovery Partition

Return to DiskPart. In DiskPart, list your partitions again by running the command list partition

DiskPart list partition output

Select the New Partition

Select the new partition (New Recovery) by running the command select partition <number>, replacing <number> with the actual number of the new partition.

DiskPart selecting the new recovery partition

So at this stage you will need to refer back to your notes and check if you have a GPT or MBR recovery partition. The commands for GPT are different from MBR.

For GPT

If you have a GPT, set the partition as a recovery partition by running the following command to set id=de94bba4-06d1-4d40-a16a-bfd50179d6ac

DiskPart setting the GPT recovery partition type ID

This partition must be hidden and flagged as a required partition. Run the command to set a GPT attribute on it of 0x8000000000000001 gpt attributes=0x8000000000000001

DiskPart setting GPT attributes 0x8000000000000001

Exit DiskPart by running the command exit

DiskPart exit command

For MBR

We need to tell Windows this a recovery partition. If you have an MBR disk, this the command to do that

set id=27
DiskPart set id=27 command for an MBR disk

Exit DiskPart by running the command exit

DiskPart exit command after setting the MBR partition ID

Enable the Windows Recovery Partition and Verify Windows Recovery Environment

Now we can re-enable the recovery partition by running the command reagentc /enable.

Command Prompt running reagentc /enable

As a result of running reagentc /enable, the Winre.wim file will be extracted from its original location in C:\Windows\System32\Recovery to the new location. By doing this, you have successfully moved Windows recovery partition to a new location on the drive and re-enabled it.

reagentc /info showing Windows RE enabled at the new location

Check Disk Manager to make sure everything looks okay.

Disk Management showing the moved recovery partition

To Test The Recovery Partition, Follow These Steps:

  • Restart your computer.
  • Press the key to access the boot menu (usually F12 or Esc).
  • Select the recovery partition as the boot device.
  • You should now be in the Windows Recovery Environment.

If everything is working correctly, you should be able to access the Windows Recovery Environment and perform various troubleshooting tasks, such as running System Restore or accessing advanced startup settings. By following these steps, you have successfully moved Windows recovery partition and re-enabled it.

Common Pitfalls to Avoid

When moving Windows recovery partition, avoid common pitfalls like:

  • Deleting or Formatting the Wrong Partition: Double-check that you’re working with the correct partitions to prevent data loss.
  • Failing to Update the Boot Configuration: Ensure you update the boot configuration to reflect the changes, or your system may not boot correctly.

Move Windows Recovery Partition Conclusion

Although we deleted the original Windows Recovery Partition, our approach ensured that our existing recovery options remained intact. We then rebuilt and re-enabled the new recovery partition. While this process may have required a bit more effort, I believe it’s worth it because you can complete the entire process without any reboots, and your recovery options remain fully functional.

References

Deploy Windows RE and REAgentC command-line options

This is an update article to our Windows 10 Update 0x80070643 Error