Diskpart cannot merge two partitions into one. It is a command-line tool for creating, deleting, formatting, and resizing partitions, but it has no built-in merge command. To combine partitions, you must delete one partition and extend the other into the freed space, or use a third-party partition manager that supports merging directly.
Why Diskpart Has No Merge Command
Diskpart was designed as a scripting tool for basic disk management. It can create, delete, format, assign letters, and extend or shrink volumes, but merging fundamentally requires moving data from one partition into another. Diskpart does not move data; it only changes partition boundaries. The extend command works only when there is contiguous unallocated space immediately after the volume you want to enlarge. If that space is occupied by another partition, you must remove that partition first, which erases its data.
How to Merge Partitions with Diskpart (Data Loss)
The only diskpart method that works is destructive. You back up the data on the partition you want to remove, delete it, then extend the remaining partition into the free space. Steps:
- Back up all files on the partition you plan to delete.
- Open Command Prompt as administrator and type
diskpart. - Type
list diskand note the disk number. - Type
select disk X(replace X with the disk number). - Type
list partitionand note the partition numbers. - Type
select partition Yfor the partition you want to delete. - Type
delete partition(ordelete partition overrideif it is protected). - Type
select partition Zfor the partition you want to keep. - Type
extendto expand it into the now-unallocated space.
This works only if the deleted partition was immediately to the right of the kept partition. If the partition you want to remove is on the left, you cannot extend leftward — diskpart only extends into space that follows the volume.
When You Should Use a Third-Party Tool Instead
If you need to merge two partitions without losing data, a third-party partition manager is the practical choice. Tools like MiniTool Partition Wizard, EaseUS Partition Master, and AOMEI Partition Assistant offer a “Merge” operation that moves files from one partition into a folder on the other, then resizes the target partition. These tools are not built into Windows, but they are widely used and generally reliable for this specific task. The process is graphical: you select two adjacent partitions, choose merge, and the software handles the data movement. Always back up critical files before any partition operation, even with a trusted tool.
Common Problems and Misconceptions
- “Can I merge non-adjacent partitions?” No. Both diskpart and most third-party tools require the two partitions to be next to each other. If there is another partition in between, you must move or delete it first.
- “Will extend work if there is unallocated space before the partition?” No. Diskpart only extends into space that comes after the selected volume.
- “Can I merge a system partition with a data partition?” Merging the C: drive with another partition is risky and often impossible while Windows is running, because system files are in use. You would need a bootable rescue environment.
- “Does merging preserve the files on both partitions?” With diskpart, no — you delete one partition. With third-party tools, yes, but the files from the absorbed partition are placed into a folder (e.g.,
D:\becomesC:\D).
Alternatives to Merging
If your goal is simply to have more space on one drive, you do not always need to merge. You can:
- Move files from one partition to the other manually and then shrink the empty partition, leaving unallocated space that you extend into.
- Use a folder mount: attach an empty NTFS folder on C: to another partition, so it appears as a subfolder while storing data elsewhere.
- Create a storage space or use a spanned volume in Disk Management if you have multiple physical disks.
Safety and Backup Considerations
Partition operations carry a real risk of data loss. A power failure or a software bug during a merge can corrupt the file system. Before doing anything, back up both partitions to an external drive or cloud storage. Verify the backup is readable. If you are merging the system drive, create a full system image, not just a file copy. After the operation, run chkdsk on the resulting volume to check for errors.
Frequently Asked Questions
Can I merge partitions in Windows without third-party software?
Yes, but only by deleting one partition first, which erases its data. Windows’ built-in Disk Management and Diskpart both lack a non-destructive merge feature. If you need to keep the data, you must use a third-party tool.
Why is the extend option grayed out in Disk Management?
This happens when there is no unallocated space immediately after the volume, or when the volume is not NTFS (FAT32 cannot be extended). Check that the space is directly adjacent and on the same disk.
Does merging two partitions speed up my computer?
No. Merging partitions does not improve performance. It can actually slow down file access if you merge a fast SSD partition with a slower one, because the resulting volume uses the slower media. It only simplifies drive letter management.
Can I merge partitions on a USB drive?
Yes, if the USB drive is recognized as a fixed disk. Removable USB drives (like most flash drives) are treated differently and may not support partition merging. Check Disk Management to see if the drive is listed as “Removable.”
What is the difference between merging and extending?
Extending adds unallocated space to an existing partition without creating a new one. Merging combines two existing partitions, usually by moving data from one into the other and then extending. Diskpart can only extend; it cannot merge without deleting.
Related
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.
More cards in this drawer
- Campus Tech Innovation Hubs: What They Are
- Poco C51 Airtel Prepaid Locked Variant India?
- Jenkins vs GitHub Actions: Which CI/CD Fits Your Team?
- Turn Off Backup Encryption in iTunes?
- Shared VPS Hosting: Is It Better?
- Disk Defrag Pro: What It Does and Whether You Need It