Problem Moving the Recovery Partition

Page 1 of 2 12 LastLast

  1. Posts : 445
    Windows 10 Home 64-bit, 22H2 19045.4170
       #1

    Problem Moving the Recovery Partition


    In a VM, I recently moved the recovery partition to facilitate certain updates. I used the following instructions which I got from StackExchange and another thread in this forum.

    reagentc /disable

    diskpart
    sel disk 0
    create partition primary
    list partition
    (Find # of the new partition.)
    select patition #
    format quick fs=ntfs label="Recovery"
    assign letter=R
    exit

    Dism /Apply-Image /ImageFile:C:\recovery-partition.wim /Index:1 /ApplyDir:R:\

    reagentc /setreimage /path R:\Recovery\WindowsRE
    reagentc /enable

    diskpart
    select volume R
    set id="de94bba4-06d1-4d40-a16a-bfd50179d6ac"
    gpt attributes=0x8000000000000001
    remove
    exit

    Everything seems to have worked. (I created a restore point to test it.) The only problem is that the new partition is visible as R:, and if I remove the letter from the partition, reagentc becomes disabled, and reangentc /enable doesn't enable it. Is this fixable, or should I just live with it the way it is.
      My Computer


  2. Posts : 715
    WIN 10 19045.4291
       #2

    Reagentc /disable
    In C:\Windows\System32... rename it as WinRE.wim
    reagentc /enable

    Check the BCD entry
    ramdisk=[\Device\HarddiskVolume4]\Recovery\WindowsRE\Winre.wim ?
      My Computer


  3. Posts : 5,330
    Windows 11 Pro 64-bit
       #3

    In this video, i will take you through the steps to create a Windows recovery partition in a Windows 10 or Windows 11 PC installed in UEFI mode with GPT partition style.

      My Computer


  4. Posts : 445
    Windows 10 Home 64-bit, 22H2 19045.4170
    Thread Starter
       #4

    Pentagon said:
    Reagentc /disable
    In C:\Windows\System32... rename it as WinRE.wim
    reagentc /enable

    Check the BCD entry
    ramdisk=[\Device\HarddiskVolume4]\Recovery\WindowsRE\Winre.wim ?
    Are you saying that I should copy the .wim file I created to Systen32 or that I should rename the DrtmAuthTxt.wim file? I created the .win file by using DISM on the original recovery partition, following these instructions. diskpart - How to move the recovery partition on Windows 10? - Super User
      My Computer


  5. Posts : 14,035
    Win10 Pro and Home, Win11 Pro and Home, Win7, Linux Mint
       #5

    For the problem with the KB5034441 update, I didn't move a partition but resized the largest down by 1GB less then extended the 4xx-5xx GB partition giving it more that 1GB total which then let the update install.
      My Computers


  6. Posts : 4,598
    several
       #6

    That is an interesting way of doing it.

    why capture the original partition as a .wim and then apply it ?


    DISKPART> list disk
    DISKPART> select disk <the-number-of-disk-where-current-recovery-partition-locate>
    DISKPART> list partition
    DISKPART> select partition <the-number-of-current-recovery-partition>
    DISKPART> assign letter=O


    Create an image file from current recovery partition:

    Dism /Capture-Image /ImageFile:C:\recovery-partition.wim /CaptureDir:O:\ /Name:"Recovery"

    Apply the created image file to another partition(eg. N) that will become the new recovery partition:

    Dism /Apply-Image /ImageFile:C:\recovery-partition.wim /Index:1 /ApplyDir:N:\


    I can see it might possibly be of use if trying to combine oem recovery partition and ms recovery partition.
      My Computer


  7. Posts : 445
    Windows 10 Home 64-bit, 22H2 19045.4170
    Thread Starter
       #7

    SIW2 said:
    That is an interesting way of doing it.

    why capture the original partition as a .wim and then apply it ?

    I can see it might possibly be of use if trying to combine oem recovery partition and ms recovery partition.
    I didn't know how to get a winre.wim file until earlier today.

    Anyway, it seems to be working, but the System Properties dialog looks weird with a visible "Recovery" folder.
      My Computer


  8. Posts : 715
    WIN 10 19045.4291
       #8

    A screenshot of "Diskmanagement" is needed
      My Computer


  9. Posts : 445
    Windows 10 Home 64-bit, 22H2 19045.4170
    Thread Starter
       #9

    Problem Moving the Recovery Partition-untitled.png
      My Computer


  10. Posts : 715
    WIN 10 19045.4291
       #10

    You should have access to (E:) now. If there is still the old Recovery\WindowsRE-Folder you should delete it.

    rd /S /Q E:\Recovery

    diskpart
    sel disk 0
    sel par 5
    assign letter=R
    exit
    dir R:\Recovery\WindowsRE /a /s
    mountvol R: /D

    Are there these 3 files listed after the dir R:\... command
    boot.sdi
    ReAgent.xml
    Winre.wim
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 20:20.
Find Us




Windows 10 Forums