Command (? for help): ^CBackups-MacBook-Pro:~ backup$ sudo gdisk /dev/disk0
Password:
GPT fdisk (gdisk) version 1.0.1
Caution: invalid backup GPT header, but valid main header; regenerating
backup header from main header.
Caution! After loading partitions, the CRC doesn't check out!
Warning! Main and backup partition tables differ! Use the 'c' and 'e' options
on the recovery & transformation menu to examine the two tables.
Warning! One or more CRCs don't match. You should repair the disk!
Partition table scan:
MBR: MBR only
BSD: not present
APM: not present
GPT: damaged
Found valid MBR and corrupt GPT. Which do you want to use? (Using the
GPT MAY permit recovery of GPT data.)
1 - MBR
2 - GPT
3 - Create blank GPT
Your answer: 2
Warning! Main partition table overlaps the first partition by 34 blocks!
You will need to delete this partition or resize it in another utility.
Warning! Secondary partition table overlaps the last partition by
4613656342287257470 blocks!
You will need to delete this partition or resize it in another utility.
Command (? for help): x
Expert command (? for help): l
Enter the sector alignment value (1-65536, default = 2048): 1
Expert command (? for help): m
Command (? for help): o
This option deletes all partitions and creates a new protective MBR.
Proceed? (Y/N): Y
Command (? for help): n
Partition number (1-128, default 1): 1
First sector (34-977105026, default = 2048) or {+-}size{KMGTP}: 40
Information: Moved requested sector from 40 to 2048 in
order to align on 2048-sector boundaries.
Use 'l' on the experts' menu to adjust alignment
Last sector (2048-977105026, default = 977105026) or {+-}size{KMGTP}: 409639
Current type is 'Apple HFS/HFS+'
Hex code or GUID (L to show codes, Enter = AF00): EF00
Changed type of partition to 'EFI System'
Command (? for help): n
Partition number (2-128, default 2): 2
First sector (34-977105026, default = 411648) or {+-}size{KMGTP}: 409640
Information: Moved requested sector from 409640 to 411648 in
order to align on 2048-sector boundaries.
Use 'l' on the experts' menu to adjust alignment
Last sector (411648-977105026, default = 977105026) or {+-}size{KMGTP}: 829351119
Current type is 'Apple HFS/HFS+'
Hex code or GUID (L to show codes, Enter = AF00): AF00
Changed type of partition to 'Apple HFS/HFS+'
Command (? for help): n
Partition number (3-128, default 3): 3
First sector (34-977105026, default = 829351936) or {+-}size{KMGTP}: 829351120
Information: Moved requested sector from 829351120 to 829351936 in
order to align on 2048-sector boundaries.
Use 'l' on the experts' menu to adjust alignment
Last sector (829351936-977105026, default = 977105026) or {+-}size{KMGTP}: 830620655
Current type is 'Apple HFS/HFS+'
Hex code or GUID (L to show codes, Enter = AF00): AB00
Changed type of partition to 'Recovery HD'
Command (? for help): n
Partition number (4-128, default 4): 4
First sector (34-977105026, default = 830621696) or {+-}size{KMGTP}: 830621696
Last sector (830621696-977105026, default = 977105026) or {+-}size{KMGTP}: 977104895
Current type is 'Apple HFS/HFS+'
Hex code or GUID (L to show codes, Enter = AF00): p
Hex code or GUID (L to show codes, Enter = AF00): w
Hex code or GUID (L to show codes, Enter = AF00): y
Hex code or GUID (L to show codes, Enter = AF00): Command (? for help): ^CBackups-MacBook-Pro:~ backup$ sudo gdisk /dev/disk0
Password:
GPTChanged type of partition to 'Unknown'
Command (? for help): Disk /dev/disk0: 977105060 sectors, 465.9 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): 88F4692E-9F35-456C-9697-5E587B80E492
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 977105026
Partitions will be aligned on 2048-sector boundaries
Total free space is 6009 sectors (2.9 MiB)
Number Start (sector) End (sector) Size Code Name
1 2048 409639 199.0 MiB EF00 EFI System
2 411648 829351119 395.3 GiB AF00 Apple HFS/HFS+
3 829351936 830620655 619.5 MiB AB00 Recovery HD
4 830621696 977104895 69.8 GiB FFFF Unknown
Command (? for help):