I partitioned my 1TB external drive as follows for use with both macOS & Windows:
- 949GB APFS
- 51GB Windows NTFS
As I no longer needed the Windows partition I tried to delete it through Disk Utility. The various changes that came along with the APFS complicated the process for me and I only managed to somehow turn the NTFS partition into free space but could not merge it into APFS due to 'Container' system I was unfamiliar with.
On the other hand, I had a PopOS! live USB at hand, so I tried to convert the free space to a FAT32 partition so that I could at least see that as such in Disk Utility. But had no further success in converting it into APFS & merge with the main partition.
So at some point, out of frustration, I decided that I might as well install PopOS! on this 51GB partition so I could try it out for a few days as Linux is generally fast on my 2015 Macbook Pro 13″.
Some error crept up and it said it was unable to complete the installation. So I dropped the idea & plugged my HDD back into macOS but to my dismay the main APFS container was unmountable. So after some quick Google-fu, I found that my GPT which should be
diskutil list, disk in question
sudo gpt -r show disk2 output
Any way to access the APFS container without losing data (no backups sadly)?