1

My Macintosh HD is running out of space so I want to take space from its Data partition. I have tried many times but I have no idea how to do it correctly. Any help appreciated.

Please see the screenshot

IconDaemon
  • 19,234
  • Wrong site. You're looking for [apple.se] instead. SO is for programming related questions, not general computer or OS support. You can find more information about this site in the [help]. –  Mar 14 '23 at 03:28
  • If you ask on Ask Different (or this Q gets migrated there), you should also include the output of diskutil list (in code block format, so it displays accurately). – Gordon Davisson Mar 14 '23 at 04:03
  • Have you manually partitioned the drive? What OS are you running? – benwiggy Mar 14 '23 at 08:00
  • Is this an Intel or Apple Silicon Mac? – David Anderson Mar 14 '23 at 09:30
  • @KenWhite really sorry, this is my first question. I should have researched the help center before posting :( – Hung Nguyen Mar 15 '23 at 04:24
  • This may be dependent on what OS you are running. On Catalina & newer the system partition is immutable. We need OS version & the diskutil information to advise further. – Tetsujin Mar 16 '23 at 10:27
  • @Tetsujin: What does an immutable system partition have to do with the question? BTW, the macOS is Mojave. The Macintosh HD volume is APFS and the Data volume is Mac OS Extended (Journaled). – David Anderson Mar 16 '23 at 10:48
  • 1
    @DavidAnderson - It has to do with the fact you can't play with that volume at all in recent OSes. Having just noticed the OP has added pertinent question information in a comment below an answer rather than in the question body just makes the entire exercise more frustrating. Forget I mentioned it. None of it was helped by the fact they forced in a new partition rather than just sub-divided the APFS further. If they'd done that properly in the first place, the need would never have arisen. There would have been a big warning message when they did it, which has to be actively overridden. – Tetsujin Mar 16 '23 at 10:56

1 Answers1

0

To add space to the Macintosh HD partition, free space would have to occur between the Macintosh HD partition and the Data partition. You already shrink the Data partition to create free space, but this free space after the Data Partition and therefore cannot be added to the Macintosh HD partition.

One possible solution would be to backup the Data partition to an external drive, then recreate the Data partition with free space before the partition. Afterwards you could restore the Data partition from the backup.

Another solution would be to move the Data partition so the free space would be before the partition. This probably would require third party tools.

Possible Third Party Tools

  • GNOME Partition Editor (GParted)

    This may require use of a wired keyboard and/or mouse.

    This is a free product. Instructions for creating and using a bootable GParted flash drive is given here. Also, note that Ubuntu Live bootable USB flash drives come the GParted already installed. So another option would be to download Ubuntu Live and use Etcher to create the flash drive.

    Since you have already shrunk the partition containing the Data volume, I would recommend you use this product to move the partition containing the Data volume with further resizing.

    Basically, use this product to move the partition containing the Data volume to the end of the drive. Next, use the diskutil command to add free space created between the partitions holding the Macintosh HD and Data volumes to the partition (and APFS container) holding the Macintosh HD partition. Below is an example of the command to enter. To confirm this would be the correct command, I would first need to see the output from the command diskutil list.

    diskutil apfs resizecontainer disk0s2 0
    
  • Paragon Hard Disk Manager for Mac

    To use this would require a purchase. You install this product as an application. Basically, use this product to move the partition containing the Data volume to the end of the drive. Next, use the diskutil command to add free space created between the partitions holding the Macintosh HD and Data volumes to the partition (and APFS container) holding the Macintosh HD partition.

    Below is an example of the command to enter. To confirm this would be the correct command, I would first need to see the output from the command diskutil list.

    diskutil apfs resizecontainer disk0s2 0
    

    Note: Apparently, you can also create Bootable Recovery Media. In your case, I do not think the using Bootable Recovery Media would be necessary.

  • Hi David, i really appreciate your reply.

    My Macbook is Intel with Mojave OS version, the format of Data partition is 'Mac OS Extended (Journaled)'. Yes you are right, i shrinked the Data partition to get the free space but it can't be added up to Macintosh HD. The backup&restore solution is what i was thinking but it would take more time, so i think third party tool is needed to archive this.

    – Hung Nguyen Mar 15 '23 at 04:18
  • Hung: I updated my answer. – David Anderson Mar 16 '23 at 15:13