I have a Macbook Pro with Big Sur on it, and I installed Linux Mint. I then resized the encrypted Mac OS APFS partition in order to grant Linux more space. After that I created another smaller Linux partition out of that new, smaller partition.
But now I've lost my "Macintosh HD" boot option in Boot Camp and can no longer boot into Mac OS, only Linux. And my Mac OS APFS partition now says it has a Startup Volume Type of "FFFFFFFF-FFFF-FFFF-FFFF-FFFFFFFFFFFF" (instead of the proper GUID).
My situation is almost identical to this question:
I followed the instructions provided in that answer, but when I got to the step to run the "gpt remove" command (
gpt remove -i 2 disk0), I stopped, worried that it might delete my files on that Mac OS APFS partition along with the partition.
Some of the posts I've read with similar solutions (the link above, as well as https://discussions.apple.com/thread/251412540 and OS volume shows as type 'FFFFFFFF-FFFF-FFFF-FFFF-FFFFFFFF' after attempting to delete some Linux partitions—cannot log in and How to fix broken GPT, GUID and unmountable, no type volumes?) all seem to suggest that they got their files back, but I just want to confirm that my files won't be deleted when I run the "gpt remove..." command.
Is this the case? Will
gpt remove -i 2 disk0 delete my files when it removes that partition, or is it doing something slightly different (ie. removing partition info / header / metadata, etc)?
Hopefully this makes sense. I hope to be able to retain access to file files on that Mac OS APFS partition since it isn't backed up.