NovareRes

Q: Windows partition corrupt or unbootable after Yosemite upgrade

My windows bootcamp partition no longer shows up as an option to boot to when hitting "alt/option" while starting.

Reads in disk utility as "disk0s4" and says can't repair disk.  How do I recover or backup files?

 

Last login: Sun Jul 12 15:04:51 on console

tests-MacBook-Pro:~ johntcreedonjr1$ diskutil list

/dev/disk0

   #:                       TYPE NAME                    SIZE       IDENTIFIER

   0:      GUID_partition_scheme                        *320.1 GB   disk0

   1:                        EFI EFI                     209.7 MB   disk0s1

   2:          Apple_CoreStorage                         135.1 GB   disk0s2

   3:                 Apple_Boot Recovery HD             650.0 MB   disk0s3

   4:       Microsoft Basic Data                         159.7 GB   disk0s4

/dev/disk1

   #:                       TYPE NAME                    SIZE       IDENTIFIER

   0:                  Apple_HFS Macintosh HD           *134.8 GB   disk1

                                 Logical Volume on disk0s2

                                 0EB5178D-45CE-4F4C-B367-86A984984B26

                                 Unencrypted

/dev/disk2

   #:                       TYPE NAME                    SIZE       IDENTIFIER

   0:     Apple_partition_scheme                        *16.8 MB    disk2

   1:        Apple_partition_map                         32.3 KB    disk2s1

   2:                  Apple_HFS Flash Player            16.8 MB    disk2s2

tests-MacBook-Pro:~ johntcreedonjr1$ diskutil cs list

CoreStorage logical volume groups (1 found)

|

+-- Logical Volume Group A976A795-6083-435C-9497-53BD967AAE54

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

    Name:         Macintosh HD

    Status:       Online

    Size:         135135137792 B (135.1 GB)

    Free Space:   18911232 B (18.9 MB)

    |

    +-< Physical Volume CF9A9FD2-9DA9-49B2-9467-EB4F541DA9E6

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

    |   Index:    0

    |   Disk:     disk0s2

    |   Status:   Online

    |   Size:     135135137792 B (135.1 GB)

    |

    +-> Logical Volume Family 27AB8FB5-EA5B-41E9-8703-42FFC7B025BD

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

        Encryption Status:       Unlocked

        Encryption Type:         None

        Conversion Status:       NoConversion

        Conversion Direction:    -none-

        Has Encrypted Extents:   No

        Fully Secure:            No

        Passphrase Required:     No

        |

        +-> Logical Volume 0EB5178D-45CE-4F4C-B367-86A984984B26

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

            Disk:                  disk1

            Status:                Online

            Size (Total):          134763905024 B (134.8 GB)

            Conversion Progress:   -none-

            Revertible:            Yes (no decryption required)

            LV Name:               Macintosh HD

            Volume Name:           Macintosh HD

            Content Hint:          Apple_HFS

tests-MacBook-Pro:~ johntcreedonjr1$ sudo gpt -w -r show /dev/disk0

When I tried the sudo commands, I entered the only password I recall having on this computer and it didn't work.  Any idea how I can figure that out as well?  My apologies, as I'm out of my element and don't really have any idea what I am doing here.

MacBook Pro, OS X Yosemite (10.10.1), null

Posted on Jul 18, 2015 1:56 PM

Close

Q: Windows partition corrupt or unbootable after Yosemite upgrade

  • All replies
  • Helpful answers

first Previous Page 3 of 4 last Next
  • by Loner T,

    Loner T Loner T Jul 22, 2015 3:35 PM in response to NovareRes
    Level 7 (24,800 points)
    Safari
    Jul 22, 2015 3:35 PM in response to NovareRes

    SL does not have a Recovery HD, but ML does. This could have been corrupted during SL -> ML upgrade.

  • by NovareRes,

    NovareRes NovareRes Jul 22, 2015 3:37 PM in response to Loner T
    Level 1 (0 points)
    Jul 22, 2015 3:37 PM in response to Loner T

    So what's next then?

  • by Loner T,

    Loner T Loner T Jul 22, 2015 4:11 PM in response to NovareRes
    Level 7 (24,800 points)
    Safari
    Jul 22, 2015 4:11 PM in response to NovareRes

    We can change the GPT entries and delete the entry for Recovery HD and make it be NTFS. If we do that, you will lose Recovery HD. There is also a possibility if Recovery HD overwrote 620MB on NTFS, it will be impossible to reconstruct the partition without losing data partially or completely. Chkdsk and Windows Startup Repair may or may not work.

  • by NovareRes,

    NovareRes NovareRes Jul 22, 2015 4:16 PM in response to Loner T
    Level 1 (0 points)
    Jul 22, 2015 4:16 PM in response to Loner T

    Alright - how do we do that?  I was in the process of backing up my windows before I lost access to it, but there is still a # of important stuff that I didn't back up, so getting that back - to the extent possible - is more important than anything else.

  • by NovareRes,

    NovareRes NovareRes Jul 29, 2015 4:36 PM in response to Loner T
    Level 1 (0 points)
    Jul 29, 2015 4:36 PM in response to Loner T

    Okay so how do we do this?

  • by Loner T,

    Loner T Loner T Jul 29, 2015 5:14 PM in response to NovareRes
    Level 7 (24,800 points)
    Safari
    Jul 29, 2015 5:14 PM in response to NovareRes

    Before we make changes,

     

    1. Please backup OS X.

    2. Post the output of the following command (this shows the Recovery HD header).

         sudo dd if=/dev/rdisk0s3 count=2 2>/dev/null | hexdump -C

  • by NovareRes,

    NovareRes NovareRes Aug 14, 2015 11:24 AM in response to Loner T
    Level 1 (0 points)
    Aug 14, 2015 11:24 AM in response to Loner T

    1. Done.

    2.

    tests-MacBook-Pro:testdisk-7.0 johntcreedonjr1$ sudo dd if=/dev/rdisk0s3 count=2 2>/dev/null | hexdump -C

    Password:

    00000000  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|

    *

    00000400

    tests-MacBook-Pro:testdisk-7.0 johntcreedonjr1$

     

    Now what do I do?

  • by NovareRes,

    NovareRes NovareRes Aug 19, 2015 9:32 AM in response to Loner T
    Level 1 (0 points)
    Aug 19, 2015 9:32 AM in response to Loner T

    What do I do next?

  • by Loner T,

    Loner T Loner T Aug 19, 2015 1:54 PM in response to NovareRes
    Level 7 (24,800 points)
    Safari
    Aug 19, 2015 1:54 PM in response to NovareRes

    New table with partition locations, if we delete Recovery HD.


    GPT 2 StartGPT 2 SizeGPT 2 EndNTFS StartSector OffsetNTFS SizeNTFS EndSector Offset (MB)NTFS(Gb)
    409640263935816264345455264345600145360796153625141752 0 172.0410123



    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. Please notice the'+' sign in step 8 (this is called offset notation). The text in parentheses is for informational purpose to describe theaction being taken. Gdisk has one-character commands except when entering numbers.

     

    Rebuild GPT3 and 4 using start/end offsets

     

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

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


    Reboot.


  • by NovareRes,

    NovareRes NovareRes Aug 19, 2015 2:48 PM in response to Loner T
    Level 1 (0 points)
    Aug 19, 2015 2:48 PM in response to Loner T

    Thank you so much!  I will try this later today.  Should I take the computer to someone to try and recover the data from the windows partition first in case that gets more messed up?

  • by Loner T,

    Loner T Loner T Aug 19, 2015 3:24 PM in response to NovareRes
    Level 7 (24,800 points)
    Safari
    Aug 19, 2015 3:24 PM in response to NovareRes

    We are only modifying the partition addresses. No data is being touched. You also have a backup.

  • by NovareRes,

    NovareRes NovareRes Aug 20, 2015 9:22 AM in response to Loner T
    Level 1 (0 points)
    Aug 20, 2015 9:22 AM in response to Loner T

    So all appeared to go well except when I rebooted I got a flashing folder with a question mark on it - what do I need to do now?

  • by Loner T,

    Loner T Loner T Aug 20, 2015 2:41 PM in response to NovareRes
    Level 7 (24,800 points)
    Safari
    Aug 20, 2015 2:41 PM in response to NovareRes

    1. OS X: Installing OS X on an external volume - Apple Support and boot from this disk.

    2. OS X: About OS X Recovery - Apple Support and use Internet Recovery to boot from and your GPT can be corrected, but this is more painful than 1.

  • by NovareRes,

    NovareRes NovareRes Aug 25, 2015 8:14 AM in response to Loner T
    Level 1 (0 points)
    Aug 25, 2015 8:14 AM in response to Loner T

    So just to clarify:

     

    I've been trying to do #1 but the only drive I have big enough to boot from isn't being detected by disk utility for some reason but I have been reluctant to try 2 because your statement on #2 makes me infer that I put the chance of not being able to recover my bootcamp drive at a higher risk - is this true or am I just reading too much into it and can just do the internet recovery and be fine?

  • by Loner T,

    Loner T Loner T Aug 25, 2015 10:10 AM in response to NovareRes
    Level 7 (24,800 points)
    Safari
    Aug 25, 2015 10:10 AM in response to NovareRes

    Internet Recovery makes it harder to post screen shots.

first Previous Page 3 of 4 last Next