|

How to recreate WinRE recovery environment

Windows Recovery Environment Recreating WinRE sets a unique “ID” and “gpt attributes” for the recovery area, copies Winre.wim and embeds it to activate the recovery environment. If you don’t have a recovery partition, you can rebuild WinRE by creating a new one. This page introduces how to recreate WinRE, the Windows recovery environment (repair function).

Pre-checks and preparations for rebuilding WinRE
To recreate WinRE, start Command Prompt as an administrator.

  • After pressing the “Windows” key on your keyboard, press ” cmd “.
  • When the search screen appears, click “Run as administrator” in Command Prompt.

*This operation is the same as entering “cmd” in the search.

Check and Initialize WinRE Recovery Partition

Check if there is a WinRE (recovery environment) partition or not, if not create a recovery partition before recreating WinRE. 1. Type diskpart and press Enter.
 2. Type list disk and press Enter.
 3. Select the disk where Windows is installed (usually ‘0’) by typing ‘select disk 0’ and pressing ‘Enter’.
Type select disk 0 and press Enter.
 4. Check recovery partition Type
list partition and press Enter.  The preparation operation differs depending on whether or not “Recovery” is displayed.■ “Recovery” is not displayed
Proceed to the next section to create a new recovery partition and create a recovery partition.
■ Format the partition where “Recovery” is displayed
, specify the Label and drive letter, and make the initial settings. 

WinRE Rebuild Initialization

① Type “ select partition 4 ” and press “Enter”.
Here is an example with Recovery Partition 4 . Please change it according to your environment.(2) Enter ” format quick fs=ntfs label=”WindowsRE” ” and press “Enter” to format and specify Label.

Label name

Here, “label” is set to “WindowsRE”, but you can specify your favorite label name if it is half-width alphanumeric characters.③ Input ” assign letter=R ” and press “Enter” to assign drive letter ” R “.
 4. Type ” exit ” and press “Enter” to exit diskpart .

For the continuation of WinRE re-creation, proceed to ” Procedures for re-creating WinRE “.

Create a new recovery partition for WinRE

If recovery is not listed, create a new recovery partition. 1. If you have exited ” diskpart “, proceed to ” 3. select disk 0 ” in ” Checking and Initializing WinRE Recovery Partition ” above.
 2. Go to select disk and
type ” create partition primary size=717 ” and press “Enter” to specify the creation and size of the recovery partition.

Recovery partition size

Here, the Windows standard size “717MB” is specified, but “size” is easy to understand and “1024MB (1GB)” is also fine.3. Type list partition and press Enter.
 4. Select the created partition and type
select partition 4 and press Enter.
Here is an example with Recovery Partition 4 . Please change it according to your environment.5. Type ” format quick fs=ntfs label=”WindowsRE” ” and press “Enter” to format and specify Label.

Label name

Here, “label” is set to “WindowsRE”, but you can specify your favorite label name if it is half-width alphanumeric characters.6.Type “ assign letter=R ” and press “Enter” to assign drive letter “ R ”.
 7. Type ” exit ” and press “Enter” to exit diskpart .

For the continuation of WinRE re-creation, proceed to ” Procedures for re-creating WinRE “.

Situations when WinRE is not normal

When the recovery environment WinRE is not normal, “Recovery environment does not start”, “Automatic repair cannot be performed”, or troubleshooting in “Options” of the recovery environment and advanced options are not displayed. As a result, operations such as safe mode of the repair function, command prompt, system restore, deletion of updates, initialization, etc. will not be possible.

Steps to recreate WinRE

1. Copy Winre.wim to WinRE recovery partition

1-1. Confirm that the display of the command prompt is “C:\Windows\system32>”.
 1-2. Create a folder in the recovery partition (drive letter R ).
Type mkdir R:\Recovery\WinRE and press Enter.
Create a folder named ” Recovery ” on the drive ” R :” and create a ” WinRE ” folder in it. There is no default value for the name of the folder. Single-byte alphanumeric characters can be created with a name of your choice.1-3.Check Winre.wim file
Check that “Winre.wim” exists in “C:\Windows\System32\Recovery” or “C:\Recovery”.
 “C:\Recovery” is a hidden file, so click “Show” in the “View” menu of Explorer and select “Hidden files”.

If you can’t find Winre.wim

  • If “Winre.wim” is not in place, search the drive in Explorer.
  • Even if you search for “Winre.wim”, it may not be found depending on the PC environment. In this case you can extract from the Windows ISO file. Details on how to do this are provided on the following page.
    Sure way to fix Winre.wim not found

1-4. Use the “xcopy” command below to copy “Winre.wim” to the “Recovery WinRE” folder created in the “R:” drive of the recovery partition.
■ If Winre.wim is in C:\Windows\System32\Recovery

xcopy /h C:\Windows\System32\Recovery\Winre.wim R:\Recovery\WinRE

 ■ If Winre.wim is in C:\Recovery

xcopy /h C:\Recovery\Winre.wim R:\Recovery\WinRE

 If “1 file copied” is displayed, the operation here is completed.

2. Dedicate WinRE Partition to Recovery Environment

2-1. Proceed to ” 3. select disk 0 ” in “Checking and initializing WinRE recovery partition “.
 2-2. Go to select disk and select the recovery partition you created. Type
select partition 4 and press Enter.
Here is an example with Recovery Partition 4 . Please change it according to your environment.2-3. Enter the “Unique ID” of the recovery environment below and press “Enter”.

set id="de94bba4-06d1-4d40-a16a-bfd50179d6ac"

 2-4. Enter the following recovery environment ID attribute and press Enter.

gpt attributes=0x8000000000000001

Point
Make it recognized as a recovery partition by registering the unique ID of the recovery area in “4. set id” and the unique ID attribute of the recovery area in “5. gpt attributes” above.
2-5.Type ” exit ” and press “Enter” to exit diskpart .


3. Register WinRE partition with Windows

 

3-1. Confirm that the display of the command prompt is

“C:\Windows\system32>”.
 3-2. Check the recovery environment status
Type reagentc /info and press Enter.
If it says “Windows RE state: Enabled”, you need to disable the recovery environment. Type “ reagentc /disable ” and press “Enter”. Disabling is complete when “Operation was successful” is displayed.

3-3. Register WinRE recovery partition with Windows and enable it

Type reagentc /setreimage /path R:\Recovery\WinRE and press Enter to register with Windows.
R:\Recovery\WinRE ” is where you copied “Winre.wim”.Type reagentc /enable and press Enter to enable recovery environment
 

3-4. Check if the recovery environment is “Enable”

Type reagentc /info and press Enter.
4. Clear WinRE Recovery Partition Drive Letter Assignment

If you leave it as it is, you may see the recovery partition in explorer, so erase the drive letter.
 4-1. Proceed to ” 4. list partition ” in “Checking and initializing WinRE recovery partition “.
 4-2. Select the created recovery partition.
Type select partition 4 and press Enter.
Here is an example with Recovery Partition 4 . Please change it according to your environment.4-3. Type ” remove letter=R ” and press “Enter” to erase the recovery partition drive letter assignment.
 4-4.Type ” exit ” and press “Enter” to exit diskpart .

5. Confirm and complete the boot of the recreated WinRE

5-1. Type ” shutdown /r /o /t 0 ” and press “Enter” to boot into WinRE (recovery environment).
Description of the shutdown command

  • /r : reboot
  • /o : boot into WinRE
  • /t 0 : Run immediately (restart)

5-2.If WinRE starts and “Option” of recovery environment is displayed, re-creation of WinRE is completed.

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *