i have a mac book pro 2015 with 125 ssd drive. bellow is my partition table

enter image description here

enter image description here

enter image description here

enter image description here

my question is how can i merge partition "BackUp" into my "2: Apple_APFS Container disk1 71.8 GB disk0s2" (data on BackUp can be errase but data on OS partition should be preserved). The purpose is to increase the primary OS partition (need some more space for the OS)

I have tried disk Utilities but seem there is no operation support the above desire yet. Any suggestion? Thanks.

  • Do you have your drive backed up? If you do not have a backup, it's only time until you loose your data. – historystamp Dec 16 '18 at 23:45

Apple does not provide a way to add the space occupied by disk0s4 to disk0s2. To enlarge disk0s2 there must be significant free space directly below the partition. In your case, disk0s3 is below disk0s2 which blocks the possibility of enlarging disk0s2.

You could backup the contents of disk0s2. There does not appear to be enough space anywhere on disk0 to do this. You would have to find addition storage such as a external drive. Once the contents of disk0s2 is backed up, you could remove both disk0s2 and disk0s3. Next, you could enlarge disk0s2 to occupy all the newly create free space. Finally, you could recreate the "Data" volume by either adding a new volume to the APFS container or shrinking disk0s2 while creating a new disk0s3. You could then restore the contents of the "Data" volume from the backup.

I should note that when I stated there was not enough space to backup disk0s2, I did not consider a compress backup of this partition. You could consider trying to make a backup in the form of a dmg file by using the Disk Utility application.

  • at least with yosemite in some or all instances, disk utility creates a full size dmg, then compresses this dmg. So, I guess you would need the full size dmg + the compressed dmg before the full size dmg is delete. – historystamp Dec 16 '18 at 23:35
  • @historystamp: I verified that your comment is incorrect. When creating compressed dmg file stored in an APFS volume, you do not need space beyond that taken by the compressed dmg file. – David Anderson Dec 17 '18 at 0:01
  • Oh, I tried it on an HFS volume :-( . I would suspect it's a fallout of APFS. APFS duplicates files only when the data changes. I did qualify my answer. cya. – historystamp Dec 17 '18 at 1:25
  • @historystamp: Actually, the same is true when using a JHFS+ volume. I suppose next you will say I need to be running Yosemite. – David Anderson Dec 17 '18 at 4:35

There are some issues here: -- apfs file system -- encrypted startup drive.

I suggest you get an external drive and backup your drive. I suggest using ccc. You may need to unencrypt your startup drive. Two external backups are best.

The easiest way would be to get an external drive and copy all the data to the external drive. Reformat you internal drive. copy data back to original drive. For the startup partition, you will need to use a backup utility.

"Clone, synchronize, backup. Schedule and forget it." http://www.bombich.com/software/ccc.html

"SuperDuper is the wildly acclaimed program that makes recovery painless, because it makes creating a fully bootable backup painless." http://www.shirt-pocket.com/SuperDuper/SuperDuperDescription.html

You can use Disk Utility to do the copy too. But, that's some assembly required, since I do not know how to do this.

Another way would be to buy a partition manager. Delete the backup partition. resize the data partition. Move the data partition or insert a partition between your Startup drive and your data partition. delete the splitter partition. Use disk utility to expand you startup drive. [ I didn't see that a third party partition manager supported apfs. ] https://www.igeeksblog.com/best-partition-manager-for-mac/

I suggest you have a full backup of your data.


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .