Share via

WinRE partition not set properly after hard disk image restored to another disk

Anonymous
2024-05-05T05:13:28+00:00

My brother's AIO computer unbelievably came with a 128GB SSD and 1TB disk. Naturally the SSD got swamped and ran out of space rendering the OS inoperable.

Acronis True Image 2020 was used to back up the entire disk, but since the intention was to restore the OS partition with enlarged size, I couldn't perform a one-for-one disk restore (which would have kept C: squeezed at 118GB).

I initially sequentially restored

  • ESP/EFI partition.
  • boot record.
  • OS partition enlarged to 930GB.
  • WinRE partition inflated from 850MB to 1.2GB to take up the rest of the disk.

Notice the the Microsoft Reserved partition (MSR) is missing because Acronis True Image does not make that partition available for individual restoration. But despite only having three out of the four standard partition a Windows system is supposed to have, it need manage to boot up just fine.

However on reading documentation it appears the MSR partition does have some critical role (though not very clearly stated) to play in future even if it's empty for now. So I redid the restoration with

  • EFI partition.
  • boot record.
  • diskpart to manually insert msr 16MB partition
  • OS partition enlarged to 930GB
  • WinRE partition inflated to remaining space.

With this layout however, Windows could not both up with

A required device isn't connected or can't be accessed. Error Code: 0xc0000225

Following others' advice on fixing the boot record with bootrec and bootsect, I managed to get Windows booting up again. I will skip the details because the next problem is the concern of this post - the disconnected WinRE partition.

PS C:\> reagentc /info 

Windows Recovery Environment (Windows RE) and system reset configuration 

Information: 

    Windows RE status:         Disabled 

    Windows RE location: 

    Boot Configuration Data (BCD) identifier: 00000000-0000-0000-0000-000000000000 

    Recovery image location: 

    Recovery image index:      0 

    Custom image location: 

    Custom image index:        0 

REAGENTC.EXE: Operation Successful.

The partition has already been set with

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

gpt attributes=0x8000000000000001

and Disk Management does see it as a healthy Recovery Partition.

I try setting the RE image location and enabling it and it seems to be successful.

PS C:\> reagentc /setreimage /path T:\Recovery\WindowsRE /target C:\windows 

Directory set to: \\?\GLOBALROOT\device\harddisk0\partition4\Recovery\WindowsRE 

REAGENTC.EXE: Operation Successful. 

PS C:\> reagentc /enable 

REAGENTC.EXE: Operation Successful.

However reagentc /info shows it is still disabled like above and doesn't know where the WinRE partition/path is. What else needs to be done to properly restore WinRE partition to a functional state?

Windows for home | Windows 11 | Recovery and backup

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

  1. Ramesh 176.1K Reputation points Volunteer Moderator
    2024-05-05T06:29:26+00:00
    DISKPART> sel disk 0 
    
    
    
     
    
    
    
    Disk 0 is now the selected disk. 
    
    
    
     
    
    
    
    DISKPART> list vol 
    
    
    
     
    
    
    
      Volume ###  Ltr  Label        Fs     Type        Size     Status     Info 
    
    
    
      ----------  ---  -----------  -----  ----------  -------  ---------  -------- 
    
    
    
      Volume 0     C   OS           NTFS   Partition    930 GB  Healthy 
    
    
    
      Volume 1         SYSTEM       FAT32  Partition    260 MB  Healthy    Hidden 
    
    
    
      Volume 2         RECOVERY     NTFS   Partition   1024 MB  Healthy    Hidden 
    
    
    
      Volume 3     D   SSD          NTFS   Partition    119 GB  Healthy 
    
    
    
      Volume 4     E   ESD-USB      FAT32  Removable     14 GB  Healthy
    

    (I assume that output is from WinRE Command Prompt.)

    Run:

    • sel vol 1 -- selects the 260 MB EFI/FAT32 partition.
    • assign letter=Y
    • exit
    • attrib -s -h -r Y:\EFI\Microsoft\Boot\BCD
    • copy Y:\EFI\Microsoft\Boot\BCD C:\BCD.bak
    • format Y: /fs:FAT32 /q
    • bcdboot C:\Windows /s Y: /f UEFI
    1 person found this answer helpful.
    0 comments No comments

13 additional answers

Sort by: Most helpful
  1. Ramesh 176.1K Reputation points Volunteer Moderator
    2024-05-05T06:00:41+00:00

    Please post the output of:

    • diskpart
    • list disk
    • exit
    • bcdedit /enum all
    0 comments No comments
  2. Anonymous
    2024-05-05T05:49:21+00:00
    0 comments No comments
  3. Anonymous
    2024-05-05T05:45:05+00:00

    DISKPART> sel disk 0

    Disk 0 is now the selected disk. 
    
    DISKPART> list part 
    
      Partition ###  Type              Size     Offset 
    
      -------------  ----------------  -------  ------- 
    
      Partition 1    System             260 MB  1024 KB 
    
      Partition 2    Reserved            16 MB   261 MB 
    
      Partition 3    Primary            930 GB   277 MB 
    
      Partition 4    Recovery          1024 MB   930 GB 
    
    DISKPART> sel disk 1 
    
    Disk 1 is now the selected disk. 
    
    DISKPART> list part 
    
      Partition ###  Type              Size     Offset 
    
      -------------  ----------------  -------  ------- 
    
      Partition 1    Primary            119 GB  1024 KB 
    
    DISKPART> list vol 
    
      Volume ###  Ltr  Label        Fs     Type        Size     Status     Info 
    
      ----------  ---  -----------  -----  ----------  -------  ---------  -------- 
    
      Volume 0     C   OS           NTFS   Partition    930 GB  Healthy    Boot 
    
      Volume 1         SYSTEM       FAT32  Partition    260 MB  Healthy    Hidden 
    
      Volume 2     T   RECOVERY     NTFS   Partition   1024 MB  Healthy    Hidden 
    
      Volume 3     D   SSD          NTFS   Partition    119 GB  Healthy
    
    0 comments No comments
  4. Ramesh 176.1K Reputation points Volunteer Moderator
    2024-05-05T05:18:44+00:00

    Please post the output of these commands:

    • diskpart
    • sel disk 0
    • list part
    • sel disk 1
    • list part
    • list vol

    Also, share the "c:\windows\logs\ReAgent\ReAgent.log" log on OneDrive.

    0 comments No comments