sudo gdisk /dev/disk0
Password:
GPT fdisk (gdisk) version 1.0.4
Warning: Devices opened with shared lock will not have their
partition table automatically reloaded!
Partition table scan:
MBR: protective
BSD: not present
APM: not present
GPT: present
Found valid GPT with protective MBR; using GPT.
Command (? for help): t
Partition number (1-3): 2
Current type is 'Apple Core Storage'
Hex code or GUID (L to show codes, Enter = AF00): AF00
Changed type of partition to 'Apple HFS/HFS+'
Command (? for help): p
Disk /dev/disk0: 236978176 sectors, 113.0 GiB
Sector size (logical): 512 bytes
Disk identifier (GUID): 5C089A2F-BA4F-4F7B-AE2A-5A03869F8148
Partition table holds up to 128 entries
Main partition table begins at sector 2 and ends at sector 33
First usable sector is 34, last usable sector is 236978142
Partitions will be aligned on 8-sector boundaries
Total free space is 4069 sectors (2.0 MiB)
Number Start (sector) End (sector) Size Code Name
1 40 409639 200.0 MiB EF00
2 409640 158748671 75.5 GiB AF00
3 158748672 236974079 37.3 GiB 0700
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 /dev/disk0.
Warning: Devices opened with shared lock will not have their
partition table automatically reloaded!
Warning: The kernel may continue to use old or deleted partitions.
You should reboot or remove the drive.
The operation has completed successfully.
diskutil repairDisk disk0
Repairing the partition map might erase disk0s1, proceed? (y/N) y
Started partition map repair on disk0
Checking prerequisites
Checking the partition list
Adjusting partition map to fit whole disk as required
Checking for an EFI system partition
Checking the EFI system partition's size
Checking the EFI system partition's file system
Checking the EFI system partition's folder content
Checking all HFS data partition loader spaces
Preparing to create trailing loader space by shrinking the volume "" on disk0s2
Creating loader space, part 1 of 3: Verifying the file system
Problems were encountered during repair of the partition map
Error: -69763: Partition map repair failed file system check while creating loader space for a data partition. You should repair that specific partition and then try repairing the partition map again
Underlying error: -69845: File system verify or repair failed