System hacks: look to the 2004 version to adjust their own WinRE recovery partition

When the system encounters problems, we often use the WinRE repair system that comes with Windows 10 to repair it. In earlier versions, this component is saved by default in the front recovery partition of the hard disk, for example, the size of this partition on my computer is 450MB (Figure 1) (Note: the size of the partition is different in different versions). The size of the WinRE.wim file, the main file of the recovery partition, is also different in each version, and the newer the version, the larger the size (because of more features). Thus, if there is not enough space in the recovery partition during subsequent upgrades, the new version will automatically carve out a new partition at the back of the hard disk to store the WinRE.wim file, which will result in an unnecessary recovery partition on the hard disk. So, how to solve this problem?

2018A-WinRE-1

In the 2004 version of Windows 10, when performing a fresh installation, the recovery partition created by default by the installer is already located at the very back of the hard drive (900MB in size), which not only leaves enough space for the subsequent new version of WinRE.wim, but also makes it easier to expand it manually. As you can see from the partition structure of the latest Surface GO 2, the WinRE partition is already located at the very back of the hard drive (Figure 2). If you are using a lower version of Windows 10 system that has not yet automatically partitioned the back of the hard drive, we can refer to the 2004 version and manually move the recovery partition feature to the back space of the hard drive. The following describes how to do this.

2018A-WinRE-2

Tip: The movement of system files may bring unpredictable damage to the system, before the operation, it is recommended to make a good backup of important data, and it is highly recommended to prepare a boot U disk for backup.

First confirm where the current recovery partition is located, start the command prompt as administrator and type “reagentc /info”, the “Windows RE location” shown below is the recovery partition, for example, I The “Windows RE location” shown below is the recovery partition, for example, on my computer it is “harddisk0\partition2\Recovery\WindowsRE” (i.e. the second partition of the first hard disk under the “\Recovery\WindowsRE” directory) (Figure 3). ) (Figure 3).

2018A-WinRE-3

Note: As mentioned above, when the default recovery partition is running out of space, the new version of the system will automatically carve out a partition at the back of the hard drive to store WinRE.wim, so don’t perform the migration operation if you check the recovery partition is already at the back of the hard drive by the above method, just follow the introduction at the end of the article to delete the extra recovery partition.

After determining the location of the recovery system, right-click on the desktop “This PC” and select “Manage → Disk Management”, then locate the last partition of the first hard disk on the right, right-click and select “Compress Volume “In the window that opens, enter “1024” after “Enter amount of compressed space (MB)”, i.e., expand 1GB of new space under the current partition to use as a recovery partition (Figure 4).

2018A-WinRE-4

Next, select the extended unallocated space and create a new simple volume, format it and assign the disk letter G: to it, with the volume label named “WinRE”. Next, move the files from the original recovery partition to it, and note that since the original recovery partition is not directly accessible by default, you need to assign a disk letter to it with the help of bootice.exe (http://suo.im/6dybMF, extraction code: xbas). After starting bootice.exe, select disk 0 on the target disk, click “Partition Management”, select partition number 1 (i.e., the second partition) in the opened window, click “Show” to cancel its hidden properties; continue clicking “Assign disc letter” and add an access disc letter H: to it (Figure 5).

2018A-WinRE-5

Continue typing “takeown /f h:\recovery /a /r /d y” and “cacls h:\recovery /T /E /G administrators:F” in the command prompt window. ” commands to gain ownership of the folder and now open Explorer to access “H:\reovcery\windowsre”, where the files needed to recover the system are saved. Follow the prompts to cut “H:\reovcery” to “G:\” for backup (Figure 6).

2018A-WinRE-6

Return to the command prompt window and continue to enter the following command to reconfigure WinRE (rem is a comment statement, no need to enter it):

rem Close the repair environment first

reagentc /disable

rem Reassign the recovery partition location to G:

reagentc /setreimage /path G:\Recovery\WindowsRE\

rem Turn on the repair environment again

reagentc /enable

reagentc /info

Type “reagentc /info” at the command prompt and make sure that the Windows RE location shown here is “harddisk0\partition5\Recovery\WindowsRE ” (i.e. G:\Recovery\WindowsRE), which means that the recovery partition has been moved to the specified partition (Figure 7).

2018A-WinRE-7

Now hold down the Shift key, then click “Start→Reboot”, so that after reboot will automatically enter the advanced boot, in the boot interface click “Troubleshooting→Advanced Options→Command Prompt” (Figure 8), if you can successfully enter the command prompt interface If you can successfully enter the Command Prompt interface, it means that the above move has successfully taken effect.

2018A-WinRE-8

If you need to adjust the space later, just copy the “G:\Recovery” directory to another partition and save it. As above, select the E drive (i.e. the previous partition of the G drive) for space expansion in Disk Management, merge it with G after expanding the space, and then copy the “Recovery” directory back.

For users who have already completed the above migration (including those who have already partitioned the new recovery partition at the back of the disk during the upgrade), the original redundant recovery partition can be deleted using the Diskpart command (be sure to select the right redundant partition volume label before deleting the partition, do not select the wrong one!) Do not select the wrong volume label!

Leave a Comment