Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Unable to boot into mac or bootcamp

I was stupid to create a new partition from bootcamp so that I can share files between mac and windows easily. It converted the partitions to dynamic I think. I can't boot into mac or windows. Is there a way I can boot into mac without reinstalling ? My time machine back up is very old so I want to get back into mac without restoring it. I appreciate it very much and would follow all the instructions.


I was able to get into internet recovery and terminal.


User uploaded file

MacBook Pro (Retina, 15-inch, Early 2013), OS X El Capitan (10.11.2)

Posted on Jan 14, 2016 10:27 PM

Reply
48 replies

Jan 15, 2016 7:41 PM in response to Loner T

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):


How should I proceed ?

Jan 15, 2016 7:56 PM in response to Loner T

Sorry I didn't understand. After ctrl+c, do you want me to do the command below and reenter the values that entered before ?


sudo gdisk /dev/disk0

x

l (This is is lower case L )

1 (This is digit 1 )

m (Go to main menu)

o (Create a new GPT)


Hex code or GUID (L to show codes, Enter = AF00): ^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: x

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): l

0700 Microsoft basic data 0c01 Microsoft reserved 2700 Windows RE

3000 ONIE boot 3001 ONIE config 3900 Plan 9

4100 PowerPC PReP boot 4200 Windows LDM data 4201 Windows LDM metadata

4202 Windows Storage Spac 7501 IBM GPFS 7f00 ChromeOS kernel

7f01 ChromeOS root 7f02 ChromeOS reserved 8200 Linux swap

8300 Linux filesystem 8301 Linux reserved 8302 Linux /home

8303 Linux x86 root ✅ 8304 Linux x86-64 root (/ 8305 Linux ARM64 root ✅

8306 Linux /srv 8307 Linux ARM32 root ✅ 8400 Intel Rapid Start

8e00 Linux LVM a500 FreeBSD disklabel a501 FreeBSD boot

a502 FreeBSD swap a503 FreeBSD UFS a504 FreeBSD ZFS

a505 FreeBSD Vinum/RAID a580 Midnight BSD data a581 Midnight BSD boot

a582 Midnight BSD swap a583 Midnight BSD UFS a584 Midnight BSD ZFS

a585 Midnight BSD Vinum a600 OpenBSD disklabel a800 Apple UFS

a901 NetBSD swap a902 NetBSD FFS a903 NetBSD LFS

a904 NetBSD concatenated a905 NetBSD encrypted a906 NetBSD RAID

ab00 Recovery HD af00 Apple HFS/HFS+ af01 Apple RAID

af02 Apple RAID offline af03 Apple label af04 AppleTV recovery

af05 Apple Core Storage bc00 Acronis Secure Zone be00 Solaris boot

bf00 Solaris root bf01 Solaris /usr & Mac Z bf02 Solaris swap

bf03 Solaris backup bf04 Solaris /var bf05 Solaris /home

bf06 Solaris alternate se bf07 Solaris Reserved 1 bf08 Solaris Reserved 2

Press the <Enter> key to see more codes: 1

bf09 Solaris Reserved 3 bf0a Solaris Reserved 4 bf0b Solaris Reserved 5

c001 HP-UX data c002 HP-UX service ea00 Freedesktop $BOOT

eb00 Haiku BFS ed00 Sony system partitio ed01 Lenovo system partit

ef00 EFI System ef01 MBR partition scheme ef02 BIOS boot partition

f800 Ceph OSD f801 Ceph dm-crypt OSD f802 Ceph journal

f803 Ceph dm-crypt journa f804 Ceph disk in creatio f805 Ceph dm-crypt disk i

fb00 VMWare VMFS fb01 VMWare reserved fc00 VMWare kcore crash p

fd00 Linux RAID


Command (? for help): m

b back up GPT data to a file

c change a partition's name

d delete a partition

i show detailed information on a partition

l list known partition types

n add a new partition

o create a new empty GUID partition table (GPT)

p print the partition table

q quit without saving changes

r recovery and transformation options (experts only)

s sort partitions

t change a partition's type code

v verify disk

w write table to disk and exit

x extra functionality (experts only)

? print this menu


Command (? for help):

Jan 15, 2016 8:02 PM in response to wykstra

Ctrl+C will put you back at Terminal prompt without any changes. This is why you are being asked to choose the GPT again, because we aborted the entire session without any changes.


You will need to choose 2 for GPT, and use the experts 'l' command to change alignment to 1 sector and recreate the new GPT, and rebuild the partition table.

Jan 15, 2016 8:19 PM in response to wykstra

wykstra wrote:


Command (? for help): sudo gdisk /dev/disk0

This is entered in OS X Terminal. You are trying to enter Gdisk command, within Gdisk. 😉. I suggest you use Ctrl+C and start over again.


Notice what you did here...

Hex code or GUID (L to show codes, Enter = AF00): ^CBackups-MacBook-Pro:~ backup$ sudo gdisk /dev/disk0

Password:

GPT fdisk (gdisk) version 1.0.1

Jan 15, 2016 8:23 PM in response to Loner T

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):

Jan 15, 2016 10:14 PM in response to Loner T

Command (? for help): ^CBackups-MacBook-Pro:~ backup$ sudo gpt -vv -r show /dev/disk0

Password:

gpt show: /dev/disk0: mediasize=500277790720; sectorsize=512; blocks=977105060

gpt show: /dev/disk0: MBR at sector 0

gpt show: /dev/disk0: Bad CRC in GPT table at sector 2

start size index contents

0 1 MBR

1 830621695 1 MBR part 66

830621696 126003200 2 MBR part 66

956624896 20478116 3 MBR part 66

977103012 2048

Backups-MacBook-Pro:~ backup$

Jan 16, 2016 7:24 AM in response to wykstra

This may be bug in GDisk 1.0.1, let me find out. Let us split the work into two steps.


Step A - Creates a blank GPT. Choose 2 for GPT, if prompted.


sudo gdisk /dev/rdisk0

o

p

w

y

q


Step B. Create individual entries .


sudo gdisk /dev/rdisk0

x

l (This is is lower case L )

1 (This is digit 1 )

m (Go to main menu)

n (New)

1

40

409639

EF00

n

2

409640

829351119

AF00

n

3

829351120

830620655

AB00

n

4

830621696

977104895

0700

p

w

y

Jan 16, 2016 8:44 AM in response to Loner T

Command (? for help): p

Disk /dev/rdisk0: 977105060 sectors, 465.9 GiB

Logical sector size: 512 bytes

Disk identifier (GUID): 98FD6F70-9B53-4580-97E3-D98EB0E0228D

Partition table holds up to 128 entries

First usable sector is 34, last usable sector is 977105026

Partitions will be aligned on 1-sector boundaries

Total free space is 1188 sectors (594.0 KiB)


Number Start (sector) End (sector) Size Code Name

1 40 409639 200.0 MiB EF00 EFI System

2 409640 829351119 395.3 GiB AF00 Apple HFS/HFS+

3 829351120 830620644 619.9 MiB AB00 Recovery HD

4 830621696 977104895 69.8 GiB 0700 Microsoft basic data


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/rdisk0.

Warning: The kernel may continue to use old or deleted partitions.

You should reboot or remove the drive.

The operation has completed successfully.

Backups-MacBook-Pro:~ backup$

Unable to boot into mac or bootcamp

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.