Wondercube

Q: I fell into the Yosemite Trap.

I didn't realize Yosemite has so many issues and my systems where out of date, so I set my laptop to update automatically and it killed my access to bootcamp. I tried Various programs and followed advice from other people having issues but non of it worked. Is there any new up to date info on this since most posts are at least a year or two old? Here are the basic questions everyone asks answered.

 

diskutil list

   #:                       TYPE NAME                    SIZE       IDENTIFIER

   0:      GUID_partition_scheme                        *500.3 GB   disk0

   1:                        EFI EFI                     209.7 MB   disk0s1

   2:                  Apple_HFS Macintosh HD            125.0 GB   disk0s2

   3:                 Apple_Boot Recovery HD             650.0 MB   disk0s3

   4:       Microsoft Basic Data                         231.0 GB   disk0s4

diskutil cs list

No CoreStorage logical volume groups found

 

sudo gpt -vv -r show /dev/disk0

Password:

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: /dev/disk0: Sec GPT at sector 977105059

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

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

  245819800  280114792        

  525934592  451170304      4  GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7

  977104896        131        

  977105027         32         Sec GPT table

  977105059          1         Sec GPT header

 

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 1023 254  63 - 1023 254  63 [         1 -     409639] <Unknown ID>

2: AF 1023 254  63 - 1023 254  63 [    409640 -  244140624] HFS+       

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

4: 0C 1023 254  63 - 1023 254  63 [ 525934592 -  451170304] Win95 FAT32L

 

So what can i do to fix this?

Posted on Sep 28, 2016 1:59 PM

Close

Q: I fell into the Yosemite Trap.

  • All replies
  • Helpful answers

Previous Page 2
  • by Wondercube,

    Wondercube Wondercube Sep 28, 2016 8:20 PM in response to Loner T
    Level 1 (4 points)
    Windows Software
    Sep 28, 2016 8:20 PM in response to Loner T

    Yosemite. I'm posting the full thing.

     

    Last login: Wed Sep 28 18:49:29 on ttys001

    Majas-MBP:~ Buckets$ sudo gdisk /dev/rdisk0

    Password:

    GPT fdisk (gdisk) version 1.0.1

     

    Warning: Devices opened with shared lock will not have their

    partition table automatically reloaded!

    NOTE: Write test failed with error number 1. It will be impossible to save

    changes to this disk's partition table!

    You may need to deactivate System Integrity Protection to use this program. See

    https://www.quora.com/How-do-I-turn-off-the-rootless-in-OS-X-El-Capitan-10-11

    for more information.

     

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

    Logical sector size: 512 bytes

    Disk identifier (GUID): 00004400-3D96-0000-9F1E-0000D8270000

    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 280114929 sectors (133.6 GiB)

     

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

       1              40          409639   200.0 MiB   EF00  EFI system partition

       2          409640       244550263   116.4 GiB   AF00  Customer

       3       244550264       245819799   619.9 MiB   AB00  Recovery HD

       4       525934592       977104895   215.1 GiB   0700  BOOTCAMP

     

    Command (? for help): d

    Partition number (1-4): 4

     

    Command (? for help): n

    Partition number (4-128, default 4): 4

    First sector (34-977105026, default = 245819800) or {+-}size{KMGTP}: 245821440

    Last sector (245821440-977105026, default = 977105026) or {+-}size{KMGTP}: +731283456

    Current type is 'Apple HFS/HFS+'

    Hex code or GUID (L to show codes, Enter = AF00): 0700

    Changed type of partition to 'Microsoft basic data'

     

    Command (? for help): p

    Disk /dev/rdisk0: 977105060 sectors, 465.9 GiB

    Logical sector size: 512 bytes

    Disk identifier (GUID): 00004400-3D96-0000-9F1E-0000D8270000

    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 1777 sectors (888.5 KiB)

     

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

       1              40          409639   200.0 MiB   EF00  EFI system partition

       2          409640       244550263   116.4 GiB   AF00  Customer

       3       244550264       245819799   619.9 MiB   AB00  Recovery HD

       4       245821440       977104895   348.7 GiB   0700  Microsoft basic data

     

    Command (? for help): w

     

    Final checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING

    PARTITIONS!!

     

    Do you want to proceed? (Y/N): y

    OK; writing new GUID partition table (GPT) to /dev/rdisk0.

    Warning: Devices opened with shared lock will not have their

    partition table automatically reloaded!

    Unable to open device '/dev/rdisk0' for writing! Errno is 1! Aborting write!

     

    Command (? for help): p

    Disk /dev/rdisk0: 977105060 sectors, 465.9 GiB

    Logical sector size: 512 bytes

    Disk identifier (GUID): 00004400-3D96-0000-9F1E-0000D8270000

    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 1777 sectors (888.5 KiB)

     

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

       1              40          409639   200.0 MiB   EF00  EFI system partition

       2          409640       244550263   116.4 GiB   AF00  Customer

       3       244550264       245819799   619.9 MiB   AB00  Recovery HD

       4       245821440       977104895   348.7 GiB   0700  Microsoft basic data

     

    Command (? for help): r

     

    Recovery/transformation command (? for help): o

     

    Disk size is 977105060 sectors (465.9 GiB)

    MBR disk identifier: 0x2097BA46

    MBR partitions:

     

    Number  Boot  Start Sector   End Sector   Status      Code

       1                     1       409639   primary     0xEE

       2                409640    244550263   primary     0xAF

       3             244550264    245819799   primary     0xAB

     

    Recovery/transformation command (? for help): h

     

    WARNING! Hybrid MBRs are flaky and dangerous! If you decide not to use one,

    just hit the Enter key at the below prompt and your MBR partition table will

    be untouched.

     

    Type from one to three GPT partition numbers, separated by spaces, to be

    added to the hybrid MBR, in sequence: 2 3 4

    Place EFI GPT (0xEE) partition first in MBR (good for GRUB)? (Y/N): y

     

    Creating entry for GPT partition #2 (MBR partition #2)

    Enter an MBR hex code (default AF): n

    Set the bootable flag? (Y/N): n  

     

    Creating entry for GPT partition #3 (MBR partition #3)

    Enter an MBR hex code (default AB): y

    Set the bootable flag? (Y/N): o

    Your option? (Y/N): n

     

    Creating entry for GPT partition #4 (MBR partition #4)

    Enter an MBR hex code (default 07): p

    Set the bootable flag? (Y/N): n

     

    Recovery/transformation command (? for help): n

    b use backup GPT header (rebuilding main)

    c load backup partition table from disk (rebuilding main)

    d use main GPT header (rebuilding backup)

    e load main partition table from disk (rebuilding backup)

    f load MBR and build fresh GPT from it

    g convert GPT into MBR and exit

    h make hybrid MBR

    i show detailed information on a partition

    l load partition data from a backup file

    m return to main menu

    o print protective MBR data

    p print the partition table

    q quit without saving changes

    t transform BSD disklabel partition

    v verify disk

    w write table to disk and exit

    x extra functionality (experts only)

    ? print this menu

     

    Recovery/transformation command (? for help): ?

    b use backup GPT header (rebuilding main)

    c load backup partition table from disk (rebuilding main)

    d use main GPT header (rebuilding backup)

    e load main partition table from disk (rebuilding backup)

    f load MBR and build fresh GPT from it

    g convert GPT into MBR and exit

    h make hybrid MBR

    i show detailed information on a partition

    l load partition data from a backup file

    m return to main menu

    o print protective MBR data

    p print the partition table

    q quit without saving changes

    t transform BSD disklabel partition

    v verify disk

    w write table to disk and exit

    x extra functionality (experts only)

    ? print this menu

     

    Recovery/transformation command (? for help): o

     

    Disk size is 977105060 sectors (465.9 GiB)

    MBR disk identifier: 0x2097BA46

    MBR partitions:

     

    Number  Boot  Start Sector   End Sector   Status      Code

       1                     1       409639   primary     0xEE

       2                409640    244550263   primary     0x01

       3             244550264    245819799   primary     0x01

       4             245821440    977104895   primary     0x01

     

    Recovery/transformation command (? for help): h

     

    WARNING! Hybrid MBRs are flaky and dangerous! If you decide not to use one,

    just hit the Enter key at the below prompt and your MBR partition table will

    be untouched.

     

    Type from one to three GPT partition numbers, separated by spaces, to be

    added to the hybrid MBR, in sequence: 2 3 4    

    Place EFI GPT (0xEE) partition first in MBR (good for GRUB)? (Y/N): y

     

    Creating entry for GPT partition #2 (MBR partition #2)

    Enter an MBR hex code (default AF): n

    Set the bootable flag? (Y/N): n

     

    Creating entry for GPT partition #3 (MBR partition #3)

    Enter an MBR hex code (default AB): n

    Set the bootable flag? (Y/N): n

     

    Creating entry for GPT partition #4 (MBR partition #4)

    Enter an MBR hex code (default 07): y

    Set the bootable flag? (Y/N): y

     

    Recovery/transformation command (? for help): o

     

    Disk size is 977105060 sectors (465.9 GiB)

    MBR disk identifier: 0x2097BA46

    MBR partitions:

     

    Number  Boot  Start Sector   End Sector   Status      Code

       1                     1       409639   primary     0xEE

       2                409640    244550263   primary     0x01

       3             244550264    245819799   primary     0x01

       4      *      245821440    977104895   primary     0x01

     

    Recovery/transformation command (? for help): w

     

    Final checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING

    PARTITIONS!!

     

    Do you want to proceed? (Y/N): n

    Aborting write of new partition table.

     

    Recovery/transformation command (? for help): o

     

    Disk size is 977105060 sectors (465.9 GiB)

    MBR disk identifier: 0x2097BA46

    MBR partitions:

     

    Number  Boot  Start Sector   End Sector   Status      Code

       1                     1       409639   primary     0xEE

       2                409640    244550263   primary     0x01

       3             244550264    245819799   primary     0x01

       4      *      245821440    977104895   primary     0x01

     

    Recovery/transformation command (? for help): h

     

    WARNING! Hybrid MBRs are flaky and dangerous! If you decide not to use one,

    just hit the Enter key at the below prompt and your MBR partition table will

    be untouched.

     

    Type from one to three GPT partition numbers, separated by spaces, to be

    added to the hybrid MBR, in sequence: 2 3 4

    Place EFI GPT (0xEE) partition first in MBR (good for GRUB)? (Y/N): y

     

    Creating entry for GPT partition #2 (MBR partition #2)

    Enter an MBR hex code (default AF): af

    Set the bootable flag? (Y/N): n

     

    Creating entry for GPT partition #3 (MBR partition #3)

    Enter an MBR hex code (default AB): af

    Set the bootable flag? (Y/N): n  

     

    Creating entry for GPT partition #4 (MBR partition #4)

    Enter an MBR hex code (default 07): n

    Set the bootable flag? (Y/N): n

     

    Recovery/transformation command (? for help): o

     

    Disk size is 977105060 sectors (465.9 GiB)

    MBR disk identifier: 0x2097BA46

    MBR partitions:

     

    Number  Boot  Start Sector   End Sector   Status      Code

       1                     1       409639   primary     0xEE

       2                409640    244550263   primary     0xAF

       3             244550264    245819799   primary     0xAF

       4             245821440    977104895   primary     0x01

     

    Recovery/transformation command (? for help): h

     

    WARNING! Hybrid MBRs are flaky and dangerous! If you decide not to use one,

    just hit the Enter key at the below prompt and your MBR partition table will

    be untouched.

     

    Type from one to three GPT partition numbers, separated by spaces, to be

    added to the hybrid MBR, in sequence: 2 3 4

    Place EFI GPT (0xEE) partition first in MBR (good for GRUB)? (Y/N): y

     

    Creating entry for GPT partition #2 (MBR partition #2)

    Enter an MBR hex code (default AF): af

    Set the bootable flag? (Y/N): n

     

    Creating entry for GPT partition #3 (MBR partition #3)

    Enter an MBR hex code (default AB): ab

    Set the bootable flag? (Y/N): n

     

    Creating entry for GPT partition #4 (MBR partition #4)

    Enter an MBR hex code (default 07): 07

    Set the bootable flag? (Y/N): y

     

    Recovery/transformation command (? for help): o

     

    Disk size is 977105060 sectors (465.9 GiB)

    MBR disk identifier: 0x2097BA46

    MBR partitions:

     

    Number  Boot  Start Sector   End Sector   Status      Code

       1                     1       409639   primary     0xEE

       2                409640    244550263   primary     0xAF

       3             244550264    245819799   primary     0xAB

       4      *      245821440    977104895   primary     0x07

     

    Recovery/transformation command (? for help): w

     

    Final checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING

    PARTITIONS!!

     

    Do you want to proceed? (Y/N): y

    OK; writing new GUID partition table (GPT) to /dev/rdisk0.

    Warning: Devices opened with shared lock will not have their

    partition table automatically reloaded!

    Unable to open device '/dev/rdisk0' for writing! Errno is 1! Aborting write!

     

    Recovery/transformation command (? for help): /

    b use backup GPT header (rebuilding main)

    c load backup partition table from disk (rebuilding main)

    d use main GPT header (rebuilding backup)

    e load main partition table from disk (rebuilding backup)

    f load MBR and build fresh GPT from it

    g convert GPT into MBR and exit

    h make hybrid MBR

    i show detailed information on a partition

    l load partition data from a backup file

    m return to main menu

    o print protective MBR data

    p print the partition table

    q quit without saving changes

    t transform BSD disklabel partition

    v verify disk

    w write table to disk and exit

    x extra functionality (experts only)

    ? print this menu

     

    Recovery/transformation command (? for help): o

     

    Disk size is 977105060 sectors (465.9 GiB)

    MBR disk identifier: 0x2097BA46

    MBR partitions:

     

    Number  Boot  Start Sector   End Sector   Status      Code

       1                     1       409639   primary     0xEE

       2                409640    244550263   primary     0xAF

       3             244550264    245819799   primary     0xAB

       4      *      245821440    977104895   primary     0x07

     

    Recovery/transformation command (? for help): o

     

    Disk size is 977105060 sectors (465.9 GiB)

    MBR disk identifier: 0x2097BA46

    MBR partitions:

     

    Number  Boot  Start Sector   End Sector   Status      Code

       1                     1       409639   primary     0xEE

       2                409640    244550263   primary     0xAF

       3             244550264    245819799   primary     0xAB

       4      *      245821440    977104895   primary     0x07

     

    Recovery/transformation command (? for help): o

     

    Disk size is 977105060 sectors (465.9 GiB)

    MBR disk identifier: 0x2097BA46

    MBR partitions:

     

    Number  Boot  Start Sector   End Sector   Status      Code

       1                     1       409639   primary     0xEE

       2                409640    244550263   primary     0xAF

       3             244550264    245819799   primary     0xAB

       4      *      245821440    977104895   primary     0x07

     

    Recovery/transformation command (? for help): h

     

    WARNING! Hybrid MBRs are flaky and dangerous! If you decide not to use one,

    just hit the Enter key at the below prompt and your MBR partition table will

    be untouched.

     

    Type from one to three GPT partition numbers, separated by spaces, to be

    added to the hybrid MBR, in sequence: 2 3 4

    Place EFI GPT (0xEE) partition first in MBR (good for GRUB)? (Y/N): y

     

    Creating entry for GPT partition #2 (MBR partition #2)

    Enter an MBR hex code (default AF):

    Set the bootable flag? (Y/N): n

     

    Creating entry for GPT partition #3 (MBR partition #3)

    Enter an MBR hex code (default AB):

    Set the bootable flag? (Y/N): n

     

    Creating entry for GPT partition #4 (MBR partition #4)

    Enter an MBR hex code (default 07):

    Set the bootable flag? (Y/N): y

     

    Recovery/transformation command (? for help): o

     

    Disk size is 977105060 sectors (465.9 GiB)

    MBR disk identifier: 0x2097BA46

    MBR partitions:

     

    Number  Boot  Start Sector   End Sector   Status      Code

       1                     1       409639   primary     0xEE

       2                409640    244550263   primary     0xAF

       3             244550264    245819799   primary     0xAB

       4      *      245821440    977104895   primary     0x07

     

    Recovery/transformation command (? for help): w

     

    Final checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING

    PARTITIONS!!

     

    Do you want to proceed? (Y/N): y

    OK; writing new GUID partition table (GPT) to /dev/rdisk0.

    Warning: Devices opened with shared lock will not have their

    partition table automatically reloaded!

    Unable to open device '/dev/rdisk0' for writing! Errno is 1! Aborting write!

     

    Recovery/transformation command (? for help): o

     

    Disk size is 977105060 sectors (465.9 GiB)

    MBR disk identifier: 0x2097BA46

    MBR partitions:

     

    Number  Boot  Start Sector   End Sector   Status      Code

       1                     1       409639   primary     0xEE

       2                409640    244550263   primary     0xAF

       3             244550264    245819799   primary     0xAB

       4      *      245821440    977104895   primary     0x07

     

    Recovery/transformation command (? for help): ?

    b use backup GPT header (rebuilding main)

    c load backup partition table from disk (rebuilding main)

    d use main GPT header (rebuilding backup)

    e load main partition table from disk (rebuilding backup)

    f load MBR and build fresh GPT from it

    g convert GPT into MBR and exit

    h make hybrid MBR

    i show detailed information on a partition

    l load partition data from a backup file

    m return to main menu

    o print protective MBR data

    p print the partition table

    q quit without saving changes

    t transform BSD disklabel partition

    v verify disk

    w write table to disk and exit

    x extra functionality (experts only)

    ? print this menu

     

    Recovery/transformation command (? for help): o

     

    Disk size is 977105060 sectors (465.9 GiB)

    MBR disk identifier: 0x2097BA46

    MBR partitions:

     

    Number  Boot  Start Sector   End Sector   Status      Code

       1                     1       409639   primary     0xEE

       2                409640    244550263   primary     0xAF

       3             244550264    245819799   primary     0xAB

       4      *      245821440    977104895   primary     0x07

     

    Recovery/transformation command (? for help): ^C

    Majas-MBP:~ Buckets$

  • by Loner T,Solvedanswer

    Loner T Loner T Sep 28, 2016 9:24 PM in response to Wondercube
    Level 7 (24,869 points)
    Safari
    Sep 28, 2016 9:24 PM in response to Wondercube

    Wondercube wrote:

     

    Yosemite. I'm posting the full thing.

     

    NOTE: Write test failed with error number 1. It will be impossible to save

    changes to this disk's partition table!

    You may need to deactivate System Integrity Protection to use this program. See

    https://www.quora.com/How-do-I-turn-off-the-rootless-in-OS-X-El-Capitan-10-11

    for more information.

     

    You have either El Capitan or Sierra. Please see About System Integrity Protection on your Mac - Apple Support .  You will need to disable SIP by booting into Local Recovery (using Command+R - not Internet Recovery) and click on Utilities -> Terminal and type

     

    csrutil status

    csrutil disable

    csrutil status

     

    Boot normally and check the output of csrutil status which should now be disabled.

     

    Unable to open device '/dev/rdisk0' for writing! Errno is 1! Aborting write!

    This error confirms that SIP is enabled. OS X Automatic Updates, if enabled, should give you the latest released OS X version, which is currently Sierra.

     

     

    Creating entry for GPT partition #2 (MBR partition #2)

    Enter an MBR hex code (default AF): n

    Set the bootable flag? (Y/N): n 

     

    Creating entry for GPT partition #3 (MBR partition #3)

    Enter an MBR hex code (default AB): y

    Set the bootable flag? (Y/N): o

    Your option? (Y/N): n

     

    Creating entry for GPT partition #4 (MBR partition #4)

    Enter an MBR hex code (default 07): p

    Set the bootable flag? (Y/N): n

    These are incorrect. Please see the Q&A section in the link for appropriate values.

     

    Here is sample Q&A for this section. Please notice the Press Enter/Return.

    Place EFI GPT (0xEE) partition first in MBR (good for GRUB)? (Y/N): Y

    Creating entry for GPT partition #2 (MBR partition #2)

    Enter an MBR hex code (default AF): Press Enter/Return

    Set the bootable flag? (Y/N): N

    Creating entry for GPT partition #3 (MBR partition #3)

    Enter an MBR hex code (default AB): Press Enter/Return

    Set the bootable flag? (Y/N): N

    Creating entry for GPT partition #4 (MBR partition #4)

    Enter an MBR hex code (default 07): Press Enter/Return

    Set the bootable flag? (Y/N): Y

  • by Wondercube,

    Wondercube Wondercube Sep 28, 2016 9:25 PM in response to Loner T
    Level 1 (4 points)
    Windows Software
    Sep 28, 2016 9:25 PM in response to Loner T

    IF I COULD KISS YOU I WOULD! ALL FIXED NOW! You have no idea how much I appreciate your time for this! Thank you, Thank you, THANK YOU!

  • by Loner T,

    Loner T Loner T Sep 29, 2016 4:40 AM in response to Wondercube
    Level 7 (24,869 points)
    Safari
    Sep 29, 2016 4:40 AM in response to Wondercube

    Excellent. . Please back up OS X, Windows and create a Windows System Restore point.

Previous Page 2