donfromduvall

Q: Bootcamp gone after partitioning

I've looked throughRe: Repairing Boot Camp after creating new partition and can't seem to yield anything when following many of the steps given. I have very little experience with Mac so perhaps I didn't follow some steps properly.

 

I have a Macbook Pro running 10.9.5 OS.  I partitioned my drive using the Mac tool within OS and a Windows tool which I can't remember the name of on the MS side.  I didn't notice any issues until I left Windows for OS and tried rebooting into Windows again.  The Bootcamp option was gone:

Screen Shot 2015-11-10 at 7.51.56 AM.png

At this point I'd be happy just to get the data off the Windows side and will buy a dedicated work computer once complete.  If someone could offer some guidance it would be appreciated

 

Here the result of the basic commands.  Thanks in advance.

 

dons-mbp:~ donharward$ sudo gdisk /dev/disk0

Password:

GPT fdisk (gdisk) version 1.0.1

 

Warning: Devices opened with shared lock will not have their

partition table automatically reloaded!

Partition table scan:

  MBR: hybrid

  BSD: not present

  APM: not present

  GPT: present

 

Found valid GPT with hybrid MBR; using GPT.

 

Command (? for help): p

Disk /dev/disk0: 490234752 sectors, 233.8 GiB

Logical sector size: 512 bytes

Disk identifier (GUID): 928B19BE-1A86-4B16-A275-7B8BD168BA34

Partition table holds up to 128 entries

First usable sector is 34, last usable sector is 490234718

Partitions will be aligned on 8-sector boundaries

Total free space is 115635173 sectors (55.1 GiB)

 

Number  Start (sector)    End (sector)  Size       Code  Name

   1              40          409639   200.0 MiB   EF00  EFI System Partition

   2          409640       236613727   112.6 GiB   AF00  Untitled

   3       236613728       237883263   619.9 MiB   AB00  Recovery HD

   4       353517568       490233855   65.2 GiB    0700  BOOTCAMP

 

Command (? for help):

iPhone 4S, iOS 5.0.1

Posted on Nov 10, 2015 7:57 AM

Close

Q: Bootcamp gone after partitioning

  • All replies
  • Helpful answers

Page 1 Next
  • by Loner T,

    Loner T Loner T Nov 10, 2015 8:03 AM in response to donfromduvall
    Level 7 (24,869 points)
    Safari
    Nov 10, 2015 8:03 AM in response to donfromduvall

    Do not modify the partitions in any way! Post the output of

     

    sudo fdisk /dev/disk0

  • by donfromduvall,

    donfromduvall donfromduvall Nov 10, 2015 8:17 AM in response to Loner T
    Level 1 (0 points)
    Nov 10, 2015 8:17 AM in response to Loner T

    I wouldn't have had I had a clue this would happen or if there was a single warning throughout the process.

     

    Command (? for help): sudo fdisk /dev/disk0

    You may need to edit /etc/fstab and/or your boot loader configuration!

     

    Command (? for help):

  • by Loner T,

    Loner T Loner T Nov 10, 2015 8:19 AM in response to donfromduvall
    Level 7 (24,869 points)
    Safari
    Nov 10, 2015 8:19 AM in response to donfromduvall

    This command is typed in the Terminal, not inside GPT Fdisk. You will need to quit Gdisk first.

  • by donfromduvall,

    donfromduvall donfromduvall Nov 10, 2015 8:24 AM in response to Loner T
    Level 1 (0 points)
    Nov 10, 2015 8:24 AM in response to Loner T

    I apologize.

     

    dons-mbp:~ donharward$ sudo fdisk /dev/disk0

    Password:

    Disk: /dev/disk0 geometry: 30515/255/63 [490234752 sectors]

    Signature: 0xAA55

             Starting       Ending

    #: id  cyl  hd sec -  cyl  hd sec [     start -       size]

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

    1: EE    0   0   2 -   25 127  14 [         1 -     409639] <Unknown ID>

    2: AF   25 127  15 - 1023 254  63 [    409640 -  236204088] HFS+       

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

    *4: 07 1023 254  63 - 1023 254  63 [ 237883392 -  251428864] HPFS/QNX/AUX

    dons-mbp:~ donharward$

  • by Loner T,

    Loner T Loner T Nov 10, 2015 9:12 AM in response to donfromduvall
    Level 7 (24,869 points)
    Safari
    Nov 10, 2015 9:12 AM in response to donfromduvall

    Can you post the output of

     

    sudo gpt -vv -r show /dev/disk0 

  • by donfromduvall,

    donfromduvall donfromduvall Nov 10, 2015 9:14 AM in response to Loner T
    Level 1 (0 points)
    Nov 10, 2015 9:14 AM in response to Loner T

    Sure:

     

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

    Password:

    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: error: bogus map

    gpt show: unable to open device '/dev/disk0': Undefined error: 0

    dons-mbp:~ donharward$

  • by Loner T,

    Loner T Loner T Nov 10, 2015 10:44 AM in response to donfromduvall
    Level 7 (24,869 points)
    Safari
    Nov 10, 2015 10:44 AM in response to donfromduvall

    1. Your GPT has CRC errors.

    2. Your GPT and MBR do not match (using Gdisk output).

     

    MBR

    *4: 07 1023 254  63 - 1023 254  63 [ 237883392 -  251428864] HPFS/QNX/AUX

    GPT

    4       353517568       490233855   65.2 GiB    0700  BOOTCAMP

    Does Windows boot properly?

     

    We will need to use Gdisk to overwrite the GPT with the MBR start/size information.

  • by donfromduvall,

    donfromduvall donfromduvall Nov 10, 2015 11:03 AM in response to Loner T
    Level 1 (0 points)
    Nov 10, 2015 11:03 AM in response to Loner T

    Windows does not boot.  I wouldn't even know how to check as the standard method I use is through the StartDisk application within OS and the 'Bootcamp' partition does not exist.

     

    This "We will need to use Gdisk to overwrite the GPT with the MBR start/size information." is the next step?

     

    Thanks for your help.

  • by Loner T,

    Loner T Loner T Nov 10, 2015 2:48 PM in response to donfromduvall
    Level 7 (24,869 points)
    Safari
    Nov 10, 2015 2:48 PM in response to donfromduvall

    Your partition table is

     

    GPT 3 StartGPT 3 SizeGPT 3 EndNTFS StartSector OffsetNTFS SizeNTFS EndSector Offset (MB)NTFS(Gb)Disk EndDisk Difference
    2366137281269536237883264237883392128251428864489312255 0 119.89490234752922497
  • by Loner T,Solvedanswer

    Loner T Loner T Nov 10, 2015 3:45 PM in response to donfromduvall
    Level 7 (24,869 points)
    Safari
    Nov 10, 2015 3:45 PM in response to donfromduvall

    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 the action being taken. Gdisk has one-character commands except when entering numbers.

     

    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. 237883392 ( - Start offset in sectors or the start point for Bootcamp part)
    8. +251428864 ( - 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.


  • by donfromduvall,

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

    Ive completed the above steps, restarted and the Bootcamp drive appeared. I then went to reboot using into Windows but get this message at a command prompt.

    "No bootable device--insert boot disk and continue"

     

    I don't have a boot disk and now can't figure out how to restart on the Mac side.

  • by donfromduvall,

    donfromduvall donfromduvall Nov 10, 2015 3:16 PM in response to donfromduvall
    Level 1 (0 points)
    Nov 10, 2015 3:16 PM in response to donfromduvall

    Now back on Mac side by holding option key and choosing Mac HD.

  • by Loner T,

    Loner T Loner T Nov 10, 2015 3:32 PM in response to donfromduvall
    Level 7 (24,869 points)
    Safari
    Nov 10, 2015 3:32 PM in response to donfromduvall

    Can you see files in the Bootcamp volume from OS X Finder?

  • by donfromduvall,

    donfromduvall donfromduvall Nov 10, 2015 3:43 PM in response to Loner T
    Level 1 (0 points)
    Nov 10, 2015 3:43 PM in response to Loner T

    Yes!  Which is huge as now I have my applications/files to backup.  Thank you very much.  Up to this point I wasn't able to determine what my start/stop offset values were.

     

    Any idea how (without a boot disk) to get Windows back?

     

    Thanks again...I'd be lost without your input.

Page 1 Next