Apple Event: May 7th at 7 am PT

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

Bootcamp missing after expanding partition

From original post:


Fixing missing Bootcamp partition after Mavericks rewrote wrong GPT

MacBook Pro with Retina display, OS X Mavericks (10.9.5)

Posted on Oct 1, 2014 4:56 PM

Reply
47 replies

Oct 2, 2014 9:18 AM in response to Loner T

i have tried to go through, In Create, then it shows the EPI has been detected.

here is the info before search


TestDisk 7.0-WIP, Data Recovery Utility, August 2014

Christophe GRENIER <grenier@cgsecurity.org>

http://www.cgsecurity.org


Disk /dev/disk0 - 251 GB / 233 GiB - 490234752 sectors (RO)

Current partition structure:

Partition Start End Size in sectors


1 P EFI System 40 409639 409600 [EFI system partitio

2 P Mac HFS 409640 342206495 341796856 [Customer]

3 P Mac Boot 342206496 343476031 1269536 [Recovery HD]

Warning: number of heads/cylinder mismatches 255 (NTFS) != 1 (HD)

Warning: number of sectors per track mismatches 63 (NTFS) != 1 (HD)

4 P MS Data 382539776 490233855 107694080 [BOOTCAMP]








P=Primary D=Deleted

>[Quick Search] [ Backup ]

Try to locate partition



after search:

TestDisk 7.0-WIP, Data Recovery Utility, August 2014

Christophe GRENIER <grenier@cgsecurity.org>

http://www.cgsecurity.org


Disk /dev/disk0 - 251 GB / 233 GiB - 490234752 sectors (RO)


The harddisk (251 GB / 233 GiB) seems too small! (< 306 GB / 285 GiB)

Check the harddisk size: HD jumpers settings, BIOS detection...


The following partitions can't be recovered:

Partition Start End Size in sectors

> MS Data 490233855 597927934 107694080

Mac HFS 490234708 491504243 1269536










[ Continue ]

NTFS, blocksize=4096, 55 GB / 51 GiB


after continue:

TestDisk 7.0-WIP, Data Recovery Utility, August 2014

Christophe GRENIER <grenier@cgsecurity.org>

http://www.cgsecurity.org


Disk /dev/disk0 - 251 GB / 233 GiB - 490234752 sectors (RO)

Partition Start End Size in sectors

>D EFI System 40 409639 409600 [EFI]

D Mac HFS 409640 342206495 341796856

D MS Data 196718600 343476224 146757625

D Mac HFS 342206496 343476031 1269536

D MS Data 343476224 490233848 146757625

D MS Data 382539776 490233855 107694080

D Mac HFS 488965176 490234711 1269536









Structure: Ok. Use Up/Down Arrow keys to select partition.

Use Left/Right Arrow keys to CHANGE partition characteristics:

P=Primary D=Deleted

Keys A: add partition, L: load backup, T: change type, P: list files,

Enter: to continue

FAT32, blocksize=512, 209 MB / 200 MiB

Oct 2, 2014 9:27 AM in response to Adrianching

Select each MS Data entry and use "P: List files". Do not use left/right arrows at all. Only use up/down arrow keys to navigate partitions and look for files. For each partition that has familiar files, not down start/end/size and continue to the next MS Data partition till you have looked at all MS data entries.


Please see Can't boot from bootcamp after sudden crash for the recovery examples. You also should download GPT Fdisk from SourceForge.

Oct 2, 2014 9:44 AM in response to Loner T

there are 3 MS Data:

TestDisk 7.0-WIP, Data Recovery Utility, August 2014

Christophe GRENIER <grenier@cgsecurity.org>

http://www.cgsecurity.org


Disk /dev/disk0 - 251 GB / 233 GiB - 490234752 sectors (RO)

Partition Start End Size in sectors

P EFI System 40 409639 409600 [EFI]

D Mac HFS 409640 342206495 341796856

>D MS Data 196718600 343476224 146757625

D Mac HFS 342206496 343476031 1269536

D MS Data 343476224 490233848 146757625

D MS Data 382539776 490233855 107694080

D Mac HFS 488965176 490234711 1269536




Structure: Ok. Use Up/Down Arrow keys to select partition.

Use Left/Right Arrow keys to CHANGE partition characteristics:

P=Primary D=Deleted

Keys A: add partition, L: load backup, T: change type, P: list files,

Enter: to continue

NTFS found using backup sector, blocksize=4096, 75 GB / 69 GiB



the first one after i "P" it

TestDisk 7.0-WIP, Data Recovery Utility, August 2014

Christophe GRENIER <grenier@cgsecurity.org>

http://www.cgsecurity.org


MS Data 196718600 343476224 146757625




Can't open filesystem. Filesystem seems damaged.


the second one i "P" it:

TestDisk 7.0-WIP, Data Recovery Utility, August 2014

Christophe GRENIER <grenier@cgsecurity.org>

http://www.cgsecurity.org

MS Data 343476224 490233848 146757625

Directory /


>dr-xr-xr-x 0 0 0 1-Oct-2014 22:15 .

dr-xr-xr-x 0 0 0 1-Oct-2014 22:15 ..

dr-xr-xr-x 0 0 0 18-Dec-2012 14:00 $Recycle.Bin

dr-xr-xr-x 0 0 0 11-Mar-2014 15:57 .Trashes

dr-xr-xr-x 0 0 0 1-Oct-2014 14:37 Autodesk

dr-xr-xr-x 0 0 0 18-Dec-2012 21:52 Boot

dr-xr-xr-x 0 0 0 1-Oct-2014 22:03 Config.Msi

dr-xr-xr-x 0 0 0 18-Dec-2012 14:06 Intel

dr-xr-xr-x 0 0 0 18-Dec-2012 15:27 NVIDIA

dr-xr-xr-x 0 0 0 22-Oct-2013 15:13 New folder

dr-xr-xr-x 0 0 0 14-Jul-2009 04:20 PerfLogs

dr-xr-xr-x 0 0 0 22-Oct-2013 14:38 Program Files

dr-xr-xr-x 0 0 0 1-Oct-2014 22:03 Program Files (x86)

dr-xr-xr-x 0 0 0 1-Oct-2014 22:03 ProgramData

dr-xr-xr-x 0 0 0 10-Jun-2014 16:01 QvodPlayer

dr-xr-xr-x 0 0 0 18-Dec-2012 14:00 Recovery

dr-xr-xr-x 0 0 0 1-Oct-2014 22:03 System Volume Information

dr-xr-xr-x 0 0 0 23-Dec-2012 05:13 TEMP_PARALLELS_TOOLS

dr-xr-xr-x 0 0 0 17-Jul-2014 07:52 UpdateChromeLinksLogs

dr-xr-xr-x 0 0 0 18-Dec-2012 15:28 Users

dr-xr-xr-x 0 0 0 1-Oct-2014 22:15 Windows

-r--r--r-- 0 0 8192 18-Dec-2012 21:52 BOOTSECT.BAK

-r--r--r-- 0 0 0 29-Apr-2013 07:45 END

-r--r--r-- 0 0 383786 21-Nov-2010 03:23 bootmgr

-r--r--r-- 0 0 90 18-Dec-2012 16:17 desktop.ini

-r--r--r-- 0 0 904704 1-Dec-2006 22:37 msdia80.dll

-r--r--r-- 0 0 2097152000 1-Oct-2014 21:11 pagefile.sys



Next

Use Right to change directory, h to hide Alternate Data Stream

q to quit, : to select the current file, a to select all files

C to copy the selected files, c to copy the current file



>[ Quit ]

Quit this section

and the third one:

TestDisk 7.0-WIP, Data Recovery Utility, August 2014

Christophe GRENIER <grenier@cgsecurity.org>

http://www.cgsecurity.org


Disk /dev/disk0 - 251 GB / 233 GiB - 490234752 sectors (RO)


Partition Start End Size in sectors


1 P EFI System 40 409639 409600 [EFI]


[ Quit ] >[Deeper Search] [ Write ]

Try to find more partitions

Oct 2, 2014 10:42 AM in response to Loner T

Last login: Thu Oct 2 18:37:40 on ttys000

CCs-MacBook-Pro:~ CheungChing1$ sudo gdisk /dev/disk0

GPT fdisk (gdisk) version 0.8.10


Warning: Devices opened with shared lock will not have their

partition table automatically reloaded!

Partition table scan:

MBR: hybrid

BSD: not present

APM: not present

GPT: present


Found valid GPT with hybrid MBR; using GPT.


Command (? for help): GPT

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

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

Partition number (1-4): #4

Partition number (1-4): 4


Command (? for help): n

Partition number (4-128, default 4): 4

First sector (34-490234718, default = 343476032) or {+-}size{KMGTP}: 196718600

First sector (34-490234718, default = 343476032) or {+-}size{KMGTP}:



i dont know wt to do up to this step..

Oct 2, 2014 11:14 AM in response to Loner T

Last login: Thu Oct 2 18:57:27 on ttys000

CCs-MacBook-Pro:~ CheungChing1$ sudo gdisk /dev/disk0

Password:

GPT fdisk (gdisk) version 0.8.10


Warning: Devices opened with shared lock will not have their

partition table automatically reloaded!

Partition table scan:

MBR: hybrid

BSD: not present

APM: not present

GPT: present


Found valid GPT with hybrid MBR; using GPT.


Command (? for help): d

Partition number (1-4): 4


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.

CCs-MacBook-Pro:~ CheungChing1$ p

-bash: p: command not found

CCs-MacBook-Pro:~ CheungChing1$ sudo gdisk /dev/disk0

GPT fdisk (gdisk) version 0.8.10


Warning: Devices opened with shared lock will not have their

partition table automatically reloaded!

Partition table scan:

MBR: hybrid

BSD: not present

APM: not present

GPT: present


Found valid GPT with hybrid MBR; using GPT.


Command (? for help): p

Disk /dev/disk0: 490234752 sectors, 233.8 GiB

Logical sector size: 512 bytes

Disk identifier (GUID): 0000103F-40BF-0000-F577-0000DF230000

Partition table holds up to 128 entries

First usable sector is 34, last usable sector is 490234718

Partitions will be aligned on 8-sector boundaries

Total free space is 146758693 sectors (70.0 GiB)


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

1 40 409639 200.0 MiB EF00 EFI system partition

2 409640 342206495 163.0 GiB AF00 Customer

3 342206496 343476031 619.9 MiB AB00 Recovery HD


Command (? for help): n

Partition number (4-128, default 4): 4

First sector (34-490234718, default = 343476032) or {+-}size{KMGTP}:



at this point, i dont know what should i put in....

Bootcamp missing after expanding partition

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