macOS Catalina on AWS: merging partitions I have created a macOS Catalina EC2 instance on AWS with an EBS volume size of 60 GB.
Then I resized the volume on AWS to 120 GB and tried the following commands to resize the APFS container accordingly:
PDISK=$(diskutil list physical external | head -n1 | cut -d&quot; &quot; -f1)
APFSCONT=$(diskutil list physical external | grep &quot;Apple_APFS&quot; | tr -s &quot; &quot; | cut -d&quot; &quot; -f8)
yes | sudo diskutil repairDisk $PDISK
sudo diskutil apfs resizeContainer $APFSCONT 0

Unfortunately the last command gives me the following output:

Started APFS operation Error: -69743: The new size must be different
than the existing size

That's the output of &quot;diskutil list&quot;:

I am not sure about what's happening, but I am wondering, would it be possible to merge disk1 and disk0 into one disk? Without breaking the system, and where I could install applications as &quot;normal&quot;.
Solution: I had to restart the EC2 instance and the command then worked.