sina370

Q: problem with partition map preven from booting, after bootcamp and change partition table map

Hi,

 

I was trying to install windows using bootcamp on my macbook pro 2011, however I messed up with my partition table map, and now I'm not able to boot my mac os, the disk utility cant repair my disk and i dont have back up. i really need my data. I'm able to boot into GParted and use gdisk, how can i fix back the partition table map so that i can boot back to my Mac OSx.

 

thanks

MacBook Pro, OS X El Capitan (10.11.6)

Posted on Aug 15, 2016 7:13 AM

Close

Q: problem with partition map preven from booting, after bootcamp and change partition table map

  • All replies
  • Helpful answers

Page 1 Next
  • by sina370,

    sina370 sina370 Aug 15, 2016 7:45 AM in response to sina370
    Level 1 (13 points)
    Windows Software
    Aug 15, 2016 7:45 AM in response to sina370

    -bash-3.2# fdisk /dev/disk0

    Disk: /dev/disk0 geometry: 60801/255/63 [976773168 sectors]

    Signature: 0xAA55

             Starting       Ending

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

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

    1: EE 1023 254  63 - 1023 254  63 [         1 -  976773167] <Unknown ID>

    2: 00    0   0   0 -    0   0   0 [         0 -          0] unused     

    3: 00    0   0   0 -    0   0   0 [         0 -          0] unused     

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

    -bash-3.2#

    -bash-3.2# diskutil list

    /dev/disk0

       #:                       TYPE NAME                    SIZE       IDENTIFIER

       0:      GUID_partition_scheme                        *500.1 GB   disk0

       1:                        EFI                         209.7 MB   disk0s1

       2:          Apple_CoreStorage                         372.0 GB   disk0s2

       3:                 Apple_Boot Boot OS X               650.0 MB   disk0s3

       4:                  Apple_HFS Untitled                127.1 GB   disk0s4

    /dev/disk1

       #:                       TYPE NAME                    SIZE       IDENTIFIER

       0:     Apple_partition_scheme                        *1.4 GB     disk1

       1:        Apple_partition_map                         30.7 KB    disk1s1

       2:         Apple_Driver_ATAPI                         2.0 KB     disk1s2

       3:                  Apple_HFS Mac OS X Base System    1.4 GB     disk1s3

    /dev/disk2

       #:                       TYPE NAME                    SIZE       IDENTIFIER

       0:                            untitled               *524.3 KB   disk2

    /dev/disk3

       #:                       TYPE NAME                    SIZE       IDENTIFIER

       0:                            untitled               *524.3 KB   disk3

    /dev/disk4

       #:                       TYPE NAME                    SIZE       IDENTIFIER

       0:                            untitled               *524.3 KB   disk4

    /dev/disk5

       #:                       TYPE NAME                    SIZE       IDENTIFIER

       0:                            untitled               *524.3 KB   disk5

    /dev/disk6

       #:                       TYPE NAME                    SIZE       IDENTIFIER

       0:                            untitled               *524.3 KB   disk6

    /dev/disk7

       #:                       TYPE NAME                    SIZE       IDENTIFIER

       0:                            untitled               *6.3 MB     disk7

    /dev/disk8

       #:                       TYPE NAME                    SIZE       IDENTIFIER

       0:                            untitled               *2.1 MB     disk8

    /dev/disk9

       #:                       TYPE NAME                    SIZE       IDENTIFIER

       0:                            untitled               *1.0 MB     disk9

    /dev/disk10

       #:                       TYPE NAME                    SIZE       IDENTIFIER

       0:                            untitled               *524.3 KB   disk10

    /dev/disk11

       #:                       TYPE NAME                    SIZE       IDENTIFIER

       0:                            untitled               *524.3 KB   disk11

    /dev/disk12

       #:                       TYPE NAME                    SIZE       IDENTIFIER

       0:                            untitled               *1.0 MB     disk12

    /dev/disk13

       #:                       TYPE NAME                    SIZE       IDENTIFIER

       0:     FDisk_partition_scheme                        *2.1 GB     disk13

       1:                 DOS_FAT_32 MYLINUXLIVE             2.1 GB     disk13s1

    /dev/disk14

       #:                       TYPE NAME                    SIZE       IDENTIFIER

       0:                  Apple_HFS MacintoshHD            *371.7 GB   disk14

    -bash-3.2#

    -bash-3.2#

    -bash-3.2# fdisk

    usage: fdisk [-ieu] [-f mbrboot] [-c cyl -h head -s sect] [-S size] [-r] [-a style] disk

      -i: initialize disk with new MBR

      -u: update MBR code, preserve partition table

      -e: edit MBRs on disk interactively

      -f: specify non-standard MBR template

      -chs: specify disk geometry

      -S: specify disk size

      -r: read partition specs from stdin (implies -i)

      -a: auto-partition with the given style

      -d: dump partition table

      -y: don't ask any questions

      -t: test if disk is partitioned

    `disk' is of the form /dev/rdisk0.

    auto-partition styles:

      boothfs     8Mb boot plus HFS+ root partition (default)

      hfs         Entire disk as one HFS+ partition

      dos         Entire disk as one DOS partition

      raid        Entire disk as one 0xAC partition

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

    gpt show: unable to open device 'l': No such file or directory

          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  726609000      2  GPT part - 53746F72-6167-11AA-AA11-00306543ECAC

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

      728288176  248222808      4  GPT part - 48465300-0000-11AA-AA11-00306543ECAC

      976510984     262151        

      976773135         32         Sec GPT table

      976773167          1         Sec GPT header

  • by Loner T,

    Loner T Loner T Aug 15, 2016 3:24 PM in response to sina370
    Level 7 (23,663 points)
    Safari
    Aug 15, 2016 3:24 PM in response to sina370

    Run diskutil repairDisk disk0 and reboot and hold Alt/Option key. What are the available selections?

  • by sina370,

    sina370 sina370 Aug 15, 2016 6:48 PM in response to Loner T
    Level 1 (13 points)
    Windows Software
    Aug 15, 2016 6:48 PM in response to Loner T

    -bash-3.2# diskutil repairDisk disk0

    Repairing the partition map might erase disk0s1, proceed? (y/N) y

    Started partition map repair on disk0

    Checking prerequisites

    Checking the partition list

    Checking for an EFI system partition

    Checking the EFI system partition's size

    Checking the EFI system partition's file system

    Checking all HFS data partition loader spaces

    Reviewing boot support loaders

    Checking Core Storage Physical Volume partitions

    Checking storage system

    Problems were encountered during repair of the partition map

    Error: -69716: Storage system verify or repair failed

    Underlying error: 1: POSIX reports: Operation not permitted

    -bash-3.2#

     

     

    when OSx wants to boot , the porhibited sign will comes up

     

    when I use disk utility in online recovery to repair disk, it will show problem with partition map table prevent boot.

     

    and when I get option key, it will shows up

     

    thanks, please save me

  • by Loner T,Apple recommended

    Loner T Loner T Aug 16, 2016 6:17 AM in response to sina370
    Level 7 (23,663 points)
    Safari
    Aug 16, 2016 6:17 AM in response to sina370

    sina370 wrote:

     

     

    however I messed up with my partition table map, and now I'm not able to boot my mac os

    Please describe how you 'messed' with your partition table. Post the output of diskutil cs list.

     

    You may also have to install/upgrade to the same version as on your internal disk, using How to install OS X on an external drive connected to your Mac - Apple Support .

  • by sina370,

    sina370 sina370 Aug 15, 2016 8:01 PM in response to Loner T
    Level 1 (13 points)
    Windows Software
    Aug 15, 2016 8:01 PM in response to Loner T

    I wanted to convert GPT to MBR using gdisk, and when I write to partitions, using expert and then n and w, after boot up the problem comes up.

     

    14037671_10154386273373665_1688975933_o.jpg

     

    can i use time machine from online recovery, to back up my stuff ? and do the upgrade ?

  • by sina370,

    sina370 sina370 Aug 15, 2016 11:33 PM in response to Loner T
    Level 1 (13 points)
    Windows Software
    Aug 15, 2016 11:33 PM in response to Loner T

    I must mention that, I'm able to boot into a live Gparted USB to use the testDisk and gdisk, if there is a way to recover the partition map tabel

  • by Loner T,Solvedanswer

    Loner T Loner T Aug 16, 2016 6:17 AM in response to sina370
    Level 7 (23,663 points)
    Safari
    Aug 16, 2016 6:17 AM in response to sina370

    sina370 wrote:

     

    I wanted to convert GPT to MBR using gdisk, and when I write to partitions, using expert and then n and w, after boot up the problem comes up.

    This creates a new protective MBR, and removes the BC Assistant-created Hybrid MBR. This should not prevent OS X from booting.

     

     

    can i use time machine from online recovery, to back up my stuff ? and do the upgrade ?

    If you do not have a functional OS X, your backup will not contain anything reasonable. Do you have an external disk on which you can install OS X using the link I provided earlier?

  • by Loner T,

    Loner T Loner T Aug 16, 2016 3:50 AM in response to sina370
    Level 7 (23,663 points)
    Safari
    Aug 16, 2016 3:50 AM in response to sina370

    sina370 wrote:

     

    I must mention that, I'm able to boot into a live Gparted USB to use the testDisk and gdisk, if there is a way to recover the partition map tabel

    We may need to disable FileVault2 to check the underlying JHFS+ file system.

  • by sina370,

    sina370 sina370 Aug 16, 2016 4:32 AM in response to Loner T
    Level 1 (13 points)
    Windows Software
    Aug 16, 2016 4:32 AM in response to Loner T

    the problem comes out when it was creating new protective MBR and when it was trying to write to partition table, it couldn't finish the operation.

     

    I do have a external hard drive, But i have to transfer all the data on, into another PC first.

  • by sina370,

    sina370 sina370 Aug 16, 2016 4:44 AM in response to Loner T
    Level 1 (13 points)
    Windows Software
    Aug 16, 2016 4:44 AM in response to Loner T

    how to disable FileVault2 ?

  • by Loner T,

    Loner T Loner T Aug 16, 2016 4:56 AM in response to sina370
    Level 7 (23,663 points)
    Safari
    Aug 16, 2016 4:56 AM in response to sina370
  • by sina370,

    sina370 sina370 Aug 16, 2016 5:59 AM in response to Loner T
    Level 1 (13 points)
    Windows Software
    Aug 16, 2016 5:59 AM in response to Loner T

    alright, I install new Os x on my external hard drive and i can access to my MachintochHD , I can see my files as well, should I back up it and  Install new Os x on my internal hard drive or am i able to fix the partition map?

  • by sina370,

    sina370 sina370 Aug 16, 2016 6:13 AM in response to Loner T
    Level 1 (13 points)
    Windows Software
    Aug 16, 2016 6:13 AM in response to Loner T

    I disable FileVault as well

  • by Loner T,

    Loner T Loner T Aug 16, 2016 6:40 AM in response to sina370
    Level 7 (23,663 points)
    Safari
    Aug 16, 2016 6:40 AM in response to sina370

    Please post the output of

     

    diskutil list

    diskutil cs list

    sudo gpt -vv -r show /dev/disk0

Page 1 Next