Issue after resizing Recovery Partition
I used AOMEI Partition Assistant Standard (free) to increase the size of the W10 Recovery Partition - this is a topic at the moment as many are seeing a recent Windows Update failing due to the Recovery Partition being too small.
The resize worked but afterwards I noticed in Disk Management that the partition displayed no label - it was blank instead of "Healthy (Recovery Partition)".
Using Diskpart I could see the Attributes field may have been zeroed in the resize - I used the Diskpart command "set gpt attributes =0x8000000000000001" to resolve - a value mentioned in articles concerning about Recovery Partitions.
This may be system dependent but I thought it worth mentioning a potential bug.
The resize worked but afterwards I noticed in Disk Management that the partition displayed no label - it was blank instead of "Healthy (Recovery Partition)".
Using Diskpart I could see the Attributes field may have been zeroed in the resize - I used the Diskpart command "set gpt attributes =0x8000000000000001" to resolve - a value mentioned in articles concerning about Recovery Partitions.
This may be system dependent but I thought it worth mentioning a potential bug.
Comments
No idea what "You are appreciated, please post about additional bugs in Windows, or other utilities, then they can be avoided, or repaired." means - this can be reproduced easily enough and I think worth fixing as others might be doing the same thing given the number of reports of the WU failing.
I moved some partitions around to put some unallocated space next to the recovery partition. That took several hours in WinPE mode to complete.
Then, as a separate operation, I went to resize the recovery partition to increase its size into the unallocated area. This was done within Windows 10 and took about 30 seconds. However, Disk Management shows the new size, but its no longer identified as a "Healthy (Recovery Partition)". Also, the partition no longer shows as (Disk 0 partition 1) in the Volume list.
How can I get this partition to be properly identified?
Open a Command Prompt at the Admin level and enter the following commands.
C:\WINDOWS\system32> reagentc /info
This should show disabled since the recovery partition isn't identified
C:\WINDOWS\system32> diskpart
DISKPART> list disk
DISKPART> select disk (DiskNumber from "list disk" command)
DISKPART> list partition
Note: the type was still listed as "Recovery", even though it was not recognized by Disk Management
DISKPART> select partition (PartitionNumber of the resized Recovery Partition)
DISKPART> set id=de94bba4-06d1-4d40-a16a-bfd50179d6ac
Note: I believe this is the attribute that was cleared when AOMEI resized the partition. This ID is required to identify it as a recovery partition.
DISKPART> exit
C:\WINDOWS\system32> reagentc /info
This should now show a status of "Enabled" and the RE location should point to the directory on the recovery partition.
Opening Disk Management should now show a "Healthy (Recovery Partition)" and the partition should be listed in the Volume list.
After resizing the Recovery Partition from 527 MB to 909 MB and running the above steps to get Windows to identify the Healthy Recovery Partition, I was able to successfully install the infamous Windows Security Update that was causing all this trouble KB5034441.
https://support.microsoft.com/en-us/topic/kb5034441-windows-recovery-environment-update-for-windows-10-version-21h2-and-22h2-january-9-2024-62c04204-aaa5-4fee-a02a-2fdea17075a8
Resizing the Recovery Partition with AOMEI is a lot easier than the complex steps listed in the Microsoft KB articles. Even adding the few Command Prompt steps to get it to recognize the Partition was a lot easier and safer with AOMEI.