Recreate the Recovery partition?

yro

New Member
Hello guys.

I dont know if thats the right place to ask but here I am :)

After the KB that failed to install due to Recovery partition size I decided to remove the damn partition. All good but I was thinking about it and I would like to know: Is it possible to recreate (or create a new one) the Recovery partition using ntlite in live image? or in the iso editing?
 
That's the wrong way to remove the Recovery partition. Don't do that again, we're not here to walk you through serious user mistakes.

1. Instruct Windows to forget the existing Recovery volume.
Code:
reagentc /disable

2. Run diskmgmt.msc and check if there's an empty partition BEFORE the Windows partition, or AFTER.

If your deleted Recovery partition was located before Windows partition, find a 3rd-party Partition Manager and shift Windows LEFT to recover the now empty space. After that step is done, shrink the existing Windows partition to open about 800 MB at the end of the disk.

If the deleted Recovery partition was at the end of the disk, shrink Windows until it frees up 800 MB of free space.

3. Recreate the Recovery volume if needed, using diskpart:
Code:
select disk 0
list partition

If there's no partition 3, create one:
Code:
create partition primary
format quick fs=ntfs label="Recovery"
set id="de94bba4-06d1-4d40-a16a-bfd50179d6ac"
gpt attributes=0x8000000000000001
exit

4. Find your install ISO. Using 7-Zip open the file \sources\install.wim. If you've converted the WIM into ESD format, then you need to convert it back to WIM format using NTLite.

From 7-Zip, select the "[N]" numbered folder which corresponds to your install image's index, and browse \Windows\System32\Recovery.
Extract files Winre.wim & ReAgent.xml, and copy them to C:\Windows\System32\Recovery.

6. Re-activate the Recovery partition.
Code:
reagentc /enable
reagentc /info
 
That's the wrong way to remove the Recovery partition. Don't do that again, we're not here to walk you through serious user mistakes.

1. Instruct Windows to forget the existing Recovery volume.
Code:
reagentc /disable

2. Run diskmgmt.msc and check if there's an empty partition BEFORE the Windows partition, or AFTER.

If your deleted Recovery partition was located before Windows partition, find a 3rd-party Partition Manager and shift Windows LEFT to recover the now empty space. After that step is done, shrink the existing Windows partition to open about 800 MB at the end of the disk.

If the deleted Recovery partition was at the end of the disk, shrink Windows until it frees up 800 MB of free space.

3. Recreate the Recovery volume if needed, using diskpart:
Code:
select disk 0
list partition

If there's no partition 3, create one:
Code:
create partition primary
format quick fs=ntfs label="Recovery"
set id="de94bba4-06d1-4d40-a16a-bfd50179d6ac"
gpt attributes=0x8000000000000001
exit

4. Find your install ISO. Using 7-Zip open the file \sources\install.wim. If you've converted the WIM into ESD format, then you need to convert it back to WIM format using NTLite.

From 7-Zip, select the "[N]" numbered folder which corresponds to your install image's index, and browse \Windows\System32\Recovery.
Extract files Winre.wim & ReAgent.xml, and copy them to C:\Windows\System32\Recovery.

6. Re-activate the Recovery partition.
Code:
reagentc /enable
reagentc /info
what way? I did exacly what microsoft explains. I turned off the recovery, disabled the recovery at windows and then removed the space in my ssd. all fine. what i wanted to know if ntlite has some option to recreate (or create) the recovery partition on live image or in the offline iso. anyway, thanks for the tips.
 
For an offline image, there is no Recovery partition because it doesn't exist yet. The install image's \Windows\System32\Recovery folder contains a WinRe.wim file, unless you removed it as a component. NTLite will present this WinRE as an editable image.

Each install image will have its own individual WinRE WIM, as it's not shared across editions.

When Windows gets installed, and if there's an eligible Recovery partition, WinRE gets extracted to the Recovery volume and the live system's drivers are copied over. Basically it runs reagentc /enable late in the install. If no eligible partition is identified, Windows skips this process as having a Recovery partition isn't required.

If you have removed WinRE from the install image, then start over from a clean image. NTLite cannot re-insert removed components.

For a live image, NTLite shouldn't be in the business of rebuilding or repairing a Recovery partition. That's because you need to have a valid disk layout, and trying to fix all the different ways it can go wrong is beyond NTLite's knowledge. Messing up partitions can lead to data loss.
 
For an offline image, there is no Recovery partition because it doesn't exist yet. The install image's \Windows\System32\Recovery folder contains a WinRe.wim file, unless you removed it as a component. NTLite will present this WinRE as an editable image.

Each install image will have its own individual WinRE WIM, as it's not shared across editions.

When Windows gets installed, and if there's an eligible Recovery partition, WinRE gets extracted to the Recovery volume and the live system's drivers are copied over. Basically it runs reagentc /enable late in the install. If no eligible partition is identified, Windows skips this process as having a Recovery partition isn't required.

If you have removed WinRE from the install image, then start over from a clean image. NTLite cannot re-insert removed components.

For a live image, NTLite shouldn't be in the business of rebuilding or repairing a Recovery partition. That's because you need to have a valid disk layout, and trying to fix all the different ways it can go wrong is beyond NTLite's knowledge. Messing up partitions can lead to data loss.
Oh, I see.

I understand. Thank you for the patience and response. :) I removed the partition as the kb was not installing. Now Ill attempt to recreate the recovery partition or create a new one. No that I need it but just for the fun of learning and maybe, if all goes great, Ill make a video of it for my channel.
 
Back
Top