My external hard drive
ExtDisk is set up as follows (output from
/dev/disk2 (external, physical): #: TYPE NAME SIZE IDENTIFIER 0: GUID_partition_scheme *2.0 TB disk2 1: EFI EFI 209.7 MB disk2s1 2: Apple_HFS Foo 1.0 TB disk2s2 3: Apple_HFS Foo2 50.0 GB disk2s3 4: Apple_HFS DELETE_ME 100.0 GB disk2s8 5: Apple_HFS Foo3 600.0 GB disk2s4 6: Apple_HFS Foo4 150.0 GB disk2s5 7: Apple_HFS MERGE_HERE 100.0 GB disk2s6
I'm trying to take the disk space currently allocated to
DELETE_ME and add it to
DELETE_ME in the process. Disk Utility, representing this list in pie chart format, automatically adds freed space from a partition to the previous partition on the list — in this case, that would mean merging
Foo2 instead of
I could manually move the data from
DELETE_ME, resize, and repeat, working my way through the list until I move the free space adjacent to and merged with
MERGE_HERE, but that's incredibly time-consuming.
Is there a way to do this, if not with Disk Utility then with Terminal? MacOS is running Catalina 10.15.7, and Terminal is running zsh. My external disk is partitioned with GUID.