{"id":1255,"date":"2024-01-04T14:51:15","date_gmt":"2024-01-04T12:51:15","guid":{"rendered":"http:\/\/dety.net.ua\/?p=1255"},"modified":"2024-01-04T14:51:15","modified_gmt":"2024-01-04T12:51:15","slug":"windows-move-the-recovery-partition","status":"publish","type":"post","link":"https:\/\/dety.net.ua\/?p=1255","title":{"rendered":"Windows + Move the Recovery partition"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><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 <a href=\"https:\/\/docs.microsoft.com\/en-us\/windows-server\/administration\/windows-commands\/diskpart\">diskpart<\/a>, <a href=\"https:\/\/docs.microsoft.com\/en-us\/windows-hardware\/manufacture\/desktop\/dism-image-management-command-line-options-s14\">dism<\/a> and <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 class=\"wp-block-paragraph\"><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 <code>diskpart<\/code> to find current recovery partition and assign a driver letter(eg. <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. <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 <code>diskpart<\/code> 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 diskpart, dism and 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":[12],"tags":[],"class_list":["post-1255","post","type-post","status-publish","format-standard","hentry","category-windows"],"_links":{"self":[{"href":"https:\/\/dety.net.ua\/index.php?rest_route=\/wp\/v2\/posts\/1255","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dety.net.ua\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dety.net.ua\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dety.net.ua\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dety.net.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1255"}],"version-history":[{"count":1,"href":"https:\/\/dety.net.ua\/index.php?rest_route=\/wp\/v2\/posts\/1255\/revisions"}],"predecessor-version":[{"id":1256,"href":"https:\/\/dety.net.ua\/index.php?rest_route=\/wp\/v2\/posts\/1255\/revisions\/1256"}],"wp:attachment":[{"href":"https:\/\/dety.net.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1255"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dety.net.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1255"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dety.net.ua\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1255"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}