tonykirkland

Q: Lost my Windows 7 Boot Camp partition after upgrading to Yosemite. Help!

Hi - I just upgraded to Yosemite and Windows doesn't even show up in my Bootcamp anymore.

 

What can I do to make this work? Most of my important data is on my Windows partition so this is scary!

 

Thanks!

Tony

MacBook Pro, OS X Yosemite (10.10.3)

Posted on May 5, 2015 12:45 PM

Close

Q: Lost my Windows 7 Boot Camp partition after upgrading to Yosemite. Help!

  • All replies
  • Helpful answers

Page 1 Next
  • by Loner T,Helpful

    Loner T Loner T May 5, 2015 1:28 PM in response to tonykirkland
    Level 7 (24,115 points)
    Safari
    May 5, 2015 1:28 PM in response to tonykirkland

    Can you post a new discussion and include 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.

  • by tonykirkland,

    tonykirkland tonykirkland May 5, 2015 12:58 PM in response to Loner T
    Level 1 (0 points)
    May 5, 2015 12:58 PM in response to Loner T

    Hi Loner, thank you for responding. Here you go.

     

    The original HD was 180GB for the Microsoft partition and 80GB for the Mac partition. I am not sure why there is a /dev/disk1 here either :/

     

    diskutil list

    /dev/disk0

       #:                       TYPE NAME                    SIZE       IDENTIFIER

       0:      GUID_partition_scheme                        *251.0 GB   disk0

       1:                        EFI EFI                     209.7 MB   disk0s1

       2:          Apple_CoreStorage                         70.3 GB    disk0s2

       3:                 Apple_Boot Recovery HD             650.0 MB   disk0s3

       4:       Microsoft Basic Data                         125.1 GB   disk0s4

    /dev/disk1

       #:                       TYPE NAME                    SIZE       IDENTIFIER

       0:                  Apple_HFS Macintosh HD           *69.9 GB    disk1

                                     Logical Volume on disk0s2

                                     7E26E0D7-E338-4B0B-8CC4-E7A30A822180

                                     Unencrypted

     

    diskutil cs list

    CoreStorage logical volume groups (1 found)

    |

    +-- Logical Volume Group 1C034D56-66F4-41B0-8D17-14641E0B2F7E

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

        Name:         Macintosh HD

        Status:       Online

        Size:         70250876928 B (70.3 GB)

        Free Space:   18960384 B (19.0 MB)

        |

        +-< Physical Volume CE29C694-1D09-40D6-903C-D8BD60BB7ABE

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

        |   Index:    0

        |   Disk:     disk0s2

        |   Status:   Online

        |   Size:     70250876928 B (70.3 GB)

        |

        +-> Logical Volume Family EE15E62F-A059-44EC-94AE-157E2BDC3164

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

            Encryption Status:       Unlocked

            Encryption Type:         None

            Conversion Status:       NoConversion

            Conversion Direction:    -none-

            Has Encrypted Extents:   No

            Fully Secure:            No

            Passphrase Required:     No

            |

            +-> Logical Volume 7E26E0D7-E338-4B0B-8CC4-E7A30A822180

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

                Disk:                  disk1

                Status:                Online

                Size (Total):          69879595008 B (69.9 GB)

                Conversion Progress:   -none-

                Revertible:            Yes (no decryption required)

                LV Name:               Macintosh HD

                Volume Name:           Macintosh HD

                Content Hint:          Apple_HFS

     

    sudo gpt -vv -r show /dev/disk0

    gpt show: /dev/disk0: mediasize=251000193024; sectorsize=512; blocks=490234752

    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 490234751

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

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

      138887920  106933520        

      245821440  244412416      4  GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7

      490233856        863        

      490234719         32         Sec GPT table

      490234751          1         Sec GPT header

    I tried the same for /dev/disk1 but it said resource busy.

     

    sudo fdisk /dev/disk0

    Disk: /dev/disk0 geometry: 30515/255/63 [490234752 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 -  137208744] <Unknown ID>

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

    4: 0C 1023 254  63 - 1023 254  63 [ 245821440 -  244412416] Win95 FAT32L

     

    Again /dev/disk1 for fdisk said resource busy.

     

    Thank you for your help!

  • by Loner T,Helpful

    Loner T Loner T May 5, 2015 1:31 PM in response to tonykirkland
    Level 7 (24,115 points)
    Safari
    May 5, 2015 1:31 PM in response to tonykirkland

    Disk1 is not very interesting. You can safely ignore it.

     

    Can you look at Boot Camp Partition Won't Launch After HD Resize in OS X 10.9.5 (and the embedded link in that thread) and start with Testdisk scan?

     

    Your problem is similar and should be correctable.

  • by tonykirkland,

    tonykirkland tonykirkland May 5, 2015 1:32 PM in response to Loner T
    Level 1 (0 points)
    May 5, 2015 1:32 PM in response to Loner T

    Thank you - OK I am running test disk right now and following your imgur link steps

  • by tonykirkland,

    tonykirkland tonykirkland May 5, 2015 6:48 PM in response to Loner T
    Level 1 (0 points)
    May 5, 2015 6:48 PM in response to Loner T

    Hi Loner,

     

    I ran test disk but not sure what to do next (I have no idea what the output means). Do you mind pointing me to the next steps?

     

    Disk /dev/rdisk0 - 251 GB / 233 GiB - 490234752 sectors (RO)

     

    The harddisk (251 GB / 233 GiB) seems too small! (< 430 GB / 401 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                490233848  841578480  351344633

       MS Data                490233855  734646270  244412416

       Mac HFS                490234708  491504243    1269536

  • by Loner T,

    Loner T Loner T May 5, 2015 6:58 PM in response to tonykirkland
    Level 7 (24,115 points)
    Safari
    May 5, 2015 6:58 PM in response to tonykirkland

    This is a list of unrecoverable partitions. There should be a Continue button, press Enter to Continue. You should get a new list of recoverable partitions.

  • by tonykirkland,

    tonykirkland tonykirkland May 6, 2015 7:16 AM in response to Loner T
    Level 1 (0 points)
    May 6, 2015 7:16 AM in response to Loner T

    Hi Loner,

     

    Thank you again for helping out.

     

    OK I went to the next screen, then did a deeper search on the MS Data. It took all night. I am attaching the results after it ran (scroll down), though I'm not sure what to do now.

     

    Disk /dev/rdisk0 - 251 GB / 233 GiB - 490234752 sectors (RO)

     

    The harddisk (251 GB / 233 GiB) seems too small! (< 742 GB / 691 GiB)

    Check the harddisk size: HD jumpers settings, BIOS detection...

     

    The following partitions can't be recovered:

         Partition               Start        End    Size in sectors

    >  Mac HFS                205864694 1078281719  872417026

       Mac HFS                216541829 1450486406 1233944578

       MS Data                262047456  506459871  244412416

       MS Data                490233848  841578480  351344633

       MS Data                490233855  734646270  244412416

       Mac HFS                490234708  491504243    1269536

     

     

     

     

     

    [ Continue ]

    HFS blocksize=134217728, 446 GB / 416 GiB

     

     

    Disk /dev/rdisk0 - 251 GB / 233 GiB - 490234752 sectors (RO)

         Partition               Start        End    Size in sectors

    >D EFI System                    40     409639     409600 [EFI]

    D EFI System                    46     409645     409600 [EFI]

    D Mac HFS                   409640  136893223  136483584

    D Mac HFS                   977012  137460595  136483584

    D Mac HFS                   977629  137461212  136483584

    D Mac HFS                   978014  137461597  136483584

    D Mac HFS                   978607  137462190  136483584

    D Mac HFS                   978824  137462407  136483584

    D Mac HFS                   979873  137463456  136483584

    D Mac HFS                   980530  137464113  136483584

    D Mac HFS                   981003  137464586  136483584

    D Mac HFS                   981427  137465010  136483584

    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

     

     

     

    isk /dev/rdisk0 - 251 GB / 233 GiB - 490234752 sectors (RO)

    Current partition structure:

         Partition                  Start        End    Size in sectors

     

    1 P EFI System                    40     409639     409600 [EFI System Partitio

    2 P Unknown                   409640  137618383  137208744 [Macintosh HD]

    3 P Mac Boot               137618384  138887919    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                245821440  490233855  244412416 [BOOTCAMP]

  • by Loner T,

    Loner T Loner T May 6, 2015 8:13 AM in response to tonykirkland
    Level 7 (24,115 points)
    Safari
    May 6, 2015 8:13 AM in response to tonykirkland

    tonykirkland wrote:

     

    Hi Loner,

     

    Thank you again for helping out.

     

    OK I went to the next screen, then did a deeper search on the MS Data. It took all night. I am attaching the results after it ran (scroll down), though I'm not sure what to do now.

     

     

     

    Disk /dev/rdisk0 - 251 GB / 233 GiB - 490234752 sectors (RO)

         Partition               Start        End    Size in sectors

    >D EFI System                    40     409639     409600 [EFI]

    D EFI System                    46     409645     409600 [EFI]

    D Mac HFS                   409640  136893223  136483584

    D Mac HFS                   977012  137460595  136483584

    D Mac HFS                   977629  137461212  136483584

    D Mac HFS                   978014  137461597  136483584

    D Mac HFS                   978607  137462190  136483584

    D Mac HFS                   978824  137462407  136483584

    D Mac HFS                   979873  137463456  136483584

    D Mac HFS                   980530  137464113  136483584

    D Mac HFS                   981003  137464586  136483584

    D Mac HFS                   981427  137465010  136483584

    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

     

    Are you able to see additional entries, if you scroll past the last entry on this page?

  • by tonykirkland,

    tonykirkland tonykirkland May 6, 2015 8:24 AM in response to Loner T
    Level 1 (0 points)
    May 6, 2015 8:24 AM in response to Loner T

    Hi - the test disk exited since an update was installed after this.

     

    Is there some way I can get you that data without re-running the whole thing?

     

    Thank you

  • by Loner T,

    Loner T Loner T May 6, 2015 8:55 AM in response to tonykirkland
    Level 7 (24,115 points)
    Safari
    May 6, 2015 8:55 AM in response to tonykirkland

    Can you run a Quick Search and post its output?

  • by tonykirkland,

    tonykirkland tonykirkland May 6, 2015 12:06 PM in response to Loner T
    Level 1 (0 points)
    May 6, 2015 12:06 PM in response to Loner T

    Hi Loner,

     

    Thanks again, here is the output from re-running the quick search:

    TestDisk 7.0, Data Recovery Utility, April 2015

    Christophe GRENIER <grenier@cgsecurity.org>

    http://www.cgsecurity.org

     

    Disk /dev/rdisk0 - 251 GB / 233 GiB - 490234752 sectors (RO)

         Partition               Start        End    Size in sectors

    >P EFI System                    40     409639     409600 [EFI]

    P Mac HFS                   409640  136893223  136483584

    P Mac HFS                137618384  138887919    1269536

    D Mac HFS                138887920  245559295  106671376

    D MS Data                138889216  490233848  351344633

    D Mac HFS                245819796  247089331    1269536

    D MS Data                245821440  490233855  244412416

    D MS Data                249103032  249627319     524288 [SDCARD]

    D Mac HFS                254833852  263222461    8388610 [    D^A]

    D MS Data                312275379  312281552       6174

    D MS Data                312281552  312287725       6174 [Boot]

    D MS Data                312281587  312287760       6174

    D MS Data                312287760  312293933       6174 [Boot]

    D MS Data                312293936  312296815       2880 [EFISECTOR]

    D MS Data                312296816  312299695       2880 [EFISECTOR]

    D MS Data                312988699  312994872       6174

    D MS Data                312994872  313001045       6174 [Boot]

    D MS Data                328612624  395715343   67102720 [NO NAME]

    >D Mac HFS                488965176  490234711    1269536

  • by Loner T,

    Loner T Loner T May 6, 2015 12:59 PM in response to tonykirkland
    Level 7 (24,115 points)
    Safari
    May 6, 2015 12:59 PM in response to tonykirkland

    Here is a table with the most likely candidate.

     

    GPT 3 StartGPT 3 SizeGPT 3 EndNTFS StartSector OffsetNTFS SizeNTFS EndSector Offset (MB)
    13761838412695361388879201388892161296351344633490233848 1

     

    Please scroll down to the following entry (fifth entry in the current list).

    D MS Data                138889216  490233848  351344633

    and use 'P' to list files.

  • by tonykirkland,

    tonykirkland tonykirkland May 6, 2015 1:19 PM in response to Loner T
    Level 1 (0 points)
    May 6, 2015 1:19 PM in response to Loner T

    Hey Loner,

     

    Really appreciate your help on this.

     

    Here you go - I scrolled down since System Volume Information seemed to be related to this topic.

     

    http://www.cgsecurity.org

         MS Data                138889216  490233848  351344633

    Directory /

                                                       Previous

    dr-xr-xr-x     0     0         0  5-Feb-2015 13:30 ProgramData

    dr-xr-xr-x     0     0         0  9-Aug-2012 22:03 Putty

    dr-xr-xr-x     0     0         0  3-Jun-2013 23:18 Qt

    dr-xr-xr-x     0     0         0  3-Jul-2012 12:05 QtSDK

    dr-xr-xr-x     0     0         0  2-Jul-2012 22:03 Recovery

    dr-xr-xr-x     0     0         0 29-Nov-2014 17:12 Samples

    dr-xr-xr-x     0     0         0 27-Jun-2014 14:50 ScannerUT

    dr-xr-xr-x     0     0         0 10-Nov-2014 15:54 SolidWorks Data

    dr-xr-xr-x     0     0         0  3-May-2015 11:58 System Volume Information

    dr-xr-xr-x     0     0         0 15-Feb-2014 11:51 TCO

    dr-xr-xr-x     0     0         0 11-Jun-2013 19:25 Temp

    dr-xr-xr-x     0     0         0 14-Nov-2014 09:44 Texas Instruments-DLP

    dr-xr-xr-x     0     0         0  8-Jun-2013 18:37 Users

    >dr-xr-xr-x     0     0         0 12-Feb-2015 09:37 Windows

  • by Loner T,Solvedanswer

    Loner T Loner T May 6, 2015 2:10 PM in response to tonykirkland
    Level 7 (24,115 points)
    Safari
    May 6, 2015 2:10 PM in response to tonykirkland

    Leave your Testdisk display and start a new Terminal Window. 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. 138889216 - Start offset in bytes  (start point for Bootcamp part)
    8. +351344633  - 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 10. 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. O (print current Hybrid MBR)
    6. Partitions numbers to be hybridized: 2 3 4
    7. Y  (Good for GRUB question)
    8. N  (part 2 boot flag)
    9. N  (part 3 boot flag)
    10. Y  (part 4 boot flag make NTFS bootable partition)
    11. O  (print current Hybrid MBR)
    12. W (Write the new MBR)
    13. Y (Yes! write the new MBR)
    14. Reboot

     

    Here is sample Q&A for this section. Please notice the Press Enter/Return.

     

    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): Press Enter/Return

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

     

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

    Enter an MBR hex code (default AB): Press Enter/Return

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

     

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

    Enter an MBR hex code (default 07): Press Enter/Return

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

     

    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.

Page 1 Next