You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

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 11:46 AM in response to Loner T

still not working... i have checked, but i dont where did i go wrong...



Last login: Thu Oct 2 19:39:29 on console

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

4 343476032 343476224 96.5 KiB FFFF Unknown


Command (? for help):



and


User uploaded file

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

Last login: Thu Oct 2 19:39:29 on console

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

4 343476032 343476224 96.5 KiB FFFF Unknown

Oct 2, 2014 12:01 PM in response to Adrianching

1. Delete the old entry and create a new entry at GPT#4.


sudo gdisk /dev/disk0

p

d

4

n

4

(Put the correct Start value here)

(Put the correct End value here)

0700

p

w

y


2. You will need to reboot after each change, because the disk you are booted from is the one being modified. Each reboot will rebuild disk0s4 using the start/end you entered.


3. Run the dd command - sudo dd if=/dev/rdisk0s4 count=1 2>/dev/null | hexdump -C and check that the first line contains "R.NTFS".


4. If you want to pose here for recording purposes, each of these iterations, please do so. It may be better that the output of 1,2,3 gets recorded here.


5. This is a tedious process and you want to check after the second 'p'rint command that it looks reasonable, before the 'w'rite and 'y'es to confirm.



Here is an example...


Command (? for help): d

Partition number (1-4): 4


Command (? for help): n

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

First sector (34-1954210086, default = 1454210080) or {+-}size{KMGTP}: 1454211072

Last sector (1454211072-1954210086, default = 1954210086) or {+-}size{KMGTP}: 1954209791

Current type is 'Apple HFS/HFS+'

Hex code or GUID (L to show codes, Enter = AF00): 0700

Changed type of partition to 'Microsoft basic data'


Command (? for help): p

Disk /dev/disk0: 1954210120 sectors, 931.8 GiB

Logical sector size: 512 bytes

Disk identifier (GUID): 6ED0C429-00D1-4759-B50E-04B6FB80D0E3

Partition table holds up to 128 entries

First usable sector is 34, last usable sector is 1954210086

Partitions will be aligned on 8-sector boundaries

Total free space is 1293 sectors (646.5 KiB)


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

1 40 409639 200.0 MiB EF00 EFI System Partition

2 409640 1452940543 692.6 GiB AF00 Customer

3 1452940544 1454210079 619.9 MiB AB00 Recovery HD

4 1454211072 1954209791 238.4 GiB 0700 Microsoft basic data

Oct 2, 2014 12:17 PM in response to Loner T

i have done the steps you told me, but seems i still get it wrong..

i did both , i ran "dd", there is "R.NTFS"

and when i type in the first sector, it wont allow me to do so, so i followed the default one..


here is the GRT:


Last login: Thu Oct 2 20:10:38 on console

CCs-MacBook-Pro:~ CheungChing1$ sudo dd if=/dev/rdisk0s4 count=1 2>/dev/null | hexdump -C

Password:

00000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|

*

00000200

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 6 sectors (3.0 KiB)


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

4 343476032 490234718 70.0 GiB 0700 Microsoft basic data


Command (? for help):

Oct 2, 2014 12:32 PM in response to Adrianching

Partition 4 looks incorrect. You have


343476032 490234718


but it should be

343476224 490233848 146757625

I am using this that you posted earlier...

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

Oct 2, 2014 12:36 PM in response to Loner T

there is one the post.......i followed...

Loner TOct 2, 2014 10:03 AM Re: Bootcamp missing after expanding partition
Re: Bootcamp missing after expanding partitionin response to Adrianching

Did you look at the other thread/discussion where Testdisk and Gdisk are used with the steps to recreate the GPT and check each entry? If not, please take a look.


This looks like the best candidate


MS Data 196718600 343476224 146757625

but it wasn't allowed me to type in 196718600 for the first sector...

what should i do now.....

Oct 2, 2014 2:27 PM in response to Loner T

Dear Loner T,


I really want to thank you in person!

you saved me and my mac and i had a great lesson from you!

Now everything is settled and running flawlessly!!!

THANK YOU VERY MUCH!!!!!!!

๐Ÿ˜๐Ÿ˜๐Ÿ˜๐Ÿ˜๐Ÿ˜๐Ÿ˜๐Ÿ˜๐Ÿ˜๐Ÿ˜Ž๐Ÿ˜Ž๐Ÿ˜Ž๐Ÿ˜Ž๐Ÿ˜Ž

here is the GPT result:

Last login: Thu Oct 2 22:15:12 on console

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): 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 1068 sectors (534.0 KiB)


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

4 343476224 490233848 70.0 GiB 0700 Microsoft basic data


Command (? for help):

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 Account.