According to MS's documentation, capture-and-apply-windows-system-and-recovery-partitions, the recovery partition can be captured and applied to a new partition. I have made it to work on my windows 10 PC.
Recovery environment was automatically rediscovered and booted WinRE just fine with all recovery options (Reset/System Image restore/etc). I had only 1 C: partition, no special partitioning/dual booting/multiple recovery partition/crazy BCDEDIT settings beforehand, which helped. Tested inside a VM beforehard to make sure. Had no problems after executing live.
I had the same problem. Instead of DISKPART> remove execute mountvol N: /d on the command line. If you already have removed the partition first reassign a drive letter to the new recovery partition with assign letter=N (normally reagentc /info should now show the correct status again, otherwise repeat step 4 of VainMans instructions).
I created an image backup using the "Windows 7" backup tool, removed the old SSD, plugged in the new one, and restored the image backup onto it. Booted it up, working same as before, as expected. Only difference is 860GB of unallocated space at the end of the disk, as expected.
The big problem here, is the Windows Recovery Partition. This little bugger places itself at the end of the disk, sandwiching the C:\ drive for reasons I cannot fathom. Windows doesn't let you move it, or delete it, or in any way touch it, through its UI tools. So basically, Windows is blocking me from expanding the C:\ drive to use the extra space, which is the entire reason for this upgrade.
Seeing as all of these tools would require admin privileges to do what they claim to do, and I don't believe I have permission to install third party software to accomplish this (especially that which requires admin privileges), that leaves me with the following diskpart steps, which almost every answer suggested in some form:
To their credit, this did remove the partition. Opening Disk Management UI showed the partition as removed. I expanded C:\ to fill the remaining space, and rebooted. PC shuts down, goes through UEFI, starts to boot into Windows, but then no fan noises. Monitor is on but displaying black. No response to anything, including short press of power button. Five minutes of idling later, I force shut it down with long press.
Second attempt, it seemed to boot into Windows normally. I log in and it displays the "Welcome" loading screen. This continues for 20 minutes. No response to short press of power button. I force shut it down.
So now I'm currently re-imaging it again with the backup. This takes several hours. I would rather not be forced to re-image it a third time. Every answer stated that the Recovery Partition is safe to delete, but that appears to not be true here. My only guess is that there's some extra step needed for this machine that isn't applicable to most. What is the safe and stable procedure to remove or move the recovery partition such that I can expand the C:\ partition to make use of the rest of the disk?
This answer is intended for Windows version 2004 and newer, where the recovery partition (if exists) is after system partition. In 1909 and older the partition may be located before the system partition, requiring a more complicated solution.
You can shrink it if you decide to recreate the partition later (use DISM to mount a WinRE WIM from a source ISO, then copy WinRE to the recovery partition that you create, for example).
Update on REAgentC:I recently had to extend a sandwiched partition by deleting the recovery partition, and bookmarking the process with REAgentC /enable and /disable worked without any extra steps:
You may find that your partition is gone in Windows Explorer. When you open the Disk Management, it shown as unallocated space. For this situation, you need to understand that your partition is already lost.
After this whole operation, the unallocated space will be shown as G: in Windows Explorer. However, if your partition is deleted by mistake or if the partition lost by diskpart clean command, the diskpart recover partition will not work efficiency.
Data is important to computer users. It stored on hard drive partitions. However, some users may delete partitions in a wrong operation or accidentally. When you delete the partition or the partition lost in accidentally, the data on the partition would be gone. Fortunately, there is an opportunity to recover the lost or deleted partition.
3. Then, you can select a search method. AOMEI Partition Assistant provides you two search method: Fast Search and Full Search. You can choose Fast Search at first, if the partition cannot be searched with this method, you could try to use Full Search.
Diskpart recover partition is not available for any situations. Sometimes you need to try some third-party software like AOMEI Partition Assistant. Its Partition Recovery Wizard is more powerful than Diskpart. Besides, it has many other features like re-partition hard drive, partition/disk copy, wipe hard drive, secure erase SSD, etc. It also provides more advanced editions for better use such as AOMEI Partition Assistant Server is specially designed for business using, AOMEI Partition Assistant Unlimited Edition is more suitable for enterprises.
Yes but you cannot delete recovery partition in Disk Management utility. You would have to use a third party app to do so. You might just be better off to wipe the drive and install fresh copy of windows 10 since upgrades always leave behind fun stuff to deal with in the future.
The recovery partition is usually created by the manufacture of the PC for the purpose of restoring the PC to the factory original configuration. Since you have upgraded to Windows 10, and restoring from this partition usually wipes all of your installed programs and user data anyway, I would say that it is of no use to you. So go ahead and delete it. I believe that you can delete it using diskpart. But I agree with crashlite, I would strongly consider doing a fresh install.
Diskpart will not delete the recovery partition.
Since you recently upgraded, and as others have recommended, do a clean install of Windows 10. Afterwards you will feel better.
When I upgrade a machine to 10 I do an in place upgrade then do a clean install.
Best of luck.
Even if you install Windows 10 fresh it creates this partition automatically, this will mean that if you delete it will make Windows 10 not able to do resets which as above said would make without any software but keep your data. If this is an SSD, I would adjust the Page File as it can do wear and tear on it.
You are correct, I was thinking about the OEM recovery partition and confusing it with the recovery partition created with a GPT/UEFI install. One thing though, if the OP does a clean install at least it will not be stuck in the middle of the disk.
I found that deleting the RE partition would cause the OS to not boot. (which is unusual in my experience). I have studied MBR and UEFI booting a lot more since and cannot say for sure but I think the BCD in the ESP partition might have been pointing to the RE partition, and the information there was finishing the process of booting the OS on the system partition. I actually wish I still had a clone of that disk so I could be sure of exactly what was happening, now that I better understand how it all works (BTW it looks like you do not have an ESP partition on that disk so you must be using UEFI fallback or MBR booting).
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
As part of extending the size of the volume on Azure VM, i need to re-create Recovery Partition. I am following this guide, here.I am attempting to set the set id="de94bba4-06d1-4d40-a16a-bfd50179d6ac" for the primary partition intended to be used as recovery partition. I get the error:
I know I am late but just for anyone who ends up here by a google search if your disk is using MBR not GPT then you need to set the id to "27" instead of "de94bba4-06d1-4d40-a16a-bfd50179d6ac" so it should look like this set id=27
When searching for a way to do this I discovered that the internet is full of posts about simply deleting the Windows Recovery Partition. I am not a fan of simply deleting a recovery tool. On numerous occasions the recovery partition has been instrumental in helping me to fix a system.
The reagentc /disable command will disable the recovery partition and will move the recovery partition into a file named Winre.wim and will be located in C:\Windows\System32\Recovery (you have to enable showing hidden system files if you want to see it)
Technically speaking we did just delete the Windows Recovery Partition but we did so in a way to keep our existing recovery partition safely intact and then we rebuild the recovery partition and re-enabled it.
93ddb68554