mac – Lost my APFS partition after using EaseUS partition manager on Bootcamp


I had the same problem with Easeus and solved it using gdisk.
https://sourceforge.net/projects/gptfdisk/
I donated $25 because it saved me from doing something stupid.

Overview ( Print out A gdisk Walkthrough by Rod Smith )

Download the windows version and unzip.
Command Prompt – must Run as Administrator ( or create Command Prompt shortcut and change Advanced Properties to Run as Administrator )

cd to gdisk folder

gdisk64 0: ( this opens root level, there is a gdisk32.exe also)

Command (? for help): p ( this lists partition numbers, my mac was 2 )

Command (? for help): i ( information on partition number )
Partition number (1-3): 2 ( in my case the APFS was now Windows RE )

Command (? for help): l ( list/search partition codes af0a is the code for Apple APFS)

Command (? for help): t ( t changes the partition code )
Partition number (1-3): 2
Current type is 2700 (Windows RE)
Hex code or GUID (L to show codes, Enter = 2700): af0a
Changed type of partition to 'Apple APFS'

Command (? for help): w
Final checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING
PARTITIONS!!
Do you want to proceed? (Y/N): y

Here is the command prompt text:

C:UsersxxxxxxxDownloads@ GDISK>gdisk64 0:

GPT fdisk (gdisk) version 1.0.5
Partition table scan:
  MBR: protective
  BSD: not present
  APM: not present
  GPT: present

Found valid GPT with protective MBR; using GPT.

Command (? for help): p

Disk 0:: 61279344 sectors, 233.8 GiB
Sector size (logical): 4096 bytes
Disk identifier (GUID): 91BA5126-A853-4FDF-85C5-A15CB06EE24D
Partition table holds up to 128 entries
Main partition table begins at sector 2 and ends at sector 5
First usable sector is 6, last usable sector is 61279338
Partitions will be aligned on 2-sector boundaries
Total free space is 129 sectors (516.0 KiB)

Number  Start (sector)    End (sector)  Size       Code  Name
   1               6           76805   300.0 MiB   EF00
   2           76806        39139305   149.0 GiB   2700  Ma
   3        39139312        61279215   84.5 GiB    0700

Command (? for help): i
Partition number (1-3): 2

Partition GUID code: DE94BBA4-06D1-4D40-A16A-BFD50179D6AC (Windows RE)
Partition unique GUID: AE6B38B0-D322-4A09-B871-0F92B87082CA
First sector: 76806 (at 300.0 MiB)
Last sector: 39139305 (at 149.3 GiB)
Partition size: 39062500 sectors (149.0 GiB)
Attribute flags: 0000000000000000
Partition name: 'Ma'

Command (? for help): l

Type search string, or <Enter> to show all codes: apfs
af0a Apple APFS

Command (? for help): t
Partition number (1-3): 2

Current type is 2700 (Windows RE)
Hex code or GUID (L to show codes, Enter = 2700): af0a
Changed type of partition to 'Apple APFS'

Command (? for help): w

Final checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING
PARTITIONS!!

Do you want to proceed? (Y/N): y
OK; writing new GUID partition table (GPT) to .physicaldrive0.
Disk synchronization succeeded! The computer should now use the new
partition table.
The operation has completed successfully.

Author: Subham

Leave a Reply

Your email address will not be published. Required fields are marked *