how to solve merging partition

Zeyad Shehata 20 Reputation points
2024-05-05T06:18:17.4+00:00

i have windows update error that need to manually resize recovery partition and increase it by 250 when i delete the recovery partition and shrink the os drive while i make a new one the recovery doesnt merged to 780 mb User's image

User's image

i need some help in it

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,826 questions
0 comments No comments
{count} votes

8 answers

Sort by: Most helpful
  1. Docs 15,551 Reputation points
    2024-05-05T19:49:46.4766667+00:00

  2. Docs 15,551 Reputation points
    2024-05-05T22:13:07.9+00:00

    Please run the administrative command prompt commands in the earlier post an post a share link or image into the newest post


  3. Ian Xue 38,466 Reputation points Microsoft Vendor
    2024-05-07T05:45:50.4533333+00:00

    Hi Zeyad,

    Hope you're doing well.

    Deletion and reconstruction of recovery partition

    Note: Important: It is best to make a BMR backup, checkpoint, snapshot, etc. before operation.

    ---delete-

    1. Open the CMD command line and enter "diskpart"
    2. Enter "list disk" under the diskpart path.
    3. According to the "disk number" where your C drive is located, enter "select disk 0" (combined with the disk number seen in step 2, usually disk 0)
    4. After you are prompted "Disk 0 is now the selected disk", enter "list partition"
    5. Enter "select partition" (get the recovery partition number based on the size or type of the partition)
    6. After you are prompted "Partiton is now the selected partition", enter "delete partition override"
    7. When you see "Diskpart successfully deleted the selected partition", it proves that the deletion is successful. You can go to the disk manager to check whether there is excess space released.

    Important: If you need to rebuild after deletion, we need to back up the winre.wim file before deleting it. Just copy it to the C drive.

    ---Recreate---

    1. Reboot the server after delete the recovery partition, check if Operating system can normally start
    2. Extend volume C
    3. Shrink 550MB for the recovery partition
    4. Right click on the unallocated space to create new NFTS volume. Assign a letter H:

    Copy the WinRE image to recovery partition and enable WinRE by below commands:

    mkdir H:\Recovery\WindowsRE

    xcopy /h "C:\Winre.wim" "H:\Recovery\WindowsRE"

    reagentc /setreimage /path H:\Recovery\WindowsRE /target

    reagentc /enable

    1. Remove the drive letter H and mark the partition as a recovery partition by below commands:

    diskpart

    list disk

    select disk 0

    list partition

    select partition 2 (Replace the partition number with the one of H:)

    remove

    If UEFI (GPT) run command:

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

    gpt attributes=0x8000000000000001

    If BIOS (MBR) run command:

    set id=27

    exit

    1. Run command "reagentc /info" to check if it takes affects.
    2. Run command reagentc /boottore,then reboot server to check if we can boot into recovery mode.

    Best Regards,

    Ian Xue


    If the Answer is helpful, please click "Accept Answer" and upvote it.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.