{"id":1,"date":"2026-08-29T17:47:11","date_gmt":"2026-08-29T17:47:11","guid":{"rendered":"http:\/\/192.168.15.145\/?p=1"},"modified":"2026-08-29T18:08:18","modified_gmt":"2026-08-29T18:08:18","slug":"hello-world","status":"publish","type":"post","link":"https:\/\/cloudsolvd.com\/?p=1","title":{"rendered":"How to Expand the Windows partition when the recovery one is in the way?"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<figure class=\"wp-block-image is-resized\"><img decoding=\"async\" src=\"https:\/\/cloudsolvd.com\/wp-content\/uploads\/2024\/11\/image-14.png\" alt=\"\" class=\"wp-image-177\" style=\"aspect-ratio:1.3098827470686767;width:782px;height:auto\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">you\u2019ll be able to:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>delete the recovery parttion<\/li>\n\n\n\n<li>extend your C: partition to a desired size<\/li>\n\n\n\n<li>recreate the recovery partition with the correct type<\/li>\n\n\n\n<li>format the recovery partition<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">1. identify and delete recovery partition<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">so, first you need to disable it, that\u2019s the already known command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>reagentc \/disable\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">with that done, launch&nbsp;<code>diskpart<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">where you pick your OS drive by ID and the recovery partition&nbsp;<strong>by ID<\/strong>. And then you delete it. This is possible using the&nbsp;<code>override<\/code>&nbsp;keyword asking Windows to not consider that protected partition a protected protected partition for that short moment&nbsp;<em>where you delete it<\/em>.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>list disk  #&lt; identify OS drive here, example below is 'disk 0'\nsel disk 0\nlist part  #&lt; identify recovery partitition here, example below is 'part 3'\nsel part 3\ndelete part override\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">2. resize your C: partition<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">where you select your OS partition by ID and increase its size \u2013 while leaving space for the recovery partition\u2019s recreation. The partition resize automatically triggers the filesystem resize.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>list part #&lt; OS partition, C:\\ Drive letter is part 2 in example below\nsel part 2\nextend size=112000\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">3. create recovery partition<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">where you re-create the recovery partition for later use. if you (reader, not OP) has a UEFI system this command will DIFFER. See Microsoft&nbsp;<a href=\"https:\/\/support.microsoft.com\/en-us\/topic\/kb5028997-instructions-to-manually-resize-your-partition-to-install-the-winre-update-400faa27-9343-461c-ada9-24c8229763bf\">KB5028997<\/a>&nbsp;for details about that.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">3.1 Basic Disks<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>create partition primary size=1000 id=27\n<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">3.2 GPT Disks<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">On GPT disks, you\u2019ll get an error about incorrect syntax for this. There use:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>create partition primary size=1000 id=de94bba4-06d1-4d40-a16a-bfd50179d6ac\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">If this worked, the new partition is auto-selected and can be formatted. If it didn\u2019t work, then please stop here and debug.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>format quick fs=ntfs label=\"Windows RE tools\"\nexit\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Note:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>You can then use the partition ID from @AdamKalisz\u2019s comment below!<\/li>\n\n\n\n<li>The newly created partition is automatically selected by diskpart.<\/li>\n\n\n\n<li>You want a size of 1GB for the partition to avoid errors from windows Upgrade (that\u2019s the\u00a0<code>0x80070643<\/code>\u00a0error code). It can hit the error condition when updating the recovery code (done via windows update).<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">4. enable recovery partition<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">now you can re-enable the new recovery partition<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>reagentc \/enable\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">That\u2019s it. I had to do this a few days ago, and there\u2019s really no need to have a downtime for this. You might still need to reboot for the update, but at least it\u2019ll be at a time of your chosing.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If the update error doesn\u2019t go away, you might want to investigate windows update client issues.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">5. When your system never had a valid RE image<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">There\u2019s also an edge case if there\u2019s no valid copy of the recovery image on disk \u2013 there still can be a partition, but it might be invalid. I\u2019ve also seen cases with 3 rescue partitions.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">5.1 Mounting a WIM image and extracting the WinRE boot image<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">In such cases, you&nbsp;<em>can<\/em>&nbsp;proceed \u2013 but: you might need to re-genererate the RE image. This works along the lines what is described here:&nbsp;<a href=\"https:\/\/www.elevenforum.com\/t\/deleted-windows-recovery-partition-how-to-make-a-new-one.11534\/\">https:\/\/www.elevenforum.com\/t\/deleted-windows-recovery-partition-how-to-make-a-new-one.11534\/<\/a><\/p>\n\n\n\n<h4 class=\"wp-block-heading\">5.2 Working with readonly (DVD) media<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Just note that you might need to change some flags for dism to work with a readonly image. i.e. I needed&nbsp;<code>dism \/mount-wim [...] \/readonly<\/code>&nbsp;and&nbsp;<code>dism \/unmount-wim [...] \/discard<\/code>&nbsp;when working from a dvd image, and then you also need to re-locate the RE path to your actual partition. just check it with&nbsp;<code>\/info<\/code>&nbsp;to be sure it\u2019s in the right spot.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">5.3 Don\u2019t lose the security patch!<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Since MS updated the RE image in early 2024, you should also make sure that if you use a DVD source that you\u2019ll use one that is recent enough to contain a \u2018safe\u2019&nbsp;<code>winre.wim<\/code>&nbsp;(*).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">(*Footnote: Yes, I know that is tricky or might be nigh impossible on editions like LTSC. I suppose maybe one can then reinstall the januar 24 patch, but I don\u2019t know. I made a life choice to not do windows support decades ago and this is info as far as i\u2019ll bend that rule)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>you\u2019ll be able to: 1. identify and delete recovery partition so, first you need to disable it, that\u2019s the already known command: with that done, launch&nbsp;diskpart where you pick your OS drive by ID and the recovery partition&nbsp;by ID. And then you delete it. This is possible using the&nbsp;override&nbsp;keyword asking Windows to not consider that&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/cloudsolvd.com\/index.php?rest_route=\/wp\/v2\/posts\/1","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cloudsolvd.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cloudsolvd.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cloudsolvd.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cloudsolvd.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1"}],"version-history":[{"count":1,"href":"https:\/\/cloudsolvd.com\/index.php?rest_route=\/wp\/v2\/posts\/1\/revisions"}],"predecessor-version":[{"id":38,"href":"https:\/\/cloudsolvd.com\/index.php?rest_route=\/wp\/v2\/posts\/1\/revisions\/38"}],"wp:attachment":[{"href":"https:\/\/cloudsolvd.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cloudsolvd.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cloudsolvd.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}