How to move non-functioning WinRE partition from start of disk to end and re-install it there?


dbookbinder

Member
Local time
2:12 AM
Posts
60
OS
Windows 11
After a less-than-successful attempt to clone my boot drive using Macrium Reflect, I used the Data Migration part of Samsung Magician. It moved what used to be my WinRE partition to the front of the disk and turned it into what appears to be useless space -- all I can do is "Delete Volume" in Disk Management -- and of course removed WinRE.

See attached screenshot.

How do I move the former WinRE space to the end of the drive, where it belongs, and re-install WinRE there? I'm not that familiar with moving partitions around and have found the explanations on various sites bewildering, so a simple step-by-step would be wonderful.

I'd prefer not to take the computer apart and re-clone the drive using yet another cloning program.

Thanks!
 
Windows Build/Version
Windows 11 Pro, v23H2

Attachments

  • Disk Management.jpg
    Disk Management.jpg
    84.8 KB · Views: 1
  • Disk Management.jpg
    Disk Management.jpg
    84.8 KB · Views: 2

My Computer

System One

  • OS
    Windows 11
    Computer type
    Laptop
    Manufacturer/Model
    HP
    CPU
    i7-1355U
    Motherboard
    HP
    Memory
    64GB
    Graphics Card(s)
    Intel IRIS 1GB
    Sound Card
    Realtek (internal)
    Monitor(s) Displays
    Stock and external 27" Acer monitor
    Screen Resolution
    1080p
    Hard Drives
    NVme 2TB (Windows), 2TB SSD
    PSU
    Stock
    Case
    Stock
    Cooling
    Stock
    Keyboard
    Stock and external HP keyboard
    Mouse
    Trackpad and external Logitech wired mouse
    Internet Speed
    FIOS 1GB
    Browser
    Chrome, Edge, Brave
    Antivirus
    Avast
    Other Info
    2TB Timetec NVme boot drive, 2TB 3D NAND SSD drive
and of course removed WinRE
how do you know?

is it a problem in its current postition?
 

My Computers

System One System Two

  • OS
    Win7
    Computer type
    PC/Desktop
    CPU
    i5-8400
    Motherboard
    gigabyte b365m ds3h
    Memory
    2x8gb 3200mhz
    Monitor(s) Displays
    benq gw2480
    PSU
    bequiet pure power 11 400CM
    Cooling
    cryorig m9i
  • Operating System
    win7
    Computer type
    PC/Desktop
    CPU
    pentium g5400
    Motherboard
    gigabyte b365m ds3h
    Memory
    1x8gb 2400
    PSU
    xfx pro 450
playing around with partitions is make or break. You won't even see it in file explorer because it doesn't have a letter assigned to it. I'll just leave those partitions alone.
 

My Computers

System One System Two

  • OS
    Windows 11 Pro
    Computer type
    PC/Desktop
    CPU
    AMD Ryzen 9 3900X
    Motherboard
    MSI MPG Gaming Edge Wifi (X570)
    Memory
    32GB Adata XPG DDR4
    Graphics Card(s)
    ASUS GTX 1070 8GB ROG
    Monitor(s) Displays
    LG Ultrawide 34"
    Screen Resolution
    3440x1440
    Hard Drives
    Main Boot Drive : 512GB Adata XPG RGB Gen3x4 NVMe M.2 SSD
    PSU
    EVGA 600 Watts Gold
    Case
    Deepcool Genome II
    Cooling
    Deepcool Fryzen
    Internet Speed
    1Gbps
    Browser
    Chrome
    Antivirus
    "Moderna"
  • Operating System
    Windows 11 Pro
    Computer type
    PC/Desktop
    CPU
    i7-4790K
    Motherboard
    ASRock Xtreme6 Z97
    Memory
    16GB Corsair Vengeance Pro
    Graphics card(s)
    MSI R9 290
    Monitor(s) Displays
    LG Ultrawide 34"
    Screen Resolution
    3440x1440
    Hard Drives
    Samsung M.2
    PSU
    Thermaltake 475 Watts 80 Bronze
    Case
    Thermaltake Commander I Snow Edition
    Cooling
    Deep Cool Archer Air Cooler
    Mouse
    Logitech G402
    Keyboard
    Armageddon MKA-5R RGB-Hornet
    Internet Speed
    1Gbps
    Browser
    Chrome
    Antivirus
    Moderna :)
how do you know?

is it a problem in its current postition?
Yes, it's a problem. WinRE is inactive, though the files are still there. When I type reagentc /enable, it says there is no WinRE. Also, I recently had to enlarge the partition. If I ever have to do that again, I won't be able to in its current location because the EFI and hidden Microsoft partitions are in the way.

The one option I see in Disk Management when I right click on that now-useless partition is Delete Volume. If I do that, can I 1) move the EFI partition and Microsoft partitions to the left, into the unallocated space, and then 2) merge the main partition into the remaining unallocated space and finally 3) create a new partition for WinRE at the end of the disk and somehow re-create it there?
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    Laptop
    Manufacturer/Model
    HP
    CPU
    i7-1355U
    Motherboard
    HP
    Memory
    64GB
    Graphics Card(s)
    Intel IRIS 1GB
    Sound Card
    Realtek (internal)
    Monitor(s) Displays
    Stock and external 27" Acer monitor
    Screen Resolution
    1080p
    Hard Drives
    NVme 2TB (Windows), 2TB SSD
    PSU
    Stock
    Case
    Stock
    Cooling
    Stock
    Keyboard
    Stock and external HP keyboard
    Mouse
    Trackpad and external Logitech wired mouse
    Internet Speed
    FIOS 1GB
    Browser
    Chrome, Edge, Brave
    Antivirus
    Avast
    Other Info
    2TB Timetec NVme boot drive, 2TB 3D NAND SSD drive
So winre.wim is there, but samsung didnt change the bcd entry to point at it. It also might not have the correct partition id

If you move the start of the os partition it has to be done from outside windows, and the bcd entry will need to be adjusted.

It is only 873mb, you could just fish winre.wim out first, copy it into %windir%\system32\recovery and delete the .xml file that is in there.

then delete the 873 partition and it leave it as unallocated

You can shrink your os partition from the right by however much you want for the recov partition then use that newly created unallocated space to create ms recovery partition.

then reagentc /enable
 

My Computers

System One System Two

  • OS
    Win7
    Computer type
    PC/Desktop
    CPU
    i5-8400
    Motherboard
    gigabyte b365m ds3h
    Memory
    2x8gb 3200mhz
    Monitor(s) Displays
    benq gw2480
    PSU
    bequiet pure power 11 400CM
    Cooling
    cryorig m9i
  • Operating System
    win7
    Computer type
    PC/Desktop
    CPU
    pentium g5400
    Motherboard
    gigabyte b365m ds3h
    Memory
    1x8gb 2400
    PSU
    xfx pro 450
So winre.wim is there, but samsung didnt change the bcd entry to point at it. It also might not have the correct partition id

If you move the start of the os partition it has to be done from outside windows, and the bcd entry will need to be adjusted.

It is only about 800mb, you could just leave it as unallocated
Okay, I don't mind sacrificing that space. Should I delete the volume?

If sacrifice that space, how do I create a new WinRE partition? I've been all over the web trying to find a clear step-by-step. If you can provide one, I'd really appreciate it.

I did find a YouTube video that kind of spelled it out, but it involved finding the WIM.RE file in the Recovery folder of System32. That folder doesn't contain the WIM.RE file. It's apparently still in the non-functional partition Samsung Magician created.
 
Last edited:

My Computer

System One

  • OS
    Windows 11
    Computer type
    Laptop
    Manufacturer/Model
    HP
    CPU
    i7-1355U
    Motherboard
    HP
    Memory
    64GB
    Graphics Card(s)
    Intel IRIS 1GB
    Sound Card
    Realtek (internal)
    Monitor(s) Displays
    Stock and external 27" Acer monitor
    Screen Resolution
    1080p
    Hard Drives
    NVme 2TB (Windows), 2TB SSD
    PSU
    Stock
    Case
    Stock
    Cooling
    Stock
    Keyboard
    Stock and external HP keyboard
    Mouse
    Trackpad and external Logitech wired mouse
    Internet Speed
    FIOS 1GB
    Browser
    Chrome, Edge, Brave
    Antivirus
    Avast
    Other Info
    2TB Timetec NVme boot drive, 2TB 3D NAND SSD drive
use diskgenius DiskGenius Download Center | Free Download DiskGenius

the free version will let you do all of this

in diskgenius click on the 873mb partition, then select the FILES tab, rt click the winre.wim and select copy to

1. copy winre.wim from the 873mb partition into your windows\system32\recovery folder
2. delete the .xml file from your windows\system32\recovery folder
3. delete the 873mb partition
4. shrink your os partition from the right by however much you want, lets say 1gb
5. rt click on that 1gb unallocated space and select create partition - tell it you want ms recovery partition in the dropdown- click Ok
6. click Save All
 
Last edited:

My Computers

System One System Two

  • OS
    Win7
    Computer type
    PC/Desktop
    CPU
    i5-8400
    Motherboard
    gigabyte b365m ds3h
    Memory
    2x8gb 3200mhz
    Monitor(s) Displays
    benq gw2480
    PSU
    bequiet pure power 11 400CM
    Cooling
    cryorig m9i
  • Operating System
    win7
    Computer type
    PC/Desktop
    CPU
    pentium g5400
    Motherboard
    gigabyte b365m ds3h
    Memory
    1x8gb 2400
    PSU
    xfx pro 450
ther is a bit of space at the end of this disk

dg-ms-recov1.jpg

rt click on that space and select create new partition

dg-ms-recov2.jpg



this pops up asking what type of partition


dg-ms-recov3.jpg

in the dropdown select Microsoft recovery partition

dg-ms-recov4.jpg

Click OK

dg-ms-recov5.jpg

Click Save All

dg-ms-recov6.jpg



dg-ms-recov7.jpg
 

My Computers

System One System Two

  • OS
    Win7
    Computer type
    PC/Desktop
    CPU
    i5-8400
    Motherboard
    gigabyte b365m ds3h
    Memory
    2x8gb 3200mhz
    Monitor(s) Displays
    benq gw2480
    PSU
    bequiet pure power 11 400CM
    Cooling
    cryorig m9i
  • Operating System
    win7
    Computer type
    PC/Desktop
    CPU
    pentium g5400
    Motherboard
    gigabyte b365m ds3h
    Memory
    1x8gb 2400
    PSU
    xfx pro 450
Personally, if winre is in its storage location in Windows\Sysyem32, I don't bother with a recovery position for it. I just do reagentc /enable and it sets up the recovery function in C:\Recovery. I see no need for the stock Windows recovery partition.
 

My Computers

System One System Two

  • OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    Homebuilt
    CPU
    AMD Ryzen 7 3800XT
    Motherboard
    ASUS ROG Crosshair VII Hero (WiFi)
    Memory
    32GB
    Graphics Card(s)
    EVGA GeForce GTX 1080 Ti
  • Operating System
    Windows 11 Education
    Computer type
    Laptop
    Manufacturer/Model
    Dell Inspiron 7773
    CPU
    Intel i7-8550U
    Memory
    32GB
    Graphics card(s)
    Nvidia Geforce MX150
    Sound Card
    Realtek
    Monitor(s) Displays
    17"
    Screen Resolution
    1920 x 1080
    Hard Drives
    Toshiba 512GB NVMe SSD
    SK Hynix 512GB SATA SSD
    Internet Speed
    Fast!
I dont bother with it either.

If the op doesnt want a recovery partition he can just follow the first few steps


use diskgenius DiskGenius Download Center | Free Download DiskGenius

the free version will let you do this

in diskgenius click on the 873mb partition, then select the FILES tab, rt click the winre.wim and select copy to

1. copy winre.wim from the 873mb partition into your windows\system32\recovery folder
2. delete the .xml file from your windows\system32\recovery folder
3. delete the 873mb partition


then at admin cmd prompt
reagentc /enable
 

My Computers

System One System Two

  • OS
    Win7
    Computer type
    PC/Desktop
    CPU
    i5-8400
    Motherboard
    gigabyte b365m ds3h
    Memory
    2x8gb 3200mhz
    Monitor(s) Displays
    benq gw2480
    PSU
    bequiet pure power 11 400CM
    Cooling
    cryorig m9i
  • Operating System
    win7
    Computer type
    PC/Desktop
    CPU
    pentium g5400
    Motherboard
    gigabyte b365m ds3h
    Memory
    1x8gb 2400
    PSU
    xfx pro 450
4. shrink your os partition from the right by however much you want, lets say 1gb
5. rt click on that 1gb unallocated space and select create partition - tell it you want ms recovery partition in the dropdown- click Ok
6. click Save All
Thanks for your instructions.

When I go to shrink the partition, it warns me that it's going to boot into Windows PE, which is not installed on my system, as far as I know. Did DiskGenius install it? Just trying to avoid a failure-to-boot situation.

I had DiskGenius already and was going to use it until I discovered Samsung Magician and figured they knew their own hardware. Apparently this issue is one that's been going on with them for years.
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    Laptop
    Manufacturer/Model
    HP
    CPU
    i7-1355U
    Motherboard
    HP
    Memory
    64GB
    Graphics Card(s)
    Intel IRIS 1GB
    Sound Card
    Realtek (internal)
    Monitor(s) Displays
    Stock and external 27" Acer monitor
    Screen Resolution
    1080p
    Hard Drives
    NVme 2TB (Windows), 2TB SSD
    PSU
    Stock
    Case
    Stock
    Cooling
    Stock
    Keyboard
    Stock and external HP keyboard
    Mouse
    Trackpad and external Logitech wired mouse
    Internet Speed
    FIOS 1GB
    Browser
    Chrome, Edge, Brave
    Antivirus
    Avast
    Other Info
    2TB Timetec NVme boot drive, 2TB 3D NAND SSD drive
I dont bother with it either.

If the op doesnt want a recovery partition he can just follow the first few steps





then at admin cmd prompt
reagentc /enable
Wait -- are you saying I can just install the WinRE environment on the C drive? And never have to worry about resizing the WinRE partition again? Is there any downside to that? If I use Bitlocker on Drive C:, which I need to do, will that be a problem for WinRE if it's on the C: drive?
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    Laptop
    Manufacturer/Model
    HP
    CPU
    i7-1355U
    Motherboard
    HP
    Memory
    64GB
    Graphics Card(s)
    Intel IRIS 1GB
    Sound Card
    Realtek (internal)
    Monitor(s) Displays
    Stock and external 27" Acer monitor
    Screen Resolution
    1080p
    Hard Drives
    NVme 2TB (Windows), 2TB SSD
    PSU
    Stock
    Case
    Stock
    Cooling
    Stock
    Keyboard
    Stock and external HP keyboard
    Mouse
    Trackpad and external Logitech wired mouse
    Internet Speed
    FIOS 1GB
    Browser
    Chrome, Edge, Brave
    Antivirus
    Avast
    Other Info
    2TB Timetec NVme boot drive, 2TB 3D NAND SSD drive
If you are using bitlocker then it is advised to have a separate recov partition

shrink your os partition by a decent amount to create space for it . I suggested 1gb , but there is no harm in having 1.5gb recov partition
 

My Computers

System One System Two

  • OS
    Win7
    Computer type
    PC/Desktop
    CPU
    i5-8400
    Motherboard
    gigabyte b365m ds3h
    Memory
    2x8gb 3200mhz
    Monitor(s) Displays
    benq gw2480
    PSU
    bequiet pure power 11 400CM
    Cooling
    cryorig m9i
  • Operating System
    win7
    Computer type
    PC/Desktop
    CPU
    pentium g5400
    Motherboard
    gigabyte b365m ds3h
    Memory
    1x8gb 2400
    PSU
    xfx pro 450
there is a bit of space at the end of this disk
There is no space at the end of the disk -- Samsung allocated all of it. I assume you are referring to the 1GB I will create by shrinking C:, and from the message I got from DiskGenius, I am also figuring I should boot from a DiskGenius WinPE drive to do the shrinking and creating of the new partition. Is that correct? And is there a potential good reason to do this, rather than just have the recovery environment live on the C: drive?
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    Laptop
    Manufacturer/Model
    HP
    CPU
    i7-1355U
    Motherboard
    HP
    Memory
    64GB
    Graphics Card(s)
    Intel IRIS 1GB
    Sound Card
    Realtek (internal)
    Monitor(s) Displays
    Stock and external 27" Acer monitor
    Screen Resolution
    1080p
    Hard Drives
    NVme 2TB (Windows), 2TB SSD
    PSU
    Stock
    Case
    Stock
    Cooling
    Stock
    Keyboard
    Stock and external HP keyboard
    Mouse
    Trackpad and external Logitech wired mouse
    Internet Speed
    FIOS 1GB
    Browser
    Chrome, Edge, Brave
    Antivirus
    Avast
    Other Info
    2TB Timetec NVme boot drive, 2TB 3D NAND SSD drive
If you are using bitlocker then it is advised to have a separate recov partition
Okay, just saw this. So, should I perform steps 4-6 after booting from a DiskGenius USB boot drive? Sorry, this is all new to me.
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    Laptop
    Manufacturer/Model
    HP
    CPU
    i7-1355U
    Motherboard
    HP
    Memory
    64GB
    Graphics Card(s)
    Intel IRIS 1GB
    Sound Card
    Realtek (internal)
    Monitor(s) Displays
    Stock and external 27" Acer monitor
    Screen Resolution
    1080p
    Hard Drives
    NVme 2TB (Windows), 2TB SSD
    PSU
    Stock
    Case
    Stock
    Cooling
    Stock
    Keyboard
    Stock and external HP keyboard
    Mouse
    Trackpad and external Logitech wired mouse
    Internet Speed
    FIOS 1GB
    Browser
    Chrome, Edge, Brave
    Antivirus
    Avast
    Other Info
    2TB Timetec NVme boot drive, 2TB 3D NAND SSD drive
Not necessarily

in windows disk mgmt rt clcik your os partition and select shrink. It will calcualte how much is the maximum shrink. You dont want the max so type in about 1.5gb which 1536 mb 1572864 KB

then you an use that 1.5gb space to create recov partition using diskgenius. Or diskpart commands, whichever takes your fancy
 

My Computers

System One System Two

  • OS
    Win7
    Computer type
    PC/Desktop
    CPU
    i5-8400
    Motherboard
    gigabyte b365m ds3h
    Memory
    2x8gb 3200mhz
    Monitor(s) Displays
    benq gw2480
    PSU
    bequiet pure power 11 400CM
    Cooling
    cryorig m9i
  • Operating System
    win7
    Computer type
    PC/Desktop
    CPU
    pentium g5400
    Motherboard
    gigabyte b365m ds3h
    Memory
    1x8gb 2400
    PSU
    xfx pro 450
Not necessarily

in windows disk mgmt rt clcik your os partition and select shrink. It will calcualte how much is the maximum shrink. You dont want the max so type in about 1.5gb which 1536 mb 1048576 KB
Okay, I'll do that. Just shrink it in Disk Management and leave it unallocated.

Then back to DiskGenius to re-create the WinRE partition, and re-enable WinRE with reagentc /enable and I'm done?
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    Laptop
    Manufacturer/Model
    HP
    CPU
    i7-1355U
    Motherboard
    HP
    Memory
    64GB
    Graphics Card(s)
    Intel IRIS 1GB
    Sound Card
    Realtek (internal)
    Monitor(s) Displays
    Stock and external 27" Acer monitor
    Screen Resolution
    1080p
    Hard Drives
    NVme 2TB (Windows), 2TB SSD
    PSU
    Stock
    Case
    Stock
    Cooling
    Stock
    Keyboard
    Stock and external HP keyboard
    Mouse
    Trackpad and external Logitech wired mouse
    Internet Speed
    FIOS 1GB
    Browser
    Chrome, Edge, Brave
    Antivirus
    Avast
    Other Info
    2TB Timetec NVme boot drive, 2TB 3D NAND SSD drive
yes, if you have copied winre.wim off the 873mb first
 

My Computers

System One System Two

  • OS
    Win7
    Computer type
    PC/Desktop
    CPU
    i5-8400
    Motherboard
    gigabyte b365m ds3h
    Memory
    2x8gb 3200mhz
    Monitor(s) Displays
    benq gw2480
    PSU
    bequiet pure power 11 400CM
    Cooling
    cryorig m9i
  • Operating System
    win7
    Computer type
    PC/Desktop
    CPU
    pentium g5400
    Motherboard
    gigabyte b365m ds3h
    Memory
    1x8gb 2400
    PSU
    xfx pro 450
yes, if you have copied winre.wim off the 873mb first
I did copy the Winre.wim, and reagentc said it was successful. Thank you for walking me through this. I spent a couple of hours trying to figure this out from all kinds of sources, and you're the first to point out this relatively simple method. Much appreciated!

I have two final questions.
  1. If I become OCD about it (which I seem to be about computers - I want them to work as advertised), can I re-create the MSR and EFI partitions in that unallocated space at the beginning of the drive using DiskGenius? I see that I can select MBR and EFI in the dropdown list there. Or will I just mess things up by trying?
  2. Disk Genius identifies the EFI partition as "System-Damaged". Do I need to do something to repair it?
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    Laptop
    Manufacturer/Model
    HP
    CPU
    i7-1355U
    Motherboard
    HP
    Memory
    64GB
    Graphics Card(s)
    Intel IRIS 1GB
    Sound Card
    Realtek (internal)
    Monitor(s) Displays
    Stock and external 27" Acer monitor
    Screen Resolution
    1080p
    Hard Drives
    NVme 2TB (Windows), 2TB SSD
    PSU
    Stock
    Case
    Stock
    Cooling
    Stock
    Keyboard
    Stock and external HP keyboard
    Mouse
    Trackpad and external Logitech wired mouse
    Internet Speed
    FIOS 1GB
    Browser
    Chrome, Edge, Brave
    Antivirus
    Avast
    Other Info
    2TB Timetec NVme boot drive, 2TB 3D NAND SSD drive
Disk Genius identifies the EFI partition as "System-Damaged".
is it offering to fix it ?

can I re-create the MSR and EFI partitions in that unallocated space at the beginning of the drive using DiskGenius? I see that I can select MBR and EFI in the dropdown list there. Or will I just mess things up by trying?
You could but why ?

Diskgen boot media could be used to delete the previous esp and msr and then create new ones at the begining of the disk.

Then populate the new esp with the boot critical files using bcdboot command
 

My Computers

System One System Two

  • OS
    Win7
    Computer type
    PC/Desktop
    CPU
    i5-8400
    Motherboard
    gigabyte b365m ds3h
    Memory
    2x8gb 3200mhz
    Monitor(s) Displays
    benq gw2480
    PSU
    bequiet pure power 11 400CM
    Cooling
    cryorig m9i
  • Operating System
    win7
    Computer type
    PC/Desktop
    CPU
    pentium g5400
    Motherboard
    gigabyte b365m ds3h
    Memory
    1x8gb 2400
    PSU
    xfx pro 450

Latest Support Threads

Back
Top Bottom