24 Extend System Drive but recovery partition is in the way.

I have a System Reserved (350MB), C-Drive/healthy/boot/etc (297GB), Recovery Partition (450MB), Unallocated (167GB). So when I right click on C-Drive, expand partition is greyed out. I assume it’s because the unallocated space is not contiguous. I’m running windows 10. Anyone have any ideas how I can resolve this and make one single system drive?

Use below tool for fixing above hurdle. Just need to install on the system where this hurdle is coming.

https://www.disk-partition.com/download.html

OR use below command Shell to do it.

If you try to delete the recovery partition from the Disk Management GUI  by clicking Delete Volume (sometimes the disk properties are not available at all), the following error will appear:

Delete recovery partition on windows 10
Virtual Disk Manager

Cannot delete a protected partition without the force protected parameter set.

Cannot delete a protected partition without the force protected parameter set.

You can delete such a protected partition only using the diskpart tool. Open the elevated command prompt and run the diskpart command. Select the partition you want to delete (note the results of your commands, since the numbers of disks and partitions may vary).

DISKPART> rescan
DISKPART> list disk
DISKPART> select disk 0
DISKPART> list part
DISKPART> select part 5
DISKPART> delete partition override

DiskPart successfully deleted the selected partition.

DISKPART> Rescan

The override parameter allows diskpart to delete any partition regardless of its type (whether it is an active, system, or boot partition).

DISKPART> delete partition override

Now you can open the Disk Management and extend the system partition (the Extend Volume option is now available). If you want to recreate the recovery partition (it is recommended to save it or move it to the system partition as described above), leave 500MB of unallocated space on your drive. In the screenshot below, I am extending my Windows partition by 1.5GB and leaving 500MB at the end of the drive.