Brian F Wong

Q: gpt error after partition change - extra ghost partition in table, can't find Bootcamp in finder, but can log into both OSX and Win10

Yesterday I took about 25gb from the OSX partition and moved it to the Windows partition.

 

I can log into both OSX and Bootcamp, but I can no longer see Bootcamp in finder.

 

Output of some key commands:

 

sudo gpt -vv -r show /dev/disk0

sudo gpt -vv -r show /dev/disk0

gpt show: /dev/disk0: mediasize=500277790720; sectorsize=512; blocks=977105060

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

 

sudo gdisk /dev/disk0

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: 977105060 sectors, 465.9 GiB

Logical sector size: 512 bytes

Disk identifier (GUID): E6C76A39-7886-4C35-B924-3AFB92CF9BED

Partition table holds up to 128 entries

First usable sector is 34, last usable sector is 977105026

Partitions will be aligned on 8-sector boundaries

Total free space is 262281 sectors (128.1 MiB)

 

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

   1              40          409639   200.0 MiB   EF00  EFI System Partition

   2          409640       586347135   279.4 GiB   AF00  Customer

   3       586347136       587616671   619.9 MiB   AB00  Recovery HD

   4       587616672       635047935   22.6 GiB    AF00  Untitled

   5       635310080       977104895   163.0 GiB   0700  BOOTCAMP

Bootcamp is actually both 4 and 5 here, as far as windows is concerned.

 

 

sudo fdisk /dev/disk0

sudo fdisk /dev/disk0

Disk: /dev/disk0 geometry: 60821/255/63 [977105060 sectors]

Signature: 0xAA55

         Starting       Ending

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

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

1: EE    0   0   2 - 1023 254  63 [         1 -  586347135] <Unknown ID>

2: AB 1023 254  63 - 1023 254  63 [ 586347136 -    1269536] Darwin Boot

*3: 07 1023 254  63 - 1023 254  63 [ 587618304 -  389486592] HPFS/QNX/AUX

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

 

I've gone into the recovery disk and done csrutil disable:

csrutil status

System Integrity Protection status: disabled.

 

My system:

MacBook Pro (Retina, 15-inch, Late 2013)

OSX 10.11.5 (15F34)

ModelName: MacBookPro
ModelIdentifier: MacBookPro11,3
ProcessorName: IntelCorei7
ProcessorSpeed: 2.3GHz
NumberofProcessors: 1
TotalNumberofCores: 4
L2Cache(perCore): 256KB
L3Cache: 6MB
Memory: 16GB
BootROMVersion: MBP112.0138.B17
SMCVersion(system): 2.19f12

NVIDIA GeForce GT 750M

 

Screen-Shot-2016-05-19-at-10.23.31-PM.png

MacBook Pro with Retina display, OS X El Capitan (10.11.5), 15", Late 2013, 16GB 750M-Nvidia

Posted on May 19, 2016 10:33 PM

Close

Q: gpt error after partition change - extra ghost partition in table, can't find Bootcamp in finder, but can log into both OSX and Wi ... more

  • All replies
  • Helpful answers

  • by brenden dv,

    brenden dv brenden dv May 21, 2016 8:53 AM in response to Brian F Wong
    Community Specialists
    May 21, 2016 8:53 AM in response to Brian F Wong

    Hi Brian F Wong,

     

    Thanks for using the Apple Support Communities. I'm sorry to hear you are having these issues with Boot Camp on your Windows machine. Generally, resizing of Boot Camp partitions isn't directly supported (outside of deleting and recreating them), as noted in the following article:

     

    Modify the Windows partition

    Remove the partition, change its size, or change its name.

    Remove the partition

    Use Boot Camp Assistant to safely remove Windows and the Windows partition from your Mac, restoring your startup drive to a single Mac partition. You may want to back up your information first, because removing the partition erases all of the data it contains.

    1. Open Boot Camp Assistant.
    2. Select “Remove Windows 7 or later version," then click Continue.
    3. Do one of the following: 
         
      • If your Mac has a single internal disk, click Restore.
      •  
      • If your Mac has multiple internal disks, select the Windows disk, select “Restore disk to a single OS X partition,” then click Continue.

    Change the size of the partition

    It's not possible to change the size of the partition after installing Windows, but you can remove the partition and create a new partition of the correct size. Don't try to resize your partition with Windows or a third-party app.

     

    Set up a Windows partition on your Mac - Apple Support

     

    Regards

  • by Loner T,

    Loner T Loner T May 21, 2016 5:31 PM in response to Brian F Wong
    Level 7 (23,898 points)
    Safari
    May 21, 2016 5:31 PM in response to Brian F Wong

    Brian F Wong wrote:

     

    Yesterday I took about 25gb from the OSX partition and moved it to the Windows partition.

    How?

     

     

    sudo gpt -vv -r show /dev/disk0

    sudo gpt -vv -r show /dev/disk0

    gpt show: /dev/disk0: mediasize=500277790720; sectorsize=512; blocks=977105060

    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

     

    You have a corrupted GPT. This is why you cannot see it in OS X. Did you use the MiniTool Partition wizard? It is a dangerous tool and should never be used.