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.

"Missing Operating system_ " After installing Yosemite

Please help, after installing Yosemite now i can't get to my windows 7 anymore . At first i can't even get to see Windows partition when i hold ALT during boot but i got that fixed but now that i try to get to windows its just not happening . Please help 😟


User uploaded file


😕


User uploaded file


😕


User uploaded file


😕


User uploaded file


User uploaded file

MacBook Pro (Retina, Mid 2012), OS X Yosemite (10.10)

Posted on Oct 17, 2014 6:49 PM

Reply
145 replies

Nov 19, 2014 4:41 PM in response to Loner T

Dear Loner T


Here is the output of

sudo gpt -vv -r show /dev/disk0


gpt show: /dev/disk0: mediasize=1000204886016; sectorsize=512; blocks=1953525168

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 1953525167

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 879526024 2 GPT part - 48465300-0000-11AA-AA11-00306543ECAC

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

881205200 485709872

1366915072 586608640 4 GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7

1953523712 1423

1953525135 32 Sec GPT table

1953525167 1 Sec GPT header



I would appreciate any instructions of what steps to follow. 🙂


Thanks for taking the time to help everyone.

Nov 29, 2014 11:03 AM in response to Loner T

Hi Loner T,


I tried to follow the instructions...


Now the windows partition shows up when I hold the alt key on startup but when I try to boot from windows I get a "cannot read disk" message.


Any help would be most appreciated.


TestDisk 7.0-WIP, Data Recovery Utility, October 2014

Christophe GRENIER <grenier@cgsecurity.org>

http://www.cgsecurity.org


Disk /dev/disk0 - 1000 GB / 931 GiB - 1953525168 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 879935663 879526024 [Customer]

3 P Mac Boot 879935664 881205199 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 1366915072 1953523711 586608640 [Microsoft basic dat

a]







P=Primary D=Deleted

>[Quick Search] [ Backup ]

Try to locate partition

TestDisk 7.0-WIP, Data Recovery Utility, October 2014

Christophe GRENIER <grenier@cgsecurity.org>

http://www.cgsecurity.org


Disk /dev/disk0 - 1000 GB / 931 GiB - 1953525168 sectors (RO)


The harddisk (1000 GB / 931 GiB) seems too small! (< 1300 GB / 1211 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 1953523711 2540132350 586608640

Mac HFS 1953525124 1954794659 1269536










[ Continue ]

NTFS, blocksize=4096, 300 GB / 279 GiB



TestDisk 7.0-WIP, Data Recovery Utility, October 2014

Christophe GRENIER <grenier@cgsecurity.org>

http://www.cgsecurity.org


Disk /dev/disk0 - 1000 GB / 931 GiB - 1953525168 sectors (RO)

Partition Start End Size in sectors

>P EFI System 40 409639 409600 [EFI]

P Mac HFS 409640 879935663 879526024

P Mac HFS 879935664 881205199 1269536

D MS Data 881205248 1953523704 1072318457

D MS Data 1366915072 1953523711 586608640

D Mac HFS 1952255592 1953525127 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



Directory structure seems to be there...

TestDisk 7.0-WIP, Data Recovery Utility, October 2014

Christophe GRENIER <grenier@cgsecurity.org>

http://www.cgsecurity.org

MS Data 881205248 1953523704 1072318457

Directory /


>dr-xr-xr-x 0 0 0 13-Nov-2014 03:16 .

dr-xr-xr-x 0 0 0 13-Nov-2014 03:16 ..

dr-xr-xr-x 0 0 0 5-Mar-2013 03:17 $AVG

dr-xr-xr-x 0 0 0 5-Mar-2013 00:54 $Recycle.Bin

dr-xr-xr-x 0 0 0 21-Dec-2013 01:10 .Trashes

dr-xr-xr-x 0 0 0 15-Jul-2013 23:56 Archbold Digital Edition

dr-xr-xr-x 0 0 0 15-Jul-2013 23:56 BlackstonesCriminalPractice2

dr-xr-xr-x 0 0 0 25-Jun-2014 03:48 Boot

dr-xr-xr-x 0 0 0 13-Nov-2014 03:16 Config.Msi

dr-xr-xr-x 0 0 0 29-Jun-2014 15:37 DCIM

dr-xr-xr-x 0 0 0 6-Jul-2014 23:56 Databases

dr-xr-xr-x 0 0 0 25-Jan-2014 17:53 GOG Games

dr-xr-xr-x 0 0 0 27-Apr-2014 13:06 Games

dr-xr-xr-x 0 0 0 5-Mar-2013 01:02 Intel

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

Nov 29, 2014 11:38 AM in response to PhivosZ

This is excellent work.

PhivosZ wrote:


881205200 485709872

1366915072 586608640 4 GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7

This is what Testdisk found. The offset is positive and 48 bytes. The three numbers are start/end/size from the Testdisk output.

MS Data 881205248 1953523704 1072318457


A small table to verify that everything is clean.


GPT 3 StartGPT 3 SizeGPT 3 EndNTFS StartByte OffsetNTFS SizeNTFS End
87993566412695368812052008812052484810723184571953523705


The 'Byte Offset' being positive is good. A negative value means you lose GPT#3.


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.


Rebuild using start/end offsets from Testdisk DeepSearch using GPT Fdisk (http://sourceforge.net/projects/gptfdisk/)

  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. 881205248 - Start offset in bytes (start point for Bootcamp part)
  8. +1072318457 (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

  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 flag)
  8. N (part 3 flag)
  9. Y (part 4 flag make 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 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.


If you see a hanging underline cursor at the top left on a black screen, and it does not proceed further, you may need Windows Startup Repair or a tool called EasyBCD.

Dec 11, 2014 9:05 AM in response to Loner T

Hi Loner T,

I have the same Problem, but first I tried to repair my Win with the win 8 boot disc and the command (fix boot and fixmbr)

Now I have the Problem that I can't get any Data of the win-partition. I tried it with the deep search in test disk User uploaded file

Then I tried with gdisk to repair it, but I can't give him the end sector, it is out of range.


User uploaded file


What went wrong. Can you help me?

Jan 7, 2015 5:04 PM in response to Loner T

Hi Loner T,


I went through the entire thread to try and fix my MBR and fix boot camp. But I am stuck now at the end because honestly I don't know what I am looking at and I don't want to destroy the progress that I made. Could you please take a look at my situation and tell me what to do next.


First here is the gpt command you told PhivosZ to exe

User uploaded file

I did use test disk to analyze the disk and found the missing MS partition

User uploaded file

User uploaded file

Now I don't know what to do next and how to fix my situation could you please help me.


Thanks

Jan 7, 2015 8:59 PM in response to abughareeb

Good work so far to get to this point. You have found the start/end/size triplet. I have substituted the values from your Testdisk output in 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


Sudo gdisk /dev/rdisk0

P (print the full list of parts)

D (delete)

4 (part 4)

N (new part)

4 (part 4)

859590656 - Start offset in bytes (start point for Bootcamp part)

+117182457 (Size offset as opposed to End offset)

0700 (Windows part type)

P (print list of all parts just to see what changes will be made)

W (Write the new GPT)

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


Sudo gdisk /dev/disk0

P (Print list of parts)

R (Recover)

H (chooses Hybrid)

Partitions numbers to be hybridized: 2 3 4

Y (Good for GRUB question)

N (part 2 boot flag)

N (part 3 boot flag)

Y (part 4 boot flag make NTFS bootable partition)

W (Write the new MBR)

Y (Yes! write the new MBR)

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


If you see a hanging underline cursor at the top left on a black screen, and it does not proceed further, you may need Windows Startup Repair or a tool called EasyBCD.

Jan 8, 2015 6:04 AM in response to abughareeb

This looks incorrect. Look at the entry #4 on your screen which has a start/end of 898650112/976773119 but what you found from Testdisk was 859590656/976773112. Something did not work correctly in the first set of steps, otherwise you should see the values from Testdisk in entry #4.


Can you post the output of sudo gpt -vv -r show /dev/disk0 as it is now?

"Missing Operating system_ " After installing Yosemite

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