Windows 10: Move Recovery Partition: Difference between revisions

From wiki.jacobjohns.com
jwiki>jjohns
Created page with "center|frameless|500x500px == Disk Management == <br /> * Windows 10: Move Recovery Partition"
 
m 7 revisions imported
 
(6 intermediate revisions by one other user not shown)
Line 1: Line 1:
[[File:Windows 10 Logo.png|center|frameless|500x500px]]
[[File:Windows 10 Logo.png|center|frameless|500x500px]]
<hr /><br />


== Disk Management ==
# Add space to the disk via VMWare, Hyper-V, etc...
<br />
# In <code>diskmgmt.msc</code> make a filler partition and leave enough space at the end of the disk to move recovery to it.
* Windows 10: Move Recovery Partition
# Create another partition with the remaining space.  This is where our Recovery Partition will move to.  Here we are using N.
#Using <code>DISKPART</code>
#*<code>list disk</code>
#*<code>select disk <of recovery partition></code>
#*<code>list partition</code>
#*<code>select partition <of recovery partition></code>
#*<code>assign letter=O</code>
#In an elevated command prompt
#*<code>Dism /Capture-Image /ImageFile:C:\recovery-partition.wim /CaptureDir:O:\ /Name:"Recovery"</code>
#*<code>Dism /Apply-Image /ImageFile:C:\recovery-partition.wim /Index:1 /ApplyDir:N:\</code>
#Register the location of the recovery tools
#*reagentc /disable
#*reagentc /setreimage /path N:\Recovery\WindowsRE
#*reagentc /enable
#Back in <code>diskpart</code> hide the recovery partition
#*For UEFI:
#**<code>select volume N</code>
#**<code>set id="de94bba4-06d1-4d40-a16a-bfd50179d6ac"</code>
#**<code>gpt attributes=0x8000000000000001</code>
#**<code>remove</code>
#*For BIOS
#**<code>select volume N</code>
#**<code>set id=27</code>
#**<code>remove</code>
#Delete the old recovery partition
#*<code>list partition</code>
#*<code>select partition <of old recovery partition></code>
#*<code>delete partition override</code>
#Reboot the computer
#Verify recovery partition is working
#*<code>reagentc /info</code>
 
 
Source: https://superuser.com/a/1596291

Latest revision as of 16:06, 27 July 2024

Error creating thumbnail: File missing


  1. Add space to the disk via VMWare, Hyper-V, etc...
  2. In diskmgmt.msc make a filler partition and leave enough space at the end of the disk to move recovery to it.
  3. Create another partition with the remaining space. This is where our Recovery Partition will move to. Here we are using N.
  4. Using DISKPART
    • list disk
    • select disk <of recovery partition>
    • list partition
    • select partition <of recovery partition>
    • assign letter=O
  5. In an elevated command prompt
    • Dism /Capture-Image /ImageFile:C:\recovery-partition.wim /CaptureDir:O:\ /Name:"Recovery"
    • Dism /Apply-Image /ImageFile:C:\recovery-partition.wim /Index:1 /ApplyDir:N:\
  6. Register the location of the recovery tools
    • reagentc /disable
    • reagentc /setreimage /path N:\Recovery\WindowsRE
    • reagentc /enable
  7. Back in diskpart hide the recovery partition
    • For UEFI:
      • select volume N
      • set id="de94bba4-06d1-4d40-a16a-bfd50179d6ac"
      • gpt attributes=0x8000000000000001
      • remove
    • For BIOS
      • select volume N
      • set id=27
      • remove
  8. Delete the old recovery partition
    • list partition
    • select partition <of old recovery partition>
    • delete partition override
  9. Reboot the computer
  10. Verify recovery partition is working
    • reagentc /info


Source: https://superuser.com/a/1596291