Windows 10: Move Recovery Partition: Difference between revisions
From wiki.jacobjohns.com
jwiki>jjohns No edit summary |
jwiki>jjohns Created |
||
| Line 2: | Line 2: | ||
<hr /> | <hr /> | ||
< | |||
* | # In <code>diskmgmt.msc</code> 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. | ||
#Using <code>DISKPART</code> | |||
#*<code>list disk</code> | |||
#*<code>select disk <of recovery 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 | |||
Revision as of 14:29, 4 May 2023
- In
diskmgmt.mscmake 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. - Using
DISKPARTlist diskselect disk <of recovery partition>select partition <of recovery partition>assign letter=O
- 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:\
- Register the location of the recovery tools
- reagentc /disable
- reagentc /setreimage /path N:\Recovery\WindowsRE
- reagentc /enable
- Back in
diskparthide the recovery partition- For UEFI:
select volume Nset id="de94bba4-06d1-4d40-a16a-bfd50179d6ac"gpt attributes=0x8000000000000001remove
- For BIOS
select volume Nset id=27remove
- For UEFI:
- Delete the old recovery partition
list partitionselect partition <of old recovery partition>delete partition override
- Reboot the computer
- Verify recovery partition is working
reagentc /info
Source: https://superuser.com/a/1596291
