If you find value in what I offer don’t hesitate and buy me a coffee 😇
Sometimes user want to extend partition C: in Windows and one of usually problems is that we have healthy partition or another type of partition between Windows C: and UNALLOCATED SPACE. Problem can be very frustrated, especially if you need URGENTLY SPACE on disk where is primary system.
In the Computer Management, in part Disk Management we can see all our partitions.
Usually problem for extend the Windows (C:) partition is that Healthy(Recovery Partition) is between Unallocated space and partition (C:), but in my case is that I have system Ubuntu partition, between Windows (C:) and UNALLOCATED space (before this was partition D:).
IMPORTANT: BEFORE ANY ACTION ON YOUR SYSTEM, MAKE BACKUP OF PARTITION D: !
THIS IS IMPORTANT, ESPECIALLY WHEN YOU DELETE PARTITION TO GET MORE SPACE TO EXTEND THE PARTITION C: . ALL DATA WHICH YOU HAVE ON PARTITION D: IT WILL BE LOST.
Open CommandPrompt AS ADMINISTRATOR:
Command: reagentc /disable – this command will disable windows recovery environment
Command: diskpart
Command: list disk
Command: select disk 0
Command: list partition – it will give list of partitions on our disk
:::::::::::::::::::::: LOSING DATA IN THESE NEXT STEPS ::::::::::::::::::::::
ATTENTION: IF YOU DON’T NEED LINUX SYSTEM, THIS NEXT STEPS WILL DELETE ALL DATA, INCLUDING SYSTEM LINUX.
Instead to select Recovery partition, I need to select Partition 6, because on that partition is my Linux and also Linux is between my unallocated space and partition Windows C:
ATTENTION:
If in your case is Recovery partition, between UNALLOCATED SPACE (ex D: partition) and WIndows, then you need to choose that Recovery partition. The number of partition in your case can be very different.
Command: select partition 6 → in my case Linux partition
**select partition 5** → in my case Recovery partition
After selecting partition, we need command: detail partition
This command will give us all details about our partition 6 like Type, Required, Hidden, Attributes.. For us is very important Type and Attrib! WE MUST COPY THESE DETAILS ON THE SAFE PLACE, BECAUSE LATER WE WILL NEED IT FOR RECOVERY DELETED PARTITION.
Command: delete partition override
When you come back to Computer Management on Windows, you will see that there is no partition 6 or partition 5 (Recovery).
In Computer Management right click on partition C: and choose EXTEND VOLUME and follow Wizard to add UNALLOCATED SPACE TO PARTITION C:
In your case, if is Recovery partition which is deleted, you need to RECREATE PARTITION, where you can add more space to new partition, it can be 1024GB (1GB) or more. Click on the button SHRINK.
UNALLOCATED PARTITION
Right click on the partition and choose New simple volume, go Next and on the next window choose “DO NOT ASSIGN A DRIVE LETTER OR DRIVE PATH”
Following this step, in File explorer it will not appear New volume and you will not need to lost time to hide it.
AFTER THIS STEP, GO TO COMMAND PROMPT (CMD) AND TYPE THE NEXT COMMANDS:
COMMAND: list partition
In the list you will see new partition with 1024MB and maybe the new number of partition.Choose that partition in the next command, for example if number of that partition is 9, the command will be:
COMMAND: select partition 9
After this selection of partition, we need to set ID and attributes:
set id= COPY_ID_OF_PARTITION_WHICH_IS_BEFORE_COPIED
gpt attributes=COPY_ATTRIBUTES_OF_PARTITION_WHICH_IS_BEFORE_COPIED
In Computer Management you can see that is succefully created new partition with 1024MB of space for Recovery partition, or for new System depends on the needs of users.
AT THE END, DO NOT FORGET TO ENABLE REAGENT WHICH IS ON THE BEGIN DISABLED:





