Would formatting these partitions and making them join the main one cause any problems?
If one of the partitions contain the Windows Recovery Environment (WinRE), then formatting these partitions and making them join the main one would destroy the WinRE.
How can I know?
Execute the following command in an Administrator Command Prompt window.
reagentc /info
If the Windows RE status is Enabled, then Windows RE location should show a partition number in the path.
Enter the commands given below.
diskpart
select disk 0
list partition
exit
If the partition with the same number has a type of Recovery, then formatting the recovery partitions and making them join the main one will destroy the WinRE.
If the WinRE is in one of the recovery partitions, then you could do the following to prevent the loss of the WinRE.
Enter the commands given below. The first command will disable the WinRE and move the WinRE files to drive C:. the second command will show the size of moved Winre.wim file. Knowing this size will be helpful later in this answer.
reagentc /disable
dir /a:h C:\Windows\System32\Recovery\Winre.wim
Remove the recovery partitions, add free space to drive C and create a new recovery partition.
Enter the commands below start partitioning the SSD.
diskpart
select disk 0
list partition
For each recovery partition, enter the following commands. Replace # with the partition number.
select partition #
delete partition override
Next, enter the following command to add the free space to drive C:.
select volume c
extend
| Note |
If drive C: is not encrypted, then the WinRE can be installed in drive C:. If desired, then enter the exit command and proceed to step 3. |
Finally, enter the following commands to create a new recovery partition. Replace # with a size in MiB large enough to hold the Winre.wim file plus other much smaller files. For example, if size of Winre.wim is about 441 MB, then a choice of 500 MiB would be adequate.
shrink desired=# minimum=#
create partition primary id=de94bba4-06d1-4d40-a16a-bfd50179d6ac
gpt attributes=0x8000000000000001
format quick label=WinRE
exit
Enable the WinRE by entering the command below. This will install the WinRE in the correct partition and enable the WinRE.
reagentc /enable