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

Bootcamp partition missing after yosemite installation

I am running OS X 10.10.1 currently. Right after I upgraded to Yosemite my windows 7 partition was missing. I have all of my school work and programs on that partition and I use it quite often. I have seen other questions similar to this but none with an external hard drive backed up like I do. I tried to repair the windows 7 partition with disk utility but it appears to just be floating in cyber space unrecognizable and unrepairable. Something happened when I "upgraded" to Yosemite.


Thankfully, I have an external hard drive with both my Macbook partition as well as my windows 7 partition saved on to my external hard drive. I went the extra mile and partitioned my external hard drive as well with a macbook partition and a windows 7 partition so they are not in the same part of the hard drive. Unfortunately I'm a little rusty with my tech skills now. How can I just restore this back to what it was? time machine won't restore my windows 7 partition. I just want everything back to where it was originally, I don't care about yosemite. I'm quite sure that I didn't overwrite the windows 7 partition on my external hard drive because it doesn't exist on this new operating system, so it must be in my external drive. Can someone please give me some direction for a beginner on stuff like this?

MacBook Pro (15-inch Mid 2012)

Posted on Mar 4, 2015 2:35 PM

Reply
58 replies

Mar 4, 2015 2:40 PM in response to colinkoenig

If your Windows partition was untouched by Yosemite upgrade and has not been resized using any tools, it may be possible to correct the problem.


Can you post the output of the following Terminal commands?


diskutil list

diskutil cs list

sudo gpt -vv -r show /dev/disk0

sudo fdisk /dev/disk0


The "sudo" commands will prompt for your password, and it will not be echoed back. You may also see a warning about improper use of "sudo" and potential data loss due to "abuse" of the command.

Mar 4, 2015 2:49 PM in response to Loner T

Colins-MacBook-Pro-4:~ colinkoenig$ diskutil list

/dev/disk0

#: TYPE NAME SIZE IDENTIFIER

0: GUID_partition_scheme *500.1 GB disk0

1: EFI EFI 209.7 MB disk0s1

2: Apple_CoreStorage 398.5 GB disk0s2

3: Apple_Boot Recovery HD 650.0 MB disk0s3

4: Microsoft Basic Data 45.0 GB disk0s4

/dev/disk1

#: TYPE NAME SIZE IDENTIFIER

0: Apple_HFS Macintosh HD *398.1 GB disk1

Logical Volume on disk0s2

DEF5676F-8F43-423C-A8F5-5E4D8C8C57D9

Unencrypted

/dev/disk2

#: TYPE NAME SIZE IDENTIFIER

0: Apple_partition_scheme *16.0 MB disk2

1: Apple_partition_map 32.3 KB disk2s1

2: Apple_HFS Flash Player 16.0 MB disk2s2

/dev/disk3

#: TYPE NAME SIZE IDENTIFIER

0: GUID_partition_scheme *750.2 GB disk3

1: EFI EFI 209.7 MB disk3s1

2: Apple_HFS Mac OSx 650.2 GB disk3s2

3: Microsoft Basic Data WINDOWS 7 99.7 GB disk3s3

Colins-MacBook-Pro-4:~ colinkoenig$


------------------------------------------------


Colins-MacBook-Pro-4:~ colinkoenig$ diskutil cs list

CoreStorage logical volume groups (1 found)

|

+-- Logical Volume Group 5DDBD007-3D81-4E1A-BBA8-7DD7F125C466

=========================================================

Name: Macintosh HD

Status: Online

Size: 398484762624 B (398.5 GB)

Free Space: 18935808 B (18.9 MB)

|

+-< Physical Volume BE5E0BAC-AE66-4E3B-A75A-D3AF058A1744

| ----------------------------------------------------

| Index: 0

| Disk: disk0s2

| Status: Online

| Size: 398484762624 B (398.5 GB)

|

+-> Logical Volume Family 6D635355-E05C-4346-ADC2-7662CC2288F5

----------------------------------------------------------

Encryption Status: Unlocked

Encryption Type: None

Conversion Status: NoConversion

Conversion Direction: -none-

Has Encrypted Extents: No

Fully Secure: No

Passphrase Required: No

|

+-> Logical Volume DEF5676F-8F43-423C-A8F5-5E4D8C8C57D9

---------------------------------------------------

Disk: disk1

Status: Online

Size (Total): 398113505280 B (398.1 GB)

Conversion Progress: -none-

Revertible: Yes (no decryption required)

LV Name: Macintosh HD

Volume Name: Macintosh HD

Content Hint: Apple_HFS

Colins-MacBook-Pro-4:~ colinkoenig$



-------------------------------------



To proceed, enter your password, or type Ctrl-C to abort.


Password:

gpt show: /dev/disk0: mediasize=500107862016; sectorsize=512; blocks=976773168

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 976773167

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 778290552 2 GPT part - 53746F72-6167-11AA-AA11-00306543ECAC

778700192 1269536 3 GPT part - 426F6F74-0000-11AA-AA11-00306543ECAC

779969728 108913472

888883200 87889920 4 GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7

976773120 15

976773135 32 Sec GPT table

976773167 1 Sec GPT header

Colins-MacBook-Pro-4:~ colinkoenig$


--------------------------------


ast login: Wed Mar 4 16:47:56 on ttys000

Colins-MacBook-Pro-4:~ colinkoenig$ sudo fdisk /dev/disk0

Disk: /dev/disk0 geometry: 60801/255/63 [976773168 sectors]

Signature: 0xAA55

Starting Ending

#: id cyl hd sec - cyl hd sec [ start - size]

------------------------------------------------------------------------

1: EE 1023 254 63 - 1023 254 63 [ 1 - 409639] <Unknown ID>

2: AC 1023 254 63 - 1023 254 63 [ 409640 - 778290552] <Unknown ID>

3: AB 1023 254 63 - 1023 254 63 [ 778700192 - 1269536] Darwin Boot

4: 0C 1023 254 63 - 1023 254 63 [ 888883200 - 87889920] Win95 FAT32L

Colins-MacBook-Pro-4:~ colinkoenig$

Mar 4, 2015 3:18 PM in response to Loner T

uhm okay i am in test disk at the disk selection and I don't know which one to choose none of them really tell me what they are..


Select a media (use Arrow keys, then press Enter):

>Disk /dev/disk0 - 500 GB / 465 GiB (RO)

Disk /dev/disk2 - 16 MB / 15 MiB (RO)

Disk /dev/disk3 - 750 GB / 698 GiB (RO)

Disk /dev/rdisk0 - 500 GB / 465 GiB (RO)

Disk /dev/rdisk1 - 398 GB / 370 GiB

Disk /dev/rdisk2 - 16 MB / 15 MiB (RO)

Disk /dev/rdisk3 - 750 GB / 698 GiB (RO)

Mar 4, 2015 4:32 PM in response to Loner T

Ok, i made it to here and i don't know what to do...i just selected the [EFI GPT] that was already selected and I clicked "quick search"


TestDisk 7.0-WIP, Data Recovery Utility, March 2015

Christophe GRENIER <grenier@cgsecurity.org>

http://www.cgsecurity.org


Disk /dev/rdisk0 - 500 GB / 465 GiB - 976773168 sectors (RO)


The harddisk (500 GB / 465 GiB) seems too small! (< 545 GB / 507 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 976773119 1064663038 87889920

Mac HFS 976773124 978042659 1269536

Mar 4, 2015 5:27 PM in response to Loner T

Disk /dev/rdisk0 - 500 GB / 465 GiB - 976773168 sectors (RO)

Partition Start End Size in sectors

>P EFI System 40 409639 409600 [EFI]

D Mac HFS 409640 777975079 777565440

D MS Data 583168008 779970560 196802553

D Mac HFS 778700192 779969727 1269536

D MS Data 779970560 976773112 196802553

D MS Data 888883200 976773119 87889920

D Mac HFS 975503592 976773127 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

Mar 4, 2015 5:59 PM in response to Loner T

Thank you for letting me know about the arrow keys. I see here is listed some files for the games I had played on windows 7. Seems like everything is still there somewhere or another. Below is the requested info

Directory /


>dr-xr-xr-x 0 0 0 11-Oct-2014 12:43 .

dr-xr-xr-x 0 0 0 11-Oct-2014 12:43 ..

dr-xr-xr-x 0 0 0 22-Apr-2014 16:03 $Recycle.Bin

dr-xr-xr-x 0 0 0 23-Apr-2014 12:50 .jagex_cache_32

dr-xr-xr-x 0 0 0 22-Apr-2014 23:54 Boot

dr-xr-xr-x 0 0 0 22-Apr-2014 16:09 Intel

dr-xr-xr-x 0 0 0 23-Apr-2014 17:47 NVIDIA

dr-xr-xr-x 0 0 0 13-Jul-2009 22:20 PerfLogs

dr-xr-xr-x 0 0 0 24-Apr-2014 14:09 Program Files

dr-xr-xr-x 0 0 0 4-Oct-2014 16:35 Program Files (x86)

dr-xr-xr-x 0 0 0 9-Aug-2014 17:14 ProgramData

dr-xr-xr-x 0 0 0 22-Apr-2014 16:03 Recovery

dr-xr-xr-x 0 0 0 11-Jul-2014 17:33 Riot Games

dr-xr-xr-x 0 0 0 11-Oct-2014 12:28 System Volume Information

Next

Mar 4, 2015 6:01 PM in response to Loner T

Part two of the scroll screen on files:

dr-xr-xr-x 0 0 0 24-Apr-2014 14:09 Program Files

dr-xr-xr-x 0 0 0 4-Oct-2014 16:35 Program Files (x86)

dr-xr-xr-x 0 0 0 9-Aug-2014 17:14 ProgramData

dr-xr-xr-x 0 0 0 22-Apr-2014 16:03 Recovery

dr-xr-xr-x 0 0 0 11-Jul-2014 17:33 Riot Games

dr-xr-xr-x 0 0 0 11-Oct-2014 12:28 System Volume Information

dr-xr-xr-x 0 0 0 23-Apr-2014 17:49 Users

dr-xr-xr-x 0 0 0 22-Apr-2014 17:14 VTRoot

dr-xr-xr-x 0 0 0 4-Oct-2014 16:38 Windows

-r--r--r-- 0 0 8192 22-Apr-2014 23:54 BOOTSECT.BAK

-r--r--r-- 0 0 2060 22-Apr-2014 16:08 RHDSetup.log

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

-r--r--r-- 0 0 3173011456 11-Oct-2014 19:22 hiberfil.sys

>-r--r--r-- 0 0 4230684672 11-Oct-2014 19:22 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

Mar 4, 2015 6:13 PM in response to colinkoenig

Excellent. The top has three numbers. Can you post that line? It is to confirm the numbers from the previous display.


GPT 3 StartGPT 3 SizeGPT 3 EndNTFS StartSector OffsetNTFS SizeNTFS End
7787001921269536779969728779970560832196802553976773113


This is a table to confirm what the new GPT 4 will look like. The positive 832 sector offset is a good sign.

Mar 4, 2015 6:18 PM in response to colinkoenig

Leave your Testdisk display and start a new Terminal Window. Please use the following steps.


You need to use the following steps. If you see any error messages during the following steps, please stop and post back here with the error message. The following steps have values from your Testdisk output (and you can verify) in Steps 7 and 8.


Rebuild GPT4 using start/end offsets


  1. Sudo gdisk /dev/rdisk0
  2. P (print the full list of parts)
  3. D (delete)
  4. 4 (part 4)
  5. N (new part)
  6. 4 (part 4)
  7. 779970560 - Start offset in bytes (start point for Bootcamp part)
  8. +196802553 (Size offset as opposed to End offset)
  9. 0700 (Windows part type)
  10. P (print list of all parts just to see what changes will be made)
  11. W (Write the new GPT)
  12. Y (Yes! really write the new GPT)

This will delete and re-write the GPT partition info for /dev/disk0s4.

Rebuild MBR to match the new GPT information thus resetting the Hybrid MBR. Use defaults for other questions (like partition codes). The only values that need modifications are the Boot flags and step 6. Accept all other defaults that Gdisk offers.

  1. Sudo gdisk /dev/disk0
  2. P (Print list of parts)
  3. R (Recover)
  4. H (chooses Hybrid)
  5. Partitions numbers to be hybridized: 2 3 4
  6. Y (Good for GRUB question)
  7. N (part 2 boot flag)
  8. N (part 3 boot flag)
  9. Y (part 4 boot flag make NTFS bootable partition)
  10. W (Write the new MBR)
  11. Y (Yes! write the new MBR)
  12. Reboot


Test 1 - Does Bootcamp Volume show up in Finder?

Test 2 - Can you see files in Bootcamp Volume?

Test 3 - Can you select Bootcamp in System Preferences -> Startup Disk?

Test 4 - If Test 3 is successful, select Bootcamp and Click Restart.

Bootcamp partition missing after yosemite installation

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