rubby0913

Q: Missing bootcamp win7 after updating the mac to OS X Yosemite

Help!

After upgrading to Yosemite,  and now when I ALT Boot Windows 7 and Recovery partitions no longer show up. Is there any ways to get my data in the disk back?

The Disk Utility is like this:

Screen Shot 2014-10-24 at 6.47.11 PM.png

Following Loner T, I tried some commands, It shows like this:

Screen Shot 2014-10-24 at 6.49.16 PM.png

Screen Shot 2014-10-24 at 6.50.43 PM.png

Failing loss the material, here I seek help from Loner T

 

Thanks !  Waiting online

 

Windows error loading after Yosemite upgrade

MacBook Air, OS X Yosemite (10.10), dual system: mac and win7

Posted on Oct 24, 2014 6:56 PM

Close

Q: Missing bootcamp win7 after updating the mac to OS X Yosemite

  • All replies
  • Helpful answers

first Previous Page 3 of 11 last Next
  • by rubby0913,

    rubby0913 rubby0913 Oct 27, 2014 6:41 PM in response to Loner T
    Level 1 (0 points)
    Oct 27, 2014 6:41 PM in response to Loner T

    Here are some figures by list, how can I know I have listed all the entries? Q has worked

    Screen Shot 2014-10-27 at 6.26.09 PM.pngScreen Shot 2014-10-27 at 6.26.33 PM.png

    Screen Shot 2014-10-27 at 6.27.39 PM.png

    Screen Shot 2014-10-27 at 6.27.58 PM.pngScreen Shot 2014-10-27 at 6.29.02 PM.png

  • by Loner T,

    Loner T Loner T Oct 27, 2014 6:49 PM in response to rubby0913
    Level 7 (24,419 points)
    Safari
    Oct 27, 2014 6:49 PM in response to rubby0913

    This makes a lot more sense. You may need Windows Startup Repair. Are there any other MS Data partitions left in your list to look into?

  • by rubby0913,

    rubby0913 rubby0913 Oct 27, 2014 6:56 PM in response to Loner T
    Level 1 (0 points)
    Oct 27, 2014 6:56 PM in response to Loner T

    Screen Shot 2014-10-27 at 6.51.49 PM.pngScreen Shot 2014-10-27 at 6.53.16 PM.png

    Screen Shot 2014-10-27 at 6.53.54 PM.png

    Screen Shot 2014-10-27 at 6.55.07 PM.png

  • by Loner T,

    Loner T Loner T Oct 27, 2014 7:11 PM in response to rubby0913
    Level 7 (24,419 points)
    Safari
    Oct 27, 2014 7:11 PM in response to rubby0913

    The 195928064 start is what you should use to recreate the GPT. You start overlaps the Recovery HD, so you will also need to delete the Recovery HD GPT#3, before you create the new GPT#4.

  • by rubby0913,

    rubby0913 rubby0913 Oct 27, 2014 7:17 PM in response to Loner T
    Level 1 (0 points)
    Oct 27, 2014 7:17 PM in response to Loner T

    would you please show me the command step by step? I'm a computer rookie.....

  • by Loner T,

    Loner T Loner T Oct 27, 2014 7:35 PM in response to rubby0913
    Level 7 (24,419 points)
    Safari
    Oct 27, 2014 7:35 PM in response to rubby0913

    Please stop if you see any error messages. This is an example. Please use the correct values for start/end.

     

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

     

    sudo gdisk /dev/disk0

    p

    d

    4

    n

    4

    86923264

    538218489

    0700

    p

    w

    y

     

    2. You will need to reboot after the change, because the disk you are booted from is the one being modified. 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. 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.

     

    5. Once you a working GPT#4, a new hybrid MBR needs to be created which will overwrite what you see in your Fdisk output. This is also done using GPT Fdisk (Gdisk).

     

    6. a. Test 1 - Can you see your Bootcamp volume in Finder.

        b. Test 2 - Can you files in the Bootcamp volume?

        c. Test 3 - Can you see Bootcamp in your System Preferences -> Startup Disk.

        d. Test 4 - If Test 1-3 are successful, select Bootcamp and click on Restart. You may need Windows startup repair, if you see a hanging underline cursor at the top left corner of your screen. In most cases, it is not required.

     

     

    Here is an example for recreating the GPT...

     

    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

     

     

    You need to create the Hybrid MBR. Here is an example...

     

     

    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): 59BDFEEB-1EB4-4529-94FE-3CBC2C3CD513

    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 2604 sectors (1.3 MiB)

     

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

       1              40          409639   200.0 MiB   EF00  EF

       2          409640       401060383   191.0 GiB   AF05  Macintosh HD

       3       401060384       402329919   619.9 MiB   AB00  Re

       4       402331648       490233848   41.9 GiB    0700  Microsoft basic data

     

    Command (? for help): r

     

    Recovery/transformation command (? for help): h

     

    WARNING! Hybrid MBRs are flaky and dangerous! If you decide not to use one,

    just hit the Enter key at the below prompt and your MBR partition table will

    be untouched.

     

    Type from one to three GPT partition numbers, separated by spaces, to be

    added to the hybrid MBR, in sequence: 2 3 4

    Place EFI GPT (0xEE) partition first in MBR (good for GRUB)? (Y/N): y

     

    Creating entry for GPT partition #2 (MBR partition #2)

    Enter an MBR hex code (default AF): AF

    Set the bootable flag? (Y/N): n

     

    Creating entry for GPT partition #3 (MBR partition #3)

    Enter an MBR hex code (default AB): AB

    Set the bootable flag? (Y/N): n

     

    Creating entry for GPT partition #4 (MBR partition #4)

    Enter an MBR hex code (default 07): 07

    Set the bootable flag? (Y/N): y

     

    Recovery/transformation 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.

     

    Now Reboot and verify the output of fdisk again.

  • by rubby0913,

    rubby0913 rubby0913 Oct 27, 2014 7:45 PM in response to Loner T
    Level 1 (0 points)
    Oct 27, 2014 7:45 PM in response to Loner T

    Ok, I will follow this one, where is my end?

     

    should I start from the following commands:

    sudo gdisk /dev/disk0

    p

    d

    4

    n

    4

    86923264-> 195928064

    538218489-> ?

    0700

    p

    w

    y


    Also, Where should I print these commands? My present window is as follows:

    Screen Shot 2014-10-27 at 7.43.52 PM.png

  • by rubby0913,

    rubby0913 rubby0913 Oct 27, 2014 9:17 PM in response to Loner T
    Level 1 (0 points)
    Oct 27, 2014 9:17 PM in response to Loner T

    after delete GPT #3, need I recreate the recovery HD GPT #3?

     

    I guess the commands is :

    sudo gdisk /dev/disk0

    p

    d

    3

    d

    4

    n

    4

    195928064

    490231807

    0700

    p

    w

    y


    Is it right ?

    it needs courage for me to carry on the command "d".......

  • by Loner T,

    Loner T Loner T Oct 28, 2014 4:41 AM in response to rubby0913
    Level 7 (24,419 points)
    Safari
    Oct 28, 2014 4:41 AM in response to rubby0913

    The "d" command manipulates the entries, it does not remove any data. If you are not comfortable, there is a "b" (backup option) in the main menu of Gdisk, which backup your GPT to a file in the current directory, that you can move to an external disk, for safekeeping.

     

    The start/end you currently have are correct.

  • by rubby0913,

    rubby0913 rubby0913 Oct 28, 2014 9:21 AM in response to Loner T
    Level 1 (0 points)
    Oct 28, 2014 9:21 AM in response to Loner T

    Thanks, Loner. I want to make sure whether the commands I listed to you are right. If right, I just continue like this. In addition, Whether GPT#3 recovery HD should be recreated like GPT#4, If yes, where to print the "n" and "3"

     

    I have conducted the commands "p" in the mac terminal, it shows as follows:

    Screen Shot 2014-10-28 at 9.19.53 AM.png

  • by Loner T,

    Loner T Loner T Oct 28, 2014 9:23 AM in response to rubby0913
    Level 7 (24,419 points)
    Safari
    Oct 28, 2014 9:23 AM in response to rubby0913

    Since you are deleting 3 and 4 existing entries, you use n, 3 not n,4 otherwise your Hybrid MBR will be incorrect. Once you have Windows running correctly, re-installing OSX will recreate the Recovery HD.

  • by rubby0913,

    rubby0913 rubby0913 Oct 28, 2014 9:27 AM in response to Loner T
    Level 1 (0 points)
    Oct 28, 2014 9:27 AM in response to Loner T

    So, it should like this, right ?


    sudo gdisk /dev/disk0

    p

    d

    3

    d

    4

    n

    3

    195928064

    490231807

    0700

    p

    w

    y


    You say re-installing the OS X, that is, after recovering the windows 7, I need to reinstall Mac system ?


  • by Loner T,

    Loner T Loner T Oct 28, 2014 10:18 AM in response to rubby0913
    Level 7 (24,419 points)
    Safari
    Oct 28, 2014 10:18 AM in response to rubby0913

    The Gdisk looks correct. Since the Recovery HD is being removed, to get it back, you will need to re-install oSX once Windows starts working correctly.

  • by rubby0913,

    rubby0913 rubby0913 Oct 28, 2014 10:30 AM in response to Loner T
    Level 1 (0 points)
    Oct 28, 2014 10:30 AM in response to Loner T

    can this process lead to the missing of mac system? I'm afraid I just cannot enter the computer. Also, Will restalling Mac OX cause the same problem I'm encountering now

  • by Loner T,

    Loner T Loner T Oct 28, 2014 10:49 AM in response to rubby0913
    Level 7 (24,419 points)
    Safari
    Oct 28, 2014 10:49 AM in response to rubby0913

    Unless you make a mistake and manipulate GPT#1 or #2, OSX should continue to work. You can no longer use local recovery.

first Previous Page 3 of 11 last Next