Q: Bootcamp partition issue after Yosemite upgrade
I've installed bootcamp on my mac. Later on I needed more space on my bootcamp partition and used some method to shrink the mac partition and increase the bootcamp partition. This method worked fine until I did a Yosemite upgrade today. Now I see that my bootcamp partition is gone and has reverted to it's original size. Below is a screenshot of disk utility and outputs of the commands wanted. I need help in recovering my bootcamp partition. Thank you very much.
diskutil list
/dev/disk0
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *160.0 GB disk0
1: EFI EFI 209.7 MB disk0s1
2: Apple_HFS Macintosh HD 55.0 GB disk0s2
3: Apple_Boot Recovery HD 650.0 MB disk0s3
4: Microsoft Basic Data 78.0 GB disk0s4
diskutil cs list
No CoreStorage logical volume groups found
sudo gpt -vv -r show /dev/disk0
gpt show: /dev/disk0: mediasize=160041885696; sectorsize=512; blocks=312581808
gpt show: /dev/disk0: Suspicious MBR at sector 0
gpt show: /dev/disk0: Pri GPT at sector 1
gpt show: /dev/disk0: Sec GPT at sector 312581807
start size index contents
0 1 MBR
1 1 Pri GPT header
2 32 Pri GPT table
34 6
40 409600 1 GPT part - C12A7328-F81F-11D2-BA4B-00A0C93EC93B
409640 107421872 2 GPT part - 48465300-0000-11AA-AA11-00306543ECAC
107831512 1269544 3 GPT part - 426F6F74-0000-11AA-AA11-00306543ECAC
109101056 51138560
160239616 152340480 4 GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7
312580096 1679
312581775 32 Sec GPT table
312581807 1 Sec GPT header
sudo fdisk /dev/disk0
Disk: /dev/disk0 geometry: 19457/255/63 [312581808 sectors]
Signature: 0xAA55
Starting Ending
#: id cyl hd sec - cyl hd sec [ start - size]
------------------------------------------------------------------------
1: EE 0 0 2 - 1023 254 63 [ 1 - 160239615] <Unknown ID>
*2: 07 1023 254 63 - 1023 254 63 [ 160239616 - 152340480] HPFS/QNX/AUX
3: 00 0 0 0 - 0 0 0 [ 0 - 0] unused
4: 00 0 0 0 - 0 0 0 [ 0 - 0] unused
sudo dd if=/dev/rdisk0 count=1 2>/dev/null | hexdump -C
00000000 33 c0 8e d0 bc 00 7c 8e c0 8e d8 be 00 7c bf 00 |3.....|......|..|
00000010 06 b9 00 02 fc f3 a4 50 68 1c 06 cb fb b9 04 00 |.......Ph.......|
00000020 bd be 07 80 7e 00 00 7c 0b 0f 85 0e 01 83 c5 10 |....~..|........|
00000030 e2 f1 cd 18 88 56 00 55 c6 46 11 05 c6 46 10 00 |.....V.U.F...F..|
00000040 b4 41 bb aa 55 cd 13 5d 72 0f 81 fb 55 aa 75 09 |.A..U..]r...U.u.|
00000050 f7 c1 01 00 74 03 fe 46 10 66 60 80 7e 10 00 74 |....t..F.f`.~..t|
00000060 26 66 68 00 00 00 00 66 ff 76 08 68 00 00 68 00 |&fh....f.v.h..h.|
00000070 7c 68 01 00 68 10 00 b4 42 8a 56 00 8b f4 cd 13 ||h..h...B.V.....|
00000080 9f 83 c4 10 9e eb 14 b8 01 02 bb 00 7c 8a 56 00 |............|.V.|
00000090 8a 76 01 8a 4e 02 8a 6e 03 cd 13 66 61 73 1c fe |.v..N..n...fas..|
000000a0 4e 11 75 0c 80 7e 00 80 0f 84 8a 00 b2 80 eb 84 |N.u..~..........|
000000b0 55 32 e4 8a 56 00 cd 13 5d eb 9e 81 3e fe 7d 55 |U2..V...]...>.}U|
000000c0 aa 75 6e ff 76 00 e8 8d 00 75 17 fa b0 d1 e6 64 |.un.v....u.....d|
000000d0 e8 83 00 b0 df e6 60 e8 7c 00 b0 ff e6 64 e8 75 |......`.|....d.u|
000000e0 00 fb b8 00 bb cd 1a 66 23 c0 75 3b 66 81 fb 54 |.......f#.u;f..T|
000000f0 43 50 41 75 32 81 f9 02 01 72 2c 66 68 07 bb 00 |CPAu2....r,fh...|
00000100 00 66 68 00 02 00 00 66 68 08 00 00 00 66 53 66 |.fh....fh....fSf|
00000110 53 66 55 66 68 00 00 00 00 66 68 00 7c 00 00 66 |SfUfh....fh.|..f|
00000120 61 68 00 00 07 cd 1a 5a 32 f6 ea 00 7c 00 00 cd |ah.....Z2...|...|
00000130 18 a0 b7 07 eb 08 a0 b6 07 eb 03 a0 b5 07 32 e4 |..............2.|
00000140 05 00 07 8b f0 ac 3c 00 74 09 bb 07 00 b4 0e cd |......<.t.......|
00000150 10 eb f2 f4 eb fd 2b c9 e4 64 eb 00 24 02 e0 f8 |......+..d..$...|
00000160 24 02 c3 49 6e 76 61 6c 69 64 20 70 61 72 74 69 |$..Invalid parti|
00000170 74 69 6f 6e 20 74 61 62 6c 65 00 45 72 72 6f 72 |tion table.Error|
00000180 20 6c 6f 61 64 69 6e 67 20 6f 70 65 72 61 74 69 | loading operati|
00000190 6e 67 20 73 79 73 74 65 6d 00 4d 69 73 73 69 6e |ng system.Missin|
000001a0 67 20 6f 70 65 72 61 74 69 6e 67 20 73 79 73 74 |g operating syst|
000001b0 65 6d 00 00 00 63 7b 9a e9 54 00 00 00 00 00 00 |em...c{..T......|
000001c0 02 00 ee fe ff ff 01 00 00 00 ff 0f 8d 09 80 fe |................|
000001d0 ff ff 07 fe ff ff 00 10 8d 09 00 88 14 09 00 00 |................|
000001e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
000001f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 aa |..............U.|
00000200
MacBook Pro
Posted on Oct 18, 2014 1:06 PM
Since the beginning of the Bootcamp partition does not have an NTFS header Bootcamp has stopped working.
These are the options...
1. Use Testdisk and look for deleted partitions as in "Missing Operating system_ " After installing Yosemite .
2. Short-cut #1 by assuming that the end of GPT#3+1 byte is where Bootcamp starts, in your specific case it is 109101056. Manipulate the GPT using GPT FDisk (http://sourceforge.net/projects/gptfdisk/) accordingly, and re-execute the 'dd' command. If a NTFS header exists, then make MBR changes and test.
3. If #2 does not work, fall back to #1.
4. Nuke-and-Pave and rebuild Windows from scratch, depending on your backup availability and tolerance for data loss.
Posted on Oct 18, 2014 1:53 PM