metalstud

Q: Ran Disk Utilities on Bootcamp drive

I was having some trouble with my mac running slow. At the same time, my wife is needing to use Windows for work. In the process of rebooting the computer, I realized that I could only get the computer to boot when the HD was connected to USB- but this is just info that leads up to my current issues.

 

In my troubleshooting of the drive, I ran disk utility on both partitions. Once I settled on connecting through USB (I believe the cable from the drive to the motherboard is bad), I was able to boot into Mac OS, see the Bootcamp partition, but when I did a Option Boot, I could not see the Windows partition nor could I select it in my start up disk selections in Mac OS.

 

I followed directions in Terminal found in recent discussions posted by LonerT to get things back, as other users seemed to have similar stories to mine. The fix wouldn't work, I found a thread post that directed to go into the Recovery partition and use the csrutil disable command. I did that, then rebooted and was able to successfully do the recommended steps ( sudo gdisk /dev/disk0 ).

 

Now, Mac OS partition is gone. Windows through Bootcamp is still gone. I can only boot my computer in the recovery mode, and I am not able to see my Mac OS partition in disk utility.

 

Is there any hope of restoring my drive? I can see that the space used by my Mac partition is still there, but even if I try to reinstall Mac OS, it doesn't give me the option to use that space- the space doesn't seem to be allocated to a drive partition anymore.

MacBook Pro (13-inch Early 2011), OS X El Capitan (10.11.6)

Posted on Sep 6, 2016 11:51 AM

Close

Q: Ran Disk Utilities on Bootcamp drive

  • All replies
  • Helpful answers

  • by Kappy,

    Kappy Kappy Sep 6, 2016 12:22 PM in response to metalstud
    Level 10 (269,995 points)
    Desktops
    Sep 6, 2016 12:22 PM in response to metalstud

    You have garbaged the drive too badly to recover. You will have to use Disk Utility to erase the entire partition for OS X and reinstall it. Then use Boot Camp Assistant to remove the Windows partition and restore the drive.

    Clean Install of El Capitan

     

    1. Restart the computer. Immediately after the chime hold down the Command-Option-R keys until a globe appears.
    2. The Utility Menu will appear in from 5-20 minutes. Be patient.
    3. Select Disk Utility and click on the Continue button.
    4. When Disk Utility loads select the drive (usually, the out-dented entry) from the side list.
    5. Click on the Partition tab in Disk Utility's main window. A panel will drop down.
    6. Set the partition scheme to GUID.
    7. Set the Format type to Mac OS Extended (Journaled.)
    8. Click on the Apply button, then click on the Done button when it activates.
    9. Quit Disk Utility and return to the Utility Menu.
    10. Select Reinstall OS X and click on the Continue button.

    I suggest that while doing the above you also remove the Windows partition, if the above process does not do it automatically. Ideally, the above will provide a single full-sized volume for OS X.

  • by Loner T,

    Loner T Loner T Sep 6, 2016 2:11 PM in response to metalstud
    Level 7 (23,493 points)
    Safari
    Sep 6, 2016 2:11 PM in response to metalstud

    You may have a corrupted GPT. If you can boot into Internet Recovery, click on Utilities -> Terminal, and run the following commands

     

    diskutil list

    diskutil cs list

    gpt -vv -r show /dev/disk0

     

    Use Copy (Command+C) to copy the output of all three commands, quit Terminal, start Safari, Paster (Command+V) the copied output as a reply.

  • by metalstud,

    metalstud metalstud Sep 6, 2016 2:20 PM in response to Loner T
    Level 1 (4 points)
    Windows Software
    Sep 6, 2016 2:20 PM in response to Loner T

    Thanks for helping out!

     

    -bash-3.2# diskutil list

    /dev/disk0 (external, physical):

       #:                       TYPE NAME                    SIZE       IDENTIFIER

       0:     FDisk_partition_scheme                        *750.2 GB   disk0

       1:                       0xEE                         750.2 GB   disk0s1

       2:                  Apple_HFS Recovery HD             650.0 MB   disk0s2

    /dev/disk1 (disk image):

       #:                       TYPE NAME                    SIZE       IDENTIFIER

       0:      GUID_partition_scheme                        +2.1 GB     disk1

       1:                  Apple_HFS OS X Base System        1.3 GB     disk1s1

    /dev/disk2 (disk image):

       #:                       TYPE NAME                    SIZE       IDENTIFIER

       0:                            untitled               +5.2 MB     disk2

    /dev/disk3 (disk image):

       #:                       TYPE NAME                    SIZE       IDENTIFIER

       0:                            untitled               +524.3 KB   disk3

    /dev/disk4 (disk image):

       #:                       TYPE NAME                    SIZE       IDENTIFIER

       0:                            untitled               +524.3 KB   disk4

    /dev/disk5 (disk image):

       #:                       TYPE NAME                    SIZE       IDENTIFIER

       0:                            untitled               +524.3 KB   disk5

    /dev/disk6 (disk image):

       #:                       TYPE NAME                    SIZE       IDENTIFIER

       0:                            untitled               +524.3 KB   disk6

    /dev/disk7 (disk image):

       #:                       TYPE NAME                    SIZE       IDENTIFIER

       0:                            untitled               +524.3 KB   disk7

    /dev/disk8 (disk image):

       #:                       TYPE NAME                    SIZE       IDENTIFIER

       0:                            untitled               +6.3 MB     disk8

    /dev/disk9 (disk image):

       #:                       TYPE NAME                    SIZE       IDENTIFIER

       0:                            untitled               +2.1 MB     disk9

    /dev/disk10 (disk image):

       #:                       TYPE NAME                    SIZE       IDENTIFIER

       0:                            untitled               +1.0 MB     disk10

    /dev/disk11 (disk image):

       #:                       TYPE NAME                    SIZE       IDENTIFIER

       0:                            untitled               +524.3 KB   disk11

    /dev/disk12 (disk image):

       #:                       TYPE NAME                    SIZE       IDENTIFIER

       0:                            untitled               +524.3 KB   disk12

    /dev/disk13 (disk image):

       #:                       TYPE NAME                    SIZE       IDENTIFIER

       0:                            untitled               +1.0 MB     disk13

    /dev/disk14 (disk image):

       #:                       TYPE NAME                    SIZE       IDENTIFIER

       0:                            untitled               +6.3 MB     disk14

    -bash-3.2# diskutil cs list

    No CoreStorage logical volume groups found

    -bash-3.2# gpt -vv -r show /dev/disk0

    gpt show: /dev/disk0: mediasize=750156374016; sectorsize=512; blocks=1465149168

    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 1465149167

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

      1384169688     1269544      3  GPT part - 48465300-0000-11AA-AA11-00306543ECAC

      1385439232    66195456      4  GPT part - 48465300-0000-11AA-AA11-00306543ECAC

      1451634688    13514447        

      1465149135          32         Sec GPT table

      1465149167           1         Sec GPT header

    -bash-3.2#

  • by metalstud,

    metalstud metalstud Sep 6, 2016 2:22 PM in response to metalstud
    Level 1 (4 points)
    Windows Software
    Sep 6, 2016 2:22 PM in response to metalstud

    To futher complicate things, I had decided to kill the bootcamp install and install mac os on that partition, with the hope that I could eventually recover the data from the previous mac os side of the drive. That didn't go so well, and now bootcamp partition is gone and just merged in with the whole drive and I can't select anything to partition or to install mac os onto.

  • by Loner T,

    Loner T Loner T Sep 6, 2016 2:27 PM in response to metalstud
    Level 7 (23,493 points)
    Safari
    Sep 6, 2016 2:27 PM in response to metalstud

    You cannot, because your disk0 is now an MBR disk (FDisk_partition_scheme ) . OSX needs a GPT disk.

     

    Can you install OSX on an external disk using About OS X Recovery - Apple Support and also install GPT Fdisk on this external disk and we can try an repair at least the disk? It may be possible to recover the old GPT, but it is not certain.

  • by metalstud,

    metalstud metalstud Sep 6, 2016 2:29 PM in response to Loner T
    Level 1 (4 points)
    Windows Software
    Sep 6, 2016 2:29 PM in response to Loner T

    I'll see what I can do to get a fresh install going on another HD and report back!