PEZHI

Q: Recovery Request!!!

In windows 7 which was on my BOOTCAMP, I used disk management to shrink Drive "C:\" and then creating one more partition. It caused the startup failure of both MAC OS and WINDOWS!

unfortunately even when I used Internet recovery and then Disk utility, I couldn't access to my partitiona and backup.

Disk Utility indicates partitions Unmounted and "windows_DLM" format type!!!

I'm Certain that when I used to shrink my BootCamp partition, I did nothing with MAC Partition.

Is there any scenario to recover data on my partitions?

and if the answer is yes, what are the scenarios?

please tell me How can I do to not loosing my data?

I read some articles about TestDisk program which is a recovery software but now I have no OS to Start from!!!

and an article describing using "dd" command in Terminal to create image, But actually I don't realize what can I do and what's the solution for such a problem occured!

iMac, iOS 10

Posted on Sep 25, 2016 8:43 PM

Close

Q: Recovery Request!!!

  • All replies
  • Helpful answers

first Previous Page 4 of 5 last Next
  • by Loner T,

    Loner T Loner T Oct 15, 2016 5:04 PM in response to PEZHI
    Level 7 (24,770 points)
    Safari
    Oct 15, 2016 5:04 PM in response to PEZHI

    Using the following steps, we need to correct GPT1.

     

    sudo gdisk /dev/disk0

    x (Experts Menu)

    l (Character 'L' - set sector alignment)

    1 (digit 1 - set alignment to 1 sector)

    m (Main Menu)

    d (delete)

    1 (GPT 1)

    n (New)

    1 (Partition 1)

    40 (Start)

    409639 (End)

    EF00 (EFI)

    p

    w

    y

     

    Check that there is not gap between GPT1 and GPT2 in the GPT command.

     

    Can you see OS X files in Finder on your internal disk?

  • by PEZHI,

    PEZHI PEZHI Oct 15, 2016 5:27 PM in response to Loner T
    Level 1 (8 points)
    Mac OS X
    Oct 15, 2016 5:27 PM in response to Loner T

    The following steps create a new GPT and overwrite the current MBR. GPT Fdisk (Gdisk) uses single character commands. The text in parentheses is for explanation purposes.

    sudo gdisk /dev/disk0

    ...

    Since you are booted from a different disk, post the output of

    diskutil list

    ...

    After this process, Macintosh HD appeared in finder and even in startup menu (when we press Option/Alt Key) and All my files which were in Macintosh HD are available in finder.

  • by PEZHI,

    PEZHI PEZHI Oct 15, 2016 5:31 PM in response to Loner T
    Level 1 (8 points)
    Mac OS X
    Oct 15, 2016 5:31 PM in response to Loner T

    The following steps create a new GPT and overwrite the current MBR. GPT Fdisk (Gdisk) uses single character commands. The text in parentheses is for explanation purposes.

    sudo gdisk /dev/disk0

    ...

    Since you are booted from a different disk, post the output of

    diskutil list

    ...

    After this process, Macintosh HD appeared in finder and even in startup menu (when we press Option/Alt Key) and All my fileswhich were in Macintosh HD are available in finder.

    With these explanations, is it necessary to do this procedure? (Using the following steps, we need to correct GPT1.)

  • by Loner T,

    Loner T Loner T Oct 15, 2016 5:35 PM in response to PEZHI
    Level 7 (24,770 points)
    Safari
    Oct 15, 2016 5:35 PM in response to PEZHI

    Yes, because the EFI partition is not correct. Compare the following GPT1 entry to what you currently have. If we do not correct it, you will have OS X issues later.

     

    sudo gpt -vv -r show /dev/disk0

    Password:

    gpt show: /dev/disk0: mediasize=512110190592; sectorsize=512; blocks=1000215216

    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 1000215215

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

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

       744355800          40        

       744355840   255858688      4  GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7

      1000214528         655        

      1000215183          32         Sec GPT table

      1000215215           1         Sec GPT header

     

  • by PEZHI,

    PEZHI PEZHI Oct 15, 2016 5:38 PM in response to Loner T
    Level 1 (8 points)
    Mac OS X
    Oct 15, 2016 5:38 PM in response to Loner T

    Sure, You are right. I'll do that

  • by PEZHI,

    PEZHI PEZHI Oct 15, 2016 5:43 PM in response to Loner T
    Level 1 (8 points)
    Mac OS X
    Oct 15, 2016 5:43 PM in response to Loner T

    I did it (Using the following steps, we need to correct GPT1) Dear Loner T, How do I check this? (Check that there is not gap between GPT1 and GPT2 in the GPT command)

  • by Loner T,

    Loner T Loner T Oct 15, 2016 5:45 PM in response to PEZHI
    Level 7 (24,770 points)
    Safari
    Oct 15, 2016 5:45 PM in response to PEZHI

    Please post the output of

     

    sudo gpt -vv -r show /dev/disk0

     

    Do you see all your files in OSX Finder? Do you also see files in the Bootcamp volume?

  • by PEZHI,

    PEZHI PEZHI Oct 15, 2016 5:50 PM in response to Loner T
    Level 1 (8 points)
    Mac OS X
    Oct 15, 2016 5:50 PM in response to Loner T

    Last login: Sat Oct 15 17:39:18 on ttys000

    PEZHMANs-iMac:~ pezhman$ sudo gpt -vv -r show /dev/disk0

    Password:

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

    gpt show: /dev/disk0: PMBR at sector 0

    gpt show: /dev/disk0: Pri GPT at sector 1

    gpt show: /dev/disk0: Sec GPT at sector 1953525167

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

      1562900480  370143232      4  GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7

      1933043712    20481423      

      1953525135          32        Sec GPT table

      1953525167          1        Sec GPT header

    PEZHMANs-iMac:~ pezhman$

     

    Yes I can see all my files in OS X Finder as well as the Bootcamp volume.

  • by Loner T,Solvedanswer

    Loner T Loner T Oct 15, 2016 5:59 PM in response to PEZHI
    Level 7 (24,770 points)
    Safari
    Oct 15, 2016 5:59 PM in response to PEZHI

    Please try to boot OS X from your internal disk and test. If it works, we can then fix Windows in the internal disk.

  • by PEZHI,

    PEZHI PEZHI Oct 15, 2016 6:24 PM in response to Loner T
    Level 1 (8 points)
    Mac OS X
    Oct 15, 2016 6:24 PM in response to Loner T

    Wowwwwwwwwww!

    I booted OS X from my internal disk and took a brief look and everything seems to be OK!

    I can't believe what I see! you did something unbelievable & extraordinary.

    You saved my Life because almost all of my works were in my Macintosh HD.

    Thanks, Thanks, Thanks and Again Thanks

  • by Loner T,

    Loner T Loner T Oct 15, 2016 6:34 PM in response to PEZHI
    Level 7 (24,770 points)
    Safari
    Oct 15, 2016 6:34 PM in response to PEZHI

    Please find a large enough external disk, and create a Time Machine backup.

     

    After it completes, we can correct Windows and look to repair the disk to see if it can get the Recovery HD back.

  • by PEZHI,

    PEZHI PEZHI Oct 15, 2016 6:41 PM in response to Loner T
    Level 1 (8 points)
    Mac OS X
    Oct 15, 2016 6:41 PM in response to Loner T

    Sure, Certainly.

    I'll create a Time Machine backup using a TM Capsule 3TB and come back.

    Cheers

  • by PEZHI,

    PEZHI PEZHI Oct 17, 2016 3:39 PM in response to Loner T
    Level 1 (8 points)
    Mac OS X
    Oct 17, 2016 3:39 PM in response to Loner T

    I completed creating a Time Machine Backup, Now It's ready to continue the process.

  • by Loner T,

    Loner T Loner T Oct 17, 2016 3:44 PM in response to PEZHI
    Level 7 (24,770 points)
    Safari
    Oct 17, 2016 3:44 PM in response to PEZHI

    Boot into Internet Recovery and click on Utilities -> Terminal and run

     

    diskutil repairDisk disk0

     

    Use Copy (Command+C) to copy the output, quit Terminal, start Safari, and Paste (Command+V) the output.

  • by PEZHI,

    PEZHI PEZHI Oct 17, 2016 4:22 PM in response to Loner T
    Level 1 (8 points)
    Mac OS X
    Oct 17, 2016 4:22 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

    Adjusting partition map to fit whole disk as required

    Checking for an EFI system partition

    Checking the EFI system partition's size

    Checking the EFI system partition's file system

    Repairing the EFI system partition's file system

    Creating a new EFI system partition

    Problems were encountered during repair of the partition map

    Error: -69764: Couldn't repair the partition map because a new EFI system partition couldn't be created

    -bash-3.2#

first Previous Page 4 of 5 last Next