ice1080

Q: Boot Camp repair after deleting Linux Partitions

I'm running OS X 10.9.4 and Windows 7 x64 Ultimate on Parallels 8. This is on a Mid 2011 iMac with a 1TB Hard Drive.


Earlier this year I decided to update my setup to allow a triple boot with Ubuntu to familiarize myself a bit with Linux (using rEFIt. I was able to successfully boot into Mac and Linux and continue to use Parallels to use my Windows, however I was unable to boot into Windows anymore. Initially I setup Windows using the bootcamp assistant and then added parallels later. I no longer have a need for Linux so I used disk utility to remove the Linux partitions and gave the space back to OS X. I also moved the EFI folder to stop it from using rEFIt anymore. I tried again to boot into windows using the Startup Disk section in System Preferences but got the following message:


"No bootable device --- insert boot disk and press any key"


I restarted, put in my boot disk and was able get back into OS X. I have read some other posts on similar issues but it seems as if my case might be different since I deleted the Linux partitions.


Here are the results of the "gpt -r -vv show disk0" and "fdisk /dev/disk0" commands, tilde's added by me:

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

sudo gpt -r -vv show disk0

gpt show: disk0: mediasize=1000204886016; sectorsize=512; blocks=1953525168

gpt show: disk0: Suspicious MBR at sector 0

gpt show: disk0: Pri GPT at sector 1

gpt show: disk0: Sec GPT at sector 1953525167

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

  1465253888      262144        

  1465516032   488007680      3  GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7

  1953523712        1423        

  1953525135          32         Sec GPT table

  1953525167           1         Sec GPT header

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

sudo fdisk /dev/disk0

Disk: /dev/disk0 geometry: 121601/255/63 [1953525168 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: AF 1023 254  63 - 1023 254  63 [    409640 - 1464844248] HFS+       

3: 0C 1023 254  63 - 1023 254  63 [1465516032 -  488007680] Win95 FAT32L

4: 00    0   0   0 -    0   0   0 [         0 -          0] unused

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



If needed, 2.8GHz Intel Core i7 processor, 8GB 1333 MHz DDR3 Ram.



iMac (21.5-inch Mid 2011), OS X Mavericks (10.9.4)

Posted on Sep 7, 2014 4:54 PM

Close

Q: Boot Camp repair after deleting Linux Partitions

  • All replies
  • Helpful answers

Previous Page 2
  • by ice1080,

    ice1080 ice1080 Sep 21, 2014 7:18 PM in response to Loner T
    Level 1 (0 points)
    Sep 21, 2014 7:18 PM in response to Loner T

    1. According to what I found online, the only way I could find to remove GRUB was to type the following in terminal

     

    sudo fdisk -0 /dev/disk0

     

    2.

    sudo fdisk /dev/disk0

    Disk: /dev/disk0 geometry: 121601/255/63 [1953525168 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: AF 1023 254  63 - 1023 254  63 [    409640 - 1464844248] HFS+       

    *3: 07 1023 254  63 - 1023 254  63 [1465516032 -  488007680] HPFS/QNX/AUX

    4: 00    0   0   0 -    0   0   0 [         0 -          0] unused

     

    3. I can still see bootcamp in Finder and am still able to open the files. I can as well still use Parallels with my Windows partition.

     

    4. I can still select Bootcamp from Startup Disk

     

    5. When I select the Bootcamp disk and restart, I get a black screen with a blinking cursor. The only way to get back to OS X is to hold the power button and restart with the option key selected. Unfortunately now only OS X is shown in the boot manager...

  • by Loner T,

    Loner T Loner T Sep 21, 2014 7:59 PM in response to ice1080
    Level 7 (24,855 points)
    Safari
    Sep 21, 2014 7:59 PM in response to ice1080

    Parallels being able to use the Bootcamp partition indicates NTFS is intact.

    Bootcamp volume being mounted indicates OS X GPT entry for Bootcamp is correct.

    Selecting Bootcamp in Startup Disk indicates the MBR is correct.

     

    Can you do startup repair on Windows to make sure there are no boot loader/manager issues? Also, please see http://support.microsoft.com/kb/927392

  • by ice1080,

    ice1080 ice1080 Oct 2, 2014 6:14 PM in response to Loner T
    Level 1 (0 points)
    Oct 2, 2014 6:14 PM in response to Loner T

    I ran startup repair and it found some problems and fixed them and restarted but this did not solve the problem. After that I went into the command prompt and ran the Bootrec.exe. I used /FixMbr and then restarted the computer. I was able to boot into windows after this without the disk. I restarted to double check and this worked as well. I went back into Mac OS via the bootcamp tools and opened up parallels. Parallels opened up alright and has all of my data still there. I changed the startup disk and restarted in Windows and it showed up with a black screen saying the following:

     

    Windows failed to start. A recent hardware or soft are change might be the cause. To fix the problem:

     

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    1. Insert your Windows installation disc and restart your computer.

    2. Choose your language settings, and then click “Next.”

    3. Click “repair your computer.”

     

    If you do not have this disc, contact your system administrator or computer manufacturer for assistance.

     

    Status: 0xc000000e

     

    Info: The boot selection failed because a required device is inaccessible.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

     

    I went back into Mac and was able to open up Parallels just fine. I put the Windows 7 disk back in and went back into the repair environment. I then tried the Bootrec.exe again and used /FixBoot and it still had the same problem. I then ran the startup repair, /FixMbr, and /FixBoot. This seemed to fix the problem. I was able to go back and forth into Mac and Windows. Unfortunately, I opened up Parallels in Mac and it immediately went into the startup repair and “fixed” the problem. After that I had to run startup repair again in order to boot into Windows. After I would do this, I would have to run startup repair again for Parallels to open. Basically it was alternating. If I didn’t do it in the other environment, I was able to keep going into the one without the need for startup repair.

     

    Any thoughts?

  • by Loner T,

    Loner T Loner T Oct 2, 2014 6:19 PM in response to ice1080
    Level 7 (24,855 points)
    Safari
    Oct 2, 2014 6:19 PM in response to ice1080

    I would raise a bug report with Parallels Tech support. Parallels does not seem to support a Bootcamp partition very well in the version you have. It is modifying BCD data on the fly, which will cause you heartburn. Parallels folks may suggest an upgrade to their latest version, which is typical of a software company.

     

    Do you have any virtual devices configured in Parallels? If yes, you may want to remove them and re-test.

  • by ice1080,

    ice1080 ice1080 Oct 2, 2014 6:32 PM in response to Loner T
    Level 1 (0 points)
    Oct 2, 2014 6:32 PM in response to Loner T

    Alright I'll start talking to Parallels.

     

    As far as configured virtual devices, I have the following:

     

    Boot Order

    Video

    Print

    Floppy Disk

    CD/DVD 1

    Hard Disk 1

    Network 1

    Sound

    USB & Bluetooth

     

    Should I remove all of them?

  • by Loner T,

    Loner T Loner T Oct 2, 2014 6:56 PM in response to ice1080
    Level 7 (24,855 points)
    Safari
    Oct 2, 2014 6:56 PM in response to ice1080

    Please do not remove all of them. You can see more details at http://technet.microsoft.com/en-us/library/cc721886(v=ws.10).aspx.

     

    Can I suggest only the Boot Order as a test? I suspect others may have an impact as well, but not as significant as Boot Order.

Previous Page 2