{"id":527,"date":"2022-12-05T17:18:56","date_gmt":"2022-12-05T17:18:56","guid":{"rendered":"https:\/\/merserver.com\/?p=527"},"modified":"2022-12-05T17:18:56","modified_gmt":"2022-12-05T17:18:56","slug":"how-to-move-windows-recovery-partition","status":"publish","type":"post","link":"http:\/\/merserver.com\/index.php\/2022\/12\/05\/how-to-move-windows-recovery-partition\/","title":{"rendered":"How to move Windows Recovery Partition"},"content":{"rendered":"\n<p><strong>Warning 1: You must know what the following commands do before you execute them. Check the link above and MS&#8217;s documentation for&nbsp;<a href=\"https:\/\/docs.microsoft.com\/en-us\/windows-server\/administration\/windows-commands\/diskpart\">diskpart<\/a>,&nbsp;<a href=\"https:\/\/docs.microsoft.com\/en-us\/windows-hardware\/manufacture\/desktop\/dism-image-management-command-line-options-s14\">dism<\/a>&nbsp;and&nbsp;<a href=\"https:\/\/docs.microsoft.com\/en-us\/windows-hardware\/manufacture\/desktop\/reagentc-command-line-options\">reagentc<\/a>.<\/strong><\/p>\n\n\n\n<p><strong>Warning 2: Check disk numbers, partition numbers and volume letters carefully before executing commands.<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Use&nbsp;<code>diskpart<\/code>&nbsp;to find current recovery partition and assign a driver letter(eg.&nbsp;<code>O<\/code>) to it:<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>DISKPART&gt; list disk\nDISKPART&gt; select disk &lt;the-number-of-disk-where-current-recovery-partition-locate&gt;\nDISKPART&gt; list partition\nDISKPART&gt; select partition &lt;the-number-of-current-recovery-partition&gt;\nDISKPART&gt; assign letter=O\n<\/code><\/pre>\n\n\n\n<ol class=\"wp-block-list\" start=\"2\">\n<li>Create an image file from current recovery partition:<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>Dism \/Capture-Image \/ImageFile:C:\\recovery-partition.wim \/CaptureDir:O:\\ \/Name:\"Recovery\"\n<\/code><\/pre>\n\n\n\n<ol class=\"wp-block-list\" start=\"3\">\n<li>Apply the created image file to another partition(eg.&nbsp;<code>N<\/code>) that will become the new recovery partition:<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>Dism \/Apply-Image \/ImageFile:C:\\recovery-partition.wim \/Index:1 \/ApplyDir:N:\\\n<\/code><\/pre>\n\n\n\n<ol class=\"wp-block-list\" start=\"4\">\n<li>Register the location of the recovery tools:<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>reagentc \/disable\nreagentc \/setreimage \/path N:\\Recovery\\WindowsRE\nreagentc \/enable\n<\/code><\/pre>\n\n\n\n<ol class=\"wp-block-list\" start=\"5\">\n<li>Use&nbsp;<code>diskpart<\/code>&nbsp;to hide the recovery partition:<ul><li>For UEFI:<\/li><\/ul><code>DISKPART&gt; select volume N DISKPART&gt; set id=\"de94bba4-06d1-4d40-a16a-bfd50179d6ac\" DISKPART&gt; gpt attributes=0x8000000000000001 DISKPART&gt; remove<\/code><ul><li>For BIOS:<\/li><\/ul><code>DISKPART&gt; select volume N DISKPART&gt; set id=27 DISKPART&gt; remove<\/code><\/li>\n\n\n\n<li>Reboot the computer, now the new recovery partition should be working<\/li>\n\n\n\n<li>(Optional) Delete the old recovery partition:<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>DISKPART&gt; select volume O\nDISKPART&gt; delete partition override\n<\/code><\/pre>\n\n\n\n<ol class=\"wp-block-list\" start=\"8\">\n<li>(Optional) Check if the recovery partition is working:\n<ol class=\"wp-block-list\">\n<li>Show the current status:<code>reagentc \/info<\/code><\/li>\n\n\n\n<li>Specifies that Windows RE starts automatically the next time the system starts:<code>reagentc \/boottore<\/code><\/li>\n\n\n\n<li>Reboot the computer and do your stuff in Windows RE (eg. enter CMD and run some tools)<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Warning 1: You must know what the following commands do before you execute them. Check the link above and MS&#8217;s documentation for&nbsp;diskpart,&nbsp;dism&nbsp;and&nbsp;reagentc. Warning 2: Check disk numbers, partition numbers and volume letters carefully before executing commands.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-527","post","type-post","status-publish","format-standard","hentry","category-it"],"_links":{"self":[{"href":"http:\/\/merserver.com\/index.php\/wp-json\/wp\/v2\/posts\/527","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/merserver.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/merserver.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/merserver.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/merserver.com\/index.php\/wp-json\/wp\/v2\/comments?post=527"}],"version-history":[{"count":1,"href":"http:\/\/merserver.com\/index.php\/wp-json\/wp\/v2\/posts\/527\/revisions"}],"predecessor-version":[{"id":528,"href":"http:\/\/merserver.com\/index.php\/wp-json\/wp\/v2\/posts\/527\/revisions\/528"}],"wp:attachment":[{"href":"http:\/\/merserver.com\/index.php\/wp-json\/wp\/v2\/media?parent=527"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/merserver.com\/index.php\/wp-json\/wp\/v2\/categories?post=527"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/merserver.com\/index.php\/wp-json\/wp\/v2\/tags?post=527"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}