I had two partitions on my mac, both had macOS installed on it as a result both had a recovery partiton, now I deleted one pratition cause it got corrupted due to some script which I ran.
Now mac has only one partition which is the startup volume.
The problem is the previous partition created a free space upon removing it and it is not allocated to anyone, now when I try to delete the free space, Disk Utility fails to carry out the opertaion!
Both the partitons also created a public folder, which I don't know much about cause I never created it, now the problem is what should I do with this public folder should I remove it from my system preferences or should I keep it, I don't know what might happen/get deleted if I remove it from my iMac!
So basically two issues have arised as a consequence of the corruption and running a custom script for tweaking your mac!
I went through this https://www.reddit.com/r/osx/comments/305lik/help_removing_the_free_space_partition/ post but it doesn't seems to be linked with my issue as I don't have any (No CoreStorage logical volume groups found - Terminal output for diskutil cs list; diskutil list)
And when I try to resize the disk via Terminal I get this error:
Sayans-iMac:~ sayanhussain$ diskutil resizeVolume disk0s2 R Resizing to full size (fit to fill) Started partitioning on disk0s2 macOS Error: -69742: The requested size change for the target disk or a related disk is too small; please try a different disk or partition, or make a larger change Sayans-iMac:~ sayanhussain$