{"id":618,"date":"2017-09-07T18:44:00","date_gmt":"2017-09-08T01:44:00","guid":{"rendered":"https:\/\/kb.terabyteunlimited.com\/kb-articles\/removing-the-windows-10-recovery-winre-partition\/"},"modified":"2021-09-08T15:36:27","modified_gmt":"2021-09-08T22:36:27","slug":"removing-the-windows-10-recovery-winre-partition","status":"publish","type":"lsvr_kba","link":"https:\/\/www.terabyteunlimited.com\/kb\/kb-articles\/removing-the-windows-10-recovery-winre-partition\/","title":{"rendered":"Removing the Windows 10 Recovery (WinRE) Partition"},"content":{"rendered":"<p><strong><span style=\"color: #000066; font-size: large;\">Introduction<\/span><\/strong><\/p>\r\n<p>This article provides instructions to remove the Windows 10 Recovery (WinRE) partition from an MBR\/EMBR disk. Removing the partition may be desirable to free up a partition table slot or recover space lost by its creation when Windows 10 was upgraded. <em>Removing the currently enabled Recovery (WinRE) partition from a GPT disk is not recommended.<\/em><\/p>\r\n<p>Due to the integration of the Windows Recovery Environment (WinRE) it's recommended to keep it functional by moving it to the Windows partition instead of simply deleting the Recovery partition and leaving WinRE in a broken state.<\/p>\r\n<p>On a normal Windows 10 installation to an empty MBR disk, the WinRE files will be placed on the <em>System Reserved<\/em> partition and not a separate Recovery partition. However, if the install is done to an existing partition (as might be configured in a multi-boot system), Windows will create a new Recovery partition when it's upgraded and place the WinRE files on it. This new partition is created using space taken from the end of the Windows partition, which is resized smaller. The Recovery partition is usually 450MB in size, but may be larger, and will show as <em>Recovery Partition<\/em> in Disk Management. The partition is a hidden NTFS (type 27) partition and is treated as a special partition by Windows. For example, Disk Management will not allow assigning a drive letter or deleting the partition. Both operations can be performed using the DISKPART utility from the Command Prompt, however (refer to applicable section at end of article).\u00a0\u00a0<\/p>\r\n<p><span style=\"color: #333399;\"><strong>WinRE included on System Reserved partition<\/strong><\/span><\/p>\r\n<p style=\"margin: 0px; padding: 0px; overflow: auto;\"><img decoding=\"async\" src=\"https:\/\/www.terabyteunlimited.com\/kb\/images\/618\/kb_618_a.png\" align=\"baseline\" \/><\/p>\r\n<p><span style=\"color: #333399;\"><strong>WinRE installed on Recovery partition<\/strong><\/span><\/p>\r\n<p style=\"margin: 0px; padding: 0px; overflow: auto;\"><img decoding=\"async\" src=\"https:\/\/www.terabyteunlimited.com\/kb\/images\/618\/kb_618_b.png\" align=\"baseline\" \/><\/p>\r\n<p>Making a backup image of the Recovery partition(s) before beginning is recommended. Aside from having the backup, it also provides an easy method to determine the contents of the partition(s) if you're unsure that a partition (or which partition) contains WinRE. (If there are multiple Recovery partitions on the disk, the most current\/active one is usually the one located directly after the Windows partition.) Below is a Recovery partition image opened in TBIView showing the <em>&#92;Recovery&#92;WindowsRE<\/em> folder, which contains the winre.wim file.<\/p>\r\n<p style=\"margin: 0px; padding: 0px; overflow: auto;\"><img decoding=\"async\" src=\"https:\/\/www.terabyteunlimited.com\/kb\/images\/618\/kb_618_c.png\" align=\"baseline\" \/><\/p>\r\n<p><strong>Note:<\/strong> The procedure below assumes a standard Windows 10 WinRE exists and is in a functional state. Due to the nature of WinRE and the multitude of system configurations there may be systems where WinRE requires repairs to function properly after the removal procedure is completed.<\/p>\r\n<p><strong><span style=\"color: #000066; font-size: large;\">Instructions<\/span><\/strong><\/p>\r\n<ol type=\"1\">\r\n\t<li>If you are using BootIt BM for multi-booting, make sure the applicable Recovery partition is loaded into the MBR for the Windows being booted.<br \/>\r\n<br \/>\r\n<\/li>\r\n\t<li>Boot into Windows.<br \/>\r\n<br \/>\r\n<\/li>\r\n\t<li>Open an Administrator Command Prompt: Press the <strong>Windows Key<\/strong> to display the Start screen and then type <strong>Command Prompt<\/strong>. The program should show in the search results. Right-click on the <strong>Command Prompt<\/strong> item and click <strong>Run as administrator<\/strong>. If a UAC prompt is displayed, click the <strong>Yes<\/strong> button.<br \/>\r\n<br \/>\r\nAlternatively, you can press <strong>WinKey+X<\/strong> to display the <strong>Quick Link<\/strong> menu. Select <strong>Command Prompt (Admin)<\/strong> or <strong>Windows PowerShell (Admin)<\/strong> and click <strong>Yes<\/strong> on the UAC prompt (if displayed). <br \/>\r\n<br \/>\r\nIf you run Windows PowerShell, you can switch to the normal Command Prompt by running the following command:<br \/>\r\n<span style=\"color: #008800; font-family: Courier New, Courier, monospace;\"><strong>cmd<\/strong><\/span> <br \/>\r\n<br \/>\r\n<\/li>\r\n\t<li>Run the following command to disable WinRE:<br \/>\r\n<span style=\"color: #008800; font-family: Courier New, Courier, monospace;\"><strong>reagentc \/disable<\/strong><\/span><br \/>\r\n<br \/>\r\n<\/li>\r\n\t<li>Verify that <strong>winre.wim<\/strong> now exists in the <span style=\"color: #008800; font-family: Courier New, Courier, monospace;\"><strong>C:&#92;Windows&#92;System32&#92;Recovery<\/strong><\/span> folder. Run:<br \/>\r\n<span style=\"color: #008800; font-family: Courier New, Courier, monospace;\"><strong>dir \/a C:&#92;Windows&#92;System32&#92;Recovery<\/strong><\/span><br \/>\r\n<br \/>\r\nFor a standard installation of Windows you should see <strong>winre.wim<\/strong> in the list of files. For OEM installations it may or may not be there, depending on the configuration.<br \/>\r\n<br \/>\r\n<strong>Note:<\/strong> If the file doesn't exist and you want to keep WinRE you can either keep the Recovery (WinRE) partition or go ahead and delete it and copy the winre.wim file from your backup image (if the winre.wim file can't be found you won't be able to enable WinRE until it's repaired). Copying the file may require other modifications before WinRE can be enabled (see section at end of article).<br \/>\r\n<br \/>\r\n<\/li>\r\n\t<li>Delete the Recovery partition: This can be done using BootIt BM, Partition Work in IFL GUI, DISKPART, etc., but not Disk Management as Windows protects the partition. If you will be using DISKPART, refer to the applicable section at the end of this article for instructions.<br \/>\r\n<br \/>\r\n<\/li>\r\n\t<li>After the partition has been deleted, boot back into Windows, if necessary.<br \/>\r\n<br \/>\r\n<\/li>\r\n\t<li>Open an Administrator Command Prompt and run the following command to enable WinRE on the Windows partition:<br \/>\r\n<span style=\"color: #008800; font-family: Courier New, Courier, monospace;\"><strong>reagentc \/enable<\/strong><\/span><br \/>\r\n<br \/>\r\n<strong>Note:<\/strong> If there is an error enabling WinRE see the following section for details on repairing WinRE.<\/li>\r\n<\/ol>\r\n<p>&nbsp;<\/p>\r\n<hr \/>\r\n<p>&nbsp;<\/p>\r\n<p><span style=\"color: #333399;\"><strong>WinRE Fails to Enable After Recovery Partition is Removed<\/strong><\/span><\/p>\r\n<p>Enabling WinRE can fail for a number of reasons, including:<\/p>\r\n<ul>\r\n\t<li>The winre.wim file is missing or not at an expected location.<\/li>\r\n\t<li>WinRE only partially disabled or enabled.<\/li>\r\n\t<li>The configuration file (ReAgent.xml) contains invalid information.<\/li>\r\n<\/ul>\r\n<p>To repair any of these issues refer to the following KB article:<br \/>\r\n<a href=\"https:\/\/www.terabyteunlimited.com\/kb\/?p=587\" target=\"_blank\" rel=\"noopener\">Repairing the Windows Recovery Environment (WinRE)<\/a><\/p>\r\n<p>&nbsp;<\/p>\r\n<p><span style=\"color: #333399;\"><strong>Using DISKPART to Assign a Drive Letter to the WinRE Partition or Delete the WinRE Partition<\/strong><\/span><\/p>\r\n<p>Even though Windows protects the WinRE partition from changes using Disk Management, you can still assign a drive letter or delete the partition by using the DISKPART utility.<\/p>\r\n<ol type=\"1\">\r\n\t<li>Open an Administrator Command Prompt.<br \/>\r\n<br \/>\r\n<\/li>\r\n\t<li>Start DISKPART by running the following command: <br \/>\r\n<span style=\"color: #008800; font-family: Courier New, Courier, monospace;\"><strong>diskpart<\/strong><\/span><br \/>\r\n<br \/>\r\n<\/li>\r\n\t<li>DISKPART will start and you will be at the \"DISKPART&gt;\" prompt.<br \/>\r\n<br \/>\r\n<\/li>\r\n\t<li>List the drives by running the following command: <br \/>\r\n<span style=\"color: #008800; font-family: Courier New, Courier, monospace;\"><strong>list disk<\/strong><\/span><br \/>\r\n<br \/>\r\n<\/li>\r\n\t<li>The installed drives will be listed, starting with <em>Disk 0<\/em>. In most cases, <em>Disk 0<\/em> is the booting drive and also the drive containing the Recovery (WinRE) partition. You need to select the drive that contains the partition which needs to be assigned a letter or deleted. <em>Disk 0<\/em> will be used in this example. Select the appropriate drive by running the following command: <br \/>\r\n<span style=\"color: #008800; font-family: Courier New, Courier, monospace;\"><strong>select disk 0<\/strong><\/span><br \/>\r\n<br \/>\r\n<\/li>\r\n\t<li>The next step is to select the partition. To see the list of partitions on the selected drive, run the following command: <br \/>\r\n<span style=\"color: #008800; font-family: Courier New, Courier, monospace;\"><strong>list partition<\/strong><\/span><br \/>\r\n<br \/>\r\n<\/li>\r\n\t<li>Select the partition which needs to be assigned a letter or deleted. You can use the partition's position in the list as well as the values for the partition's type and size to determine the correct partition number. In this example, <em>Partition 4<\/em> is the desired partition. <br \/>\r\n<span style=\"color: #008800; font-family: Courier New, Courier, monospace;\"><strong>select partition 4<\/strong><\/span><br \/>\r\n<br \/>\r\n<\/li>\r\n\t<li>The next command to run depends on whether you want to assign a drive letter to the partition or delete the partition. <span style=\"color: #ff0000;\"><strong>IMPORTANT:<\/strong> If you are deleting the partition make sure you have selected the correct partition. There will be no confirmation prompt. If necessary, run the following command for more details on the selected partition:<\/span><br \/>\r\n<span style=\"color: #008800; font-family: Courier New, Courier, monospace;\"><strong>detail partition<\/strong><\/span> <br \/>\r\n<br \/>\r\nTo assign a drive letter, run the following command: <br \/>\r\n<span style=\"color: #008800; font-family: Courier New, Courier, monospace;\"><strong>assign<\/strong><\/span><br \/>\r\n<br \/>\r\nTo delete the partition, run the following command: <br \/>\r\n<span style=\"color: #008800; font-family: Courier New, Courier, monospace;\"><strong>delete partition override<\/strong><\/span><br \/>\r\n<br \/>\r\n<\/li>\r\n\t<li>Finally, exit DISKPART: <br \/>\r\n<span style=\"color: #008800; font-family: Courier New, Courier, monospace;\"><strong>exit<\/strong><\/span><br \/>\r\n<br \/>\r\n<\/li>\r\n<\/ol>\r\n<p>&nbsp;<\/p>\r\n<p>&nbsp;<\/p>","protected":false},"excerpt":{"rendered":"<p>Introduction This article provides instructions to remove the Windows 10 Recovery (WinRE) partition from an MBR\/EMBR disk. Removing the partition may be desirable to free up a partition table slot or recover space lost by its creation when Windows 10 was upgraded. Removing the currently enabled Recovery (WinRE) partition from a GPT disk is not [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"lsvr_kba_cat":[1817],"lsvr_kba_tag":[2127,2142],"class_list":["post-618","lsvr_kba","type-lsvr_kba","status-publish","hentry","lsvr_kba_cat-vista-win7-8-x-10","lsvr_kba_tag-windows","lsvr_kba_tag-windows-10"],"_links":{"self":[{"href":"https:\/\/www.terabyteunlimited.com\/kb\/wp-json\/wp\/v2\/lsvr_kba\/618","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.terabyteunlimited.com\/kb\/wp-json\/wp\/v2\/lsvr_kba"}],"about":[{"href":"https:\/\/www.terabyteunlimited.com\/kb\/wp-json\/wp\/v2\/types\/lsvr_kba"}],"author":[{"embeddable":true,"href":"https:\/\/www.terabyteunlimited.com\/kb\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.terabyteunlimited.com\/kb\/wp-json\/wp\/v2\/comments?post=618"}],"version-history":[{"count":3,"href":"https:\/\/www.terabyteunlimited.com\/kb\/wp-json\/wp\/v2\/lsvr_kba\/618\/revisions"}],"predecessor-version":[{"id":6527,"href":"https:\/\/www.terabyteunlimited.com\/kb\/wp-json\/wp\/v2\/lsvr_kba\/618\/revisions\/6527"}],"wp:attachment":[{"href":"https:\/\/www.terabyteunlimited.com\/kb\/wp-json\/wp\/v2\/media?parent=618"}],"wp:term":[{"taxonomy":"lsvr_kba_cat","embeddable":true,"href":"https:\/\/www.terabyteunlimited.com\/kb\/wp-json\/wp\/v2\/lsvr_kba_cat?post=618"},{"taxonomy":"lsvr_kba_tag","embeddable":true,"href":"https:\/\/www.terabyteunlimited.com\/kb\/wp-json\/wp\/v2\/lsvr_kba_tag?post=618"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}