Windows 10: Move Recovery Partition: Difference between revisions

From wiki.jacobjohns.com
jwiki>jjohns
No edit summary
jwiki>jjohns
added list partition to step 2
Line 8: Line 8:
#*<code>list disk</code>
#*<code>list disk</code>
#*<code>select disk <of recovery partition></code>
#*<code>select disk <of recovery partition></code>
#*<code>list partition</code>
#*<code>select partition <of recovery partition></code>
#*<code>select partition <of recovery partition></code>
#*<code>assign letter=O</code>
#*<code>assign letter=O</code>

Revision as of 13:11, 6 June 2024

Error creating thumbnail: File missing


  1. In diskmgmt.msc make a partition at the end of the disk and assign it a letter. This is where our Recovery Partition will move to. Here we are using N.
  2. Using DISKPART
    • list disk
    • select disk <of recovery partition>
    • list partition
    • select partition <of recovery partition>
    • assign letter=O
  3. 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:\
  4. Register the location of the recovery tools
    • reagentc /disable
    • reagentc /setreimage /path N:\Recovery\WindowsRE
    • reagentc /enable
  5. 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
  6. Delete the old recovery partition
    • list partition
    • select partition <of old recovery partition>
    • delete partition override
  7. Reboot the computer
  8. Verify recovery partition is working
    • reagentc /info


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