How to Safely Merge Partitions on Mac Without Losing Data

merge partitions mac

Can you merge partitions without losing data? By the nature of its process, merging partitions WILL directly cause data loss. You can’t negate this effect – but you CAN work around it. However, you have to follow a specific process (that includes tasks other than partition management) in order to ensure that your data is safe.

We created this guide to give users like you a step-by-step tutorial on the fastest, safest, and most reliable way to merge partitions on a Mac without losing data.

Data Loss-Related Challenges of Merging Partitions (a.k.a. Why You Need This Guide)

Well, if you only combine the partitions without doing the necessary preparations, the risk of data loss is very high. Here’s why:

  • Full partition wipe. “Merging” partitions actually means deleting one or more partitions and expanding the remaining partition. When you delete those partitions, you’re deleting their data too.
  • Potential corruption or conflict. This whole process has a lot of moving parts – from basic partition management to data recovery. Along the way, you might encounter software errors, electrical or mechanical issues, or even hardware failure (if you’re using old equipment). Any of these factors may corrupt the partitions you’re attempting to merge.
  • Moving system files or app files. If the partition/s you plan to delete store app data, you can either: (1) uninstall any apps that utilize those partitions and reinstall them AFTER you merge the hard drive partitions or (2) make sure that the partition with app and system is the primary partition and use Option A in Step 2.

So technically, you can’t merge partitions on your Mac without deleting the data on the non-primary partitions. However, you can make preparations beforehand to protect your data from deletion. More on this in the guide section next up.

If you have already lost data due to a previous attempt to partition your drive, do not proceed to the instructions below. Instead, use apps like TestDisk, Disk Drill, or R-Studio to recover your data first. You can learn more by reading our guide on how to recover lost partitions, where we showcase different ways to restore partition data and repair volume groups. Once your data has been secured, you can proceed with steps 2 and 3 below.

A Step-by-Step Guide on How to Merge Partitions on Your Mac Without Losing Data

We divided this process into three steps, which is reflected in the way we structured our guide. While our other articles allow you to jump from method to method, it’s CRITICAL in this situation to follow the intended order to protect your data.

In other words, start with step 1.

You can try using a partition manager for Mac, which can make deleting and resizing partitions easier for some users. You will also need one for partitions that are using file systems that macOS doesn’t natively support, like NTFS (Windows) or ext4 (Linux), and partition managers usually provide a variety of extra features. However, we still recommend that you go through at least Step 1 of our guide to ensure that your data is fully protected.

Step 1: Secure Your Data FIRST!

We already established that data loss is inevitable during the process of merging partitions. The key to preserving your files, then, is to copy them before you attempt to merge partitions.

In the guide sections below, we’ll show you two ways to do it.

Option A: Use Disk Utility to Create an Image Backup

Our preferred way to copy a large body of files is to “image” the drive they’re stored in. “Imaging” a drive means creating an exact copy of the whole disk, down to the last byte. Then, the copy of your data gets compressed into a .dmg file we can mount later (in step 3).

We prefer this method for copying our files because it perfectly preserves folder structure, permissions, as well as other metadata. It can also grab hidden files you might otherwise miss. And since the data is compressed, this method saves more space compared to copying your data manually.

The built-in Mac disk management app, Disk Utility, has a disk image feature that is more than suitable for this task.

Step 1. Open Disk Utility (Finder > Applications > Utilities).

Step 2. On the left sidebar, select the drive whose partitions you want to merge. Then, click File > New Image > Image from “Device Name” (Device Name is whatever your drive is named).
Disk Utility image creation tool

Step 3. Navigate to a location where you want Disk Utility to save the image file. Then, change Format to read/write. Finally, click Save.
Disk Utility save location menu for disk image creation

Make sure that you save the disk image file to a different drive – not the drive containing the partitions you want to merge.

Option B: Manually Copy Your Files to Another Drive

If the partition you want to delete has no hidden files, system files, app files, etc., you can simply copy the files to another location using Right-click > Copy or dragging them with your mouse.

For example, if you want to merge partitions on an external storage device, you can copy the data on its partitions (to be deleted) to your computer.

Once you’ve merged the partitions on your storage device, you can copy the data to the expanded partition.

Step 2: “Merge” Partitions Using Mac’s Disk Utility

As you might have surmised, you can’t actually “merge” or “combine” disk partitions on your Mac. You can only delete partitions and either expand the primary partition (Option A below) or create an entirely new single partition on a disk by formatting it (Option B.)

Pro tip: If you have app or system files in your primary partition, stick with Option A.

Option A: Delete Non-Primary Partitions and Expand Primary Partition (Retains Primary Partition Data)

Disk Utility has a great built-in partitioning tool that is simple to use and more than capable of deleting and resizing partitions. It visualizes disk partitions using a pie chart, which makes it easier to identify each partition.

Step 1. Open Disk Utility.

Step 2. On the left sidebar, click the drive containing the partitions you want to merge. then click the Partition button.
Partition button in the Disk Utility app

Step 3. In the pie chart, click on the partition you don’t want to retain. Then, click the button underneath.
Disk Utility disk partitioning pie chart tool

Step 4. The remaining partition should automatically expand and take up the space left behind. To finalize these settings, click Apply.
Apply changes button in Disk Utility's partition tool

Option B: Format Your Drive (Wipes Data on Primary Partition)

Disk Utility also has a formatting tool called Erase. Using Erase, you can format your drive and completely wipe out all of its partitions. However, note this method will completely wipe your personal data on all partitions as well.

Step 1. Open Disk Utility.

Step 2. On the left sidebar, select the drive containing the partitions you want to merge. Then, click Erase.
Erase button in Disk Utility

Step 3. Choose a name, format, and scheme for your drive. Then, click Erase.
Disk Utility Erase tool menu

Step 3: Restore Your Data to the Remaining Partition

Once you’ve successfully merged the partitions on your drive, the final step is to restore the data you saved from the deleted partitions. If you created a disk image by following the instructions in the Step 1 guide, you can now mount it in Finder and copy its data to the newly expanded primary partition.

If you manually copied your files to another location, you can skip this section. Simply copy the files to the expanded partition manually.

Step 1. In Finder, navigate to the location where the Disk Image file you created in this guide is stored. Once you find it, double-click the image file to mount it.
Disk image created with Disk Utility in Finder

Step 2. You should now find the image in the left sidebar of Finder as if it were a physical drive you connected. You can safely transfer your files to the expanded partition.

What if your partition becomes damaged or corrupted?

There’s always a slim possibility that some error or malfunction will cause your expanded partition to get corrupted (during or after the merging process).

Don’t worry! We have guides for all partition-related errors, including the errors “Couldn’t modify partition map” and “Problems were found with the partition map”, as well as greyed-out partitions.

Good luck!

Alejandro Santos
Chief Writer
Alejandro is Macgasm’s Chief Writer and Apple ecosystem enthusiast. He pens the majority of troubleshooting guides and software reviews for this website, tapping into his love for technology and extensive background in technical writing. He started his career by helping… Full Bio