I deleted 1 of 2 partitions with the following commands to merge 2 partitions:
diskutil apfs deleteContainer disk0s3
diskutil eraseVolume free n disk0s3
diskutil apfs resizeContainer disk0s2 0
But I got the following error when I run the last command:
diskutil apfs resizeContainer disk0s2 0
Started APFS operation
Error: -69771: The target disk is too small for this operation
Now the partition which I deleted is not shown any more with Disk Utility. How do I get it back?
diskutil list
anddiskutil apfs list
. – David Anderson Jan 04 '18 at 11:22