Is there way to restore APFS partition on Mac?

Is there way to restore APFS partition on Mac?

Any disk or partition verification executed with diskutil may yield some bogus result. In no case try to repair anything with diskutil! To get your APFS partition back remove partition disk0s2 and restore it with the proper type: Your Mac should be able to boot despite the MBR.

Which is the correct GUID for APFs partitions?

The proper GUID of APFS partitions is 7C3457EF-0000-11AA-AA11-00306543ECAC. The default pMBR was replaced with an old-style MBR, probably by the Linux installation! Your boot system (in Internet Recovery Mode) seems pretty old. Any disk or partition verification executed with diskutil may yield some bogus result.

What are the partition types in OS X?

A bootable OS X partition (except the Recovery HD) either has the GUID 48465300-0000-11AA-AA11-00306543ECAC for a standard OS X partition or the GUID 53746F72-6167-11AA-AA11-00306543ECAC for a CoreStorage partition. The FFFFFFFF-FFFF-FFFF-FFFF-FFFFFFFFFFFF is an unknown partition type (but not no partition like the 000000-0000-0000…. one).

How to partition a physical disk on a Mac?

In the Disk Utility app on your Mac, choose View > Show All Devices. Select an existing APFS volume in the sidebar, then click the Add Volume button . Enter a name for the new APFS volume.

Can you remove partition from boot camp assistant?

Do not use Disk Utility to remove a partition that was created using Boot Camp Assistant. Instead, use Boot Camp Assistant to remove the partition from your Mac. Important: As a precaution, it’s best to back up your data before creating new partitions on your device.

Is the disk0s2 partition recognized by the new Disk Utility?

The new disk utility does not recognize the disk0s2 partition at all, and diskutil list included the size of the main osx partition in GUID_partition_scheme part of the disk. Would it be possible (and how) to recover the data of the deleted partition (s2) if I reinstalled macOS on an existing unused partition (the Linux partition disk0s4)?