johndough247

Q: all OSX drives got converted to windows drives, HELP!

Mac Pro 4,1 (flashed to 5,1)

3.33ghz hex-core Xeon x 2

48 GB RAM

Running OSX 10.10.5 and Windows 7 SP1 via Bootcamp

5 Hard Drives total; partition layout:

(all disk numbers are windows based using windows' "disk management" program (can't remember their OSX designations)

 

disk 0 (120GB SSD):           BOOTCAMP drive, win 7 SP1 installed (NTFS)

disk 1 (640GB HDD):           DEDICATED OSX BACKUP (10.10.5)...I clone my main OSX drive to this drive daily (HFS)

disk 2 (2TB HDD):                Windows Files and Archives (NTFS)

disk 3 (2TB HDD):                OSX Files and Backups organized into 4 partitions (all partitions are HFS):

                                                  partition 1: OSX BACKUP...I also clone my main OSX drive to this drive daily (all bootable clones done with Cronosync)

                                                  partition 2: PROJECT BACKUP (backups of current and past projects)

                                                  partition 3: OTHER BACKUP: this holds my time machine backups and other miscellaneous backups

                                                  partition 4: SAMPLE DRIVE: I do music production, so I keep my sample libraries here.

disk 4 (256GB PCIe SSD):  Two Partitions:

                                                  partition 1: MAIN OSX DRIVE: Running 10.10.5, my master drive (HFS)

                                                  partition 2: WINDOWS FAST STORAGE: used for installing windows programs that benefit greatly from faster speeds.(NTFS)

 

Will outline how I got to this point step by step :-\

 

1) Accessing Mac partitions over while in windows (just opening certain folders on certain drives) would cause BSOD. Based on internet suggestions, assumed the AppleHFS driver in windows was faulty so decided to install MacDrive 8...big mistake!

 

2) after installing MacDrive, I disabled the AppleHFS.sys file in windows/system32/drivers by renaming it to extension .bad

 

3) Was working on some stuff in windows for a few days so I stayed on that side for awhile. Was trying to copy a large folder (30 GB)  to my Bootcamp drive, but windows gave an error that it was out of memory. This would be followed by the Bootcamp drive locking up completely so I'd have to hard shutdown. Did this a few times. Eventually got the issue corrected by Over Provisioning the drive (forgot to do that before installation of Windows).

 

4) A few times whle accessing the recycle bin, MacDrive would warn me that my project backup partition was damaged or corrupted and asked if I wanted to mount it. Decided around this point to switch back to OSX using the Bootcamp control panel, lo and behold all of my OSX partitions had been turned into windows drives!

 

4) Panicked, I shutdown and restarted, holding the option key. The only drives that showed up were Windows (disk 0) and Recovery 10.10.5...all OSX drives are not visible in EFI as mac drives.

 

5) I uninstalled MacDrive and reverted the old AppleHFS.sys file to its normal state. Drives are all accessible within windows (and all files are seemingly intact, didn't go exploring too hard for fear of more BSOD's). No change in boot camp control panel or at system boot. Mac drives still shown as windows drives.

 

6) Tried booting into the internal Recovery...didn't work. Would cause an endless loop of showing the apple and the loading bar would get to about halfway before it reboots and tries again.

 

7) Tried Resetting the PRAM and SMC...PRAM reset didn't go as advertised...it would chime once, get grey screen for 1 second and then about another 20 seconds til another chime (I"m holding cmd+opt+P+R the whole time), so I don't think it's the "2 chimes" for PRAM reset.

 

8) Created a bootable yosemite recovery drive (twice!), but would only load halfway followed by a restart. endless loop again.

 

9) Internet recovery doesn't work...all methods of recovery result in endles loop of restarts.

 

10) downloaded gdisk for windows as suggested here: Mac drive no longer showing up as boot option? but not sure how to use it to repair the drives.

 

 

Any help in repairing at least one drive enough for me to get back into OSX and/or recovery would be greatly appreciated!

Mac Pro, OS X Yosemite (10.10.5)

Posted on Nov 10, 2015 9:11 PM

Close

Q: all OSX drives got converted to windows drives, HELP!

  • All replies
  • Helpful answers

Previous Page 2 of 5 last Next
  • by johndough247,

    johndough247 johndough247 Nov 14, 2015 7:32 AM in response to Loner T
    Level 1 (0 points)
    Nov 14, 2015 7:32 AM in response to Loner T

    OK I'm In!!! The video card was the issue so I swapped it out for the original card. Just remembered that those faster Nvidia cards needs the driver loaded into the OS first in order for it to work.

     

    So I'm in Yosemite and I ran disk utility. I tried repairing one of my cloned backup drives. The drive got repaired but it can't repair the partition. I'm guessing this is where gdisk comes in. I can see all the drives in disk utility. Here is where I'm stuck, need your assistance on how to repair the partitions.

  • by Loner T,

    Loner T Loner T Nov 14, 2015 10:05 AM in response to johndough247
    Level 7 (23,828 points)
    Safari
    Nov 14, 2015 10:05 AM in response to johndough247

    Connect all your drives while booted. Run diskuti list and for each disk, post sudo gpt -vv -r show /dev/diskN - where N is derived from the diskutil list output.

  • by johndough247,

    johndough247 johndough247 Nov 14, 2015 12:02 PM in response to Loner T
    Level 1 (0 points)
    Nov 14, 2015 12:02 PM in response to Loner T

    OK lets see if I have this correct (slightly confused):

     

    1) open terminal

    2) Type "diskuti list"

    3) based on those results, type "sudo gpt -vv -r show /dev/diskN"

     

    what will this do exactly?


     

  • by Loner T,

    Loner T Loner T Nov 14, 2015 1:35 PM in response to johndough247
    Level 7 (23,828 points)
    Safari
    Nov 14, 2015 1:35 PM in response to johndough247

    The value of N will be (0,1,2,3,4...) and will match the number of physical disks connected to your Mac. diskutil list will provide information for each value. GPT command will provide details of each disk's partition configuration.

     

    Here is an example...

     

    :~ $ 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_HFS MacHD                   439.8 GB   disk0s2

    /dev/disk1

       #:                       TYPE NAME                    SIZE       IDENTIFIER

       0:     Apple_partition_scheme                        *17.2 MB    disk1

       1:        Apple_partition_map                         32.3 KB    disk1s1

       2:                  Apple_HFS Flash Player            17.1 MB    disk1s2

    :~ $ sudo gpt -vv -r show /dev/disk0

    Password:

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

    gpt show: /dev/disk0: PMBR 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         PMBR

              1          1         Pri GPT header

              2         32         Pri GPT table

             34          6        

             40     409600      1  GPT part - C12A7328-F81F-11D2-BA4B-00A0C93EC93B

         409640  858913840      2  GPT part - 48465300-0000-11AA-AA11-00306543ECAC

      859323480  117449655        

      976773135         32         Sec GPT table

      976773167          1         Sec GPT header

    :~$ sudo gpt -vv -r show /dev/disk1

    gpt show: /dev/disk1: mediasize=17170432; sectorsize=512; blocks=33536

    gpt show: /dev/disk1: MBR not found at sector 0

      start   size  index  contents

          0  33536        

  • by johndough247,

    johndough247 johndough247 Nov 14, 2015 3:21 PM in response to Loner T
    Level 1 (0 points)
    Nov 14, 2015 3:21 PM in response to Loner T

    Got it. just a reminder:

     

    disk0 is my PCIe SSD which is my main OS X drive. disk0s2 should be my OS X partition and needs fixing. disk0s3 however (The Windows SuperSSD bit) is a legit windows partition that I use in bootcamp for extra storage.

     

    disk1 is my Bootcamp partition (Windows 7) and disk2 is my Windows Archive, those two drives don't need fixing.

     

    disk3 is my cloned bootable backup of OS X; needs fixing.

     

    disk4 should be a bunch of Mac partitions for backup (my time machine backups are there as well), so all of those partitions needs fixing.

     

    disk5 is what I'm currently using to type this (external firewire).

     

    Please advise.

     

     

     

     

     

    Last login: Sat Nov 14 18:55:27 on console

    dbps-Air:~ dbp$ diskutil list

     

     

    /dev/disk0

       #:                       TYPE NAME                    SIZE       IDENTIFIER

       0:      GUID_partition_scheme                        *256.1 GB   disk0

       1:                        EFI                         209.7 MB   disk0s1

       2:       Microsoft Basic Data                         135.0 GB   disk0s2

       3:       Microsoft Basic Data Windows SuperSSD        120.9 GB   disk0s3

    /dev/disk1

       #:                       TYPE NAME                    SIZE       IDENTIFIER

       0:      GUID_partition_scheme                        *120.0 GB   disk1

    /dev/disk2

       #:                       TYPE NAME                    SIZE       IDENTIFIER

       0:     FDisk_partition_scheme                        *2.0 TB     disk2

       1:               Windows_NTFS DB MEDIA                2.0 TB     disk2s1

    /dev/disk3

       #:                       TYPE NAME                    SIZE       IDENTIFIER

       0:      GUID_partition_scheme                        *640.1 GB   disk3

       1:                        EFI EFI                     209.7 MB   disk3s1

       2:       Microsoft Basic Data                         639.3 GB   disk3s2

       3:                 Apple_Boot Recovery HD             650.0 MB   disk3s3

    /dev/disk4

       #:                       TYPE NAME                    SIZE       IDENTIFIER

       0:      GUID_partition_scheme                        *2.0 TB     disk4

       1:                        EFI                         209.7 MB   disk4s1

       2:       Microsoft Basic Data                         642.0 GB   disk4s2

       3:       Microsoft Basic Data                         642.0 GB   disk4s3

       4:       Microsoft Basic Data                         402.2 GB   disk4s4

       5:       Microsoft Basic Data                         313.4 GB   disk4s5

    /dev/disk5

       #:                       TYPE NAME                    SIZE       IDENTIFIER

       0:      GUID_partition_scheme                        *320.1 GB   disk5

       1:                        EFI EFI                     209.7 MB   disk5s1

       2:                  Apple_HFS OSX Remote              319.2 GB   disk5s2

       3:                 Apple_Boot Recovery HD             650.0 MB   disk5s3

     

     

     

     

    dbps-Air:~ dbp$ sudo gpt -vv -r show /dev/disk0

     

     

    Password:

     

     

    gpt show: /dev/disk0: mediasize=256060514304; sectorsize=512; blocks=500118192

    gpt show: /dev/disk0: PMBR at sector 0

    gpt show: /dev/disk0: Pri GPT at sector 1

    gpt show: /dev/disk0: Sec GPT at sector 500118191

          start       size  index  contents

              0          1         PMBR

              1          1         Pri GPT header

              2         32         Pri GPT table

             34          6        

             40     409600      1  GPT part - C12A7328-F81F-11D2-BA4B-00A0C93EC93B

         409640  263651024      2  GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7

      264060664        264        

      264060928  236056576      3  GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7

      500117504        655        

      500118159         32         Sec GPT table

      500118191          1         Sec GPT header

     

     

     

     

    dbps-Air:~ dbp$ sudo gpt -vv -r show /dev/disk1

    gpt show: /dev/disk1: mediasize=120034123776; sectorsize=512; blocks=234441648

    gpt show: /dev/disk1: Suspicious MBR at sector 0

    gpt show: /dev/disk1: Pri GPT at sector 1

    gpt show: /dev/disk1: Sec GPT at sector 234441647

          start       size  index  contents

              0          1         MBR

              1          1         Pri GPT header

              2         32         Pri GPT table

             34     411614        

         411648  208239536      2  MBR part 7

      208651184   25790431        

      234441615         32         Sec GPT table

      234441647          1         Sec GPT header

     

     

     

     

    dbps-Air:~ dbp$ sudo gpt -vv -r show /dev/disk2

    gpt show: /dev/disk2: mediasize=2000398934016; sectorsize=512; blocks=3907029168

    gpt show: /dev/disk2: MBR at sector 0

           start        size  index  contents

               0           1         MBR

               1        2051        

            2052  3907024416      1  MBR part 7

      3907026468        2700        

     

     

     

     

    dbps-Air:~ dbp$ sudo gpt -vv -r show /dev/disk3

    gpt show: /dev/disk3: mediasize=640135028736; sectorsize=512; blocks=1250263728

    gpt show: /dev/disk3: PMBR at sector 0

    gpt show: /dev/disk3: Pri GPT at sector 1

    gpt show: /dev/disk3: Sec GPT at sector 1250263727

           start        size  index  contents

               0           1         PMBR

               1           1         Pri GPT header

               2          32         Pri GPT table

              34           6        

              40      409600      1  GPT part - C12A7328-F81F-11D2-BA4B-00A0C93EC93B

          409640  1248584512      2  GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7

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

      1250263688           7        

      1250263695          32         Sec GPT table

      1250263727           1         Sec GPT header

     

     

     

     

    dbps-Air:~ dbp$ sudo gpt -vv -r show /dev/disk4

    gpt show: /dev/disk4: mediasize=2000398934016; sectorsize=512; blocks=3907029168

    gpt show: /dev/disk4: PMBR at sector 0

    gpt show: /dev/disk4: Pri GPT at sector 1

    gpt show: /dev/disk4: Sec GPT at sector 3907029167

           start        size  index  contents

               0           1         PMBR

               1           1         Pri GPT header

               2          32         Pri GPT table

              34           6        

              40      409600      1  GPT part - C12A7328-F81F-11D2-BA4B-00A0C93EC93B

          409640  1253906256      2  GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7

      1254315896      262144        

      1254578040  1253906256      3  GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7

      2508484296      262144        

      2508746440   785554400      4  GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7

      3294300840      262144        

      3294562984   612204000      5  GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7

      3906766984      262151        

      3907029135          32         Sec GPT table

      3907029167           1         Sec GPT header

     

     

     

     

    dbps-Air:~ dbp$ sudo gpt -vv -r show /dev/disk5

    gpt show: /dev/disk5: mediasize=320072933376; sectorsize=512; blocks=625142448

    gpt show: /dev/disk5: PMBR at sector 0

    gpt show: /dev/disk5: Pri GPT at sector 1

    gpt show: /dev/disk5: Sec GPT at sector 625142447

          start       size  index  contents

              0          1         PMBR

              1          1         Pri GPT header

              2         32         Pri GPT table

             34          6        

             40     409600      1  GPT part - C12A7328-F81F-11D2-BA4B-00A0C93EC93B

         409640  623463232      2  GPT part - 48465300-0000-11AA-AA11-00306543ECAC

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

      625142408          7        

      625142415         32         Sec GPT table

      625142447          1         Sec GPT header

    dbps-Air:~ dbp$

  • by Loner T,Solvedanswer

    Loner T Loner T Nov 14, 2015 4:10 PM in response to johndough247
    Level 7 (23,828 points)
    Safari
    Nov 14, 2015 4:10 PM in response to johndough247

    Let us start with disk0s2. Please post the output of

     

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

     

    for the record.

     

     

    We are going to switch the partition type from MS Data (0700) to Apple HFS (AF00). Gdisk will automagically correct the Partition GUID for

     

       409640  263651024      2  GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7

     

    sudo gdisk /dev/disk0

    p

    t

    2

    AF00

    p

    w

    y

     

    Unmount all partitions of disk0 using Disk Utility, mount them, and test that you can see OSX files. I assume no data has been touched on this.

  • by johndough247,

    johndough247 johndough247 Nov 14, 2015 4:21 PM in response to Loner T
    Level 1 (0 points)
    Nov 14, 2015 4:21 PM in response to Loner T

    Last login: Sat Nov 14 18:58:09 on ttys000

    dbps-Air:~ dbp$ sudo dd if=/dev/rdisk0s2 count=1 2>/dev/null | hexdump -C

    Password:

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

    *

    00000200

    dbps-Air:~ dbp$

     

     

     

    Should I go ahead with the gdisk commands?

  • by Loner T,

    Loner T Loner T Nov 14, 2015 4:42 PM in response to johndough247
    Level 7 (23,828 points)
    Safari
    Nov 14, 2015 4:42 PM in response to johndough247

    Let us ascertain that we can go ahead. Please try


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

     

    It should look similar to (you may also have to post an image).

     

    HFS-Header.png

  • by johndough247,

    johndough247 johndough247 Nov 14, 2015 4:54 PM in response to Loner T
    Level 1 (0 points)
    Nov 14, 2015 4:54 PM in response to Loner T

    Screen Shot 2015-11-14 at 8.53.15 PM.png

  • by Loner T,

    Loner T Loner T Nov 14, 2015 5:12 PM in response to johndough247
    Level 7 (23,828 points)
    Safari
    Nov 14, 2015 5:12 PM in response to johndough247

    Go ahead and change the type and see if you see appropriate files? If you do, try and boot from disk0s2.

  • by johndough247,

    johndough247 johndough247 Nov 14, 2015 5:41 PM in response to Loner T
    Level 1 (0 points)
    Nov 14, 2015 5:41 PM in response to Loner T

    Thank you! I'm back in on that drive.

     

    Ok which drive are we tackling next?

     

    EDIT: It didn't mount on its own at first, had to do a verify and repair disk in disk utility before it would mount. after that, all is well.

  • by Loner T,

    Loner T Loner T Nov 14, 2015 5:43 PM in response to johndough247
    Level 7 (23,828 points)
    Safari
    Nov 14, 2015 5:43 PM in response to johndough247

    1. How is disk3 cloned?

    2. On disk4, can you post the output of the same DD command that we used for disk0s2 and change rdisk0s2 to rdisk4s2 through rdisk4s5?

  • by johndough247,

    johndough247 johndough247 Nov 14, 2015 6:43 PM in response to Loner T
    Level 1 (0 points)
    Nov 14, 2015 6:43 PM in response to Loner T

    OK so first off, I'm working off the newly restored drive, and I forgot that the disk numbers would change as a result...that's ok right? I just have to modify as we go along. The reason I'm reluctant to switch back to the temp OSX from earlier is I reinstalled my graphics card (since this one has the right drivers) so I'd rather not go switch cards a 3rd and 4th time.

     

    disk3 (which is now disk4) is cloned from root folder using chronosync using the "bootable left to right" option. I test the clone regularly and it works.

     

    Here's the new diskutil list for reference:

     

    Last login: Sat Nov 14 22:26:40 on ttys000

    Mac-Pro:~ $ diskutil list

    /dev/disk0

       #:                       TYPE NAME                    SIZE       IDENTIFIER

       0:      GUID_partition_scheme                        *256.1 GB   disk0

       1:                        EFI                         209.7 MB   disk0s1

       2:                  Apple_HFS OSX SuperSSD            135.0 GB   disk0s2

       3:       Microsoft Basic Data Windows SuperSSD        120.9 GB   disk0s3

    /dev/disk1

       #:                       TYPE NAME                    SIZE       IDENTIFIER

       0:     FDisk_partition_scheme                        *2.0 TB     disk1

       1:               Windows_NTFS DB MEDIA                2.0 TB     disk1s1

    /dev/disk2

       #:                       TYPE NAME                    SIZE       IDENTIFIER

       0:      GUID_partition_scheme                        *2.0 TB     disk2

       1:                        EFI                         209.7 MB   disk2s1

       2:       Microsoft Basic Data                         642.0 GB   disk2s2

       3:       Microsoft Basic Data                         642.0 GB   disk2s3

       4:       Microsoft Basic Data                         402.2 GB   disk2s4

       5:       Microsoft Basic Data                         313.4 GB   disk2s5

    /dev/disk3

       #:                       TYPE NAME                    SIZE       IDENTIFIER

       0:      GUID_partition_scheme                        *120.0 GB   disk3

    /dev/disk4

       #:                       TYPE NAME                    SIZE       IDENTIFIER

       0:      GUID_partition_scheme                        *640.1 GB   disk4

       1:                        EFI EFI                     209.7 MB   disk4s1

       2:       Microsoft Basic Data                         639.3 GB   disk4s2

       3:                 Apple_Boot Recovery HD             650.0 MB   disk4s3

     

    Working on the output for disk2s2 through s5 now...

  • by johndough247,

    johndough247 johndough247 Nov 14, 2015 6:52 PM in response to Loner T
    Level 1 (0 points)
    Nov 14, 2015 6:52 PM in response to Loner T

    disk2s2:

     

    disk2s2.png

    disk2s3:

    disk2s3.png

  • by johndough247,

    johndough247 johndough247 Nov 14, 2015 7:01 PM in response to Loner T
    Level 1 (0 points)
    Nov 14, 2015 7:01 PM in response to Loner T

    disk2s4:

     

    disk2s4.png

     

    disk2s5:

     

    disk2s5.png

     

    Oh please note there's also one more cloned backup (using the same cloning method) on this drive, but I'm not sure which partition it is :-\

Previous Page 2 of 5 last Next