How to convert windows LDM to GPT without loosing data

I was using boot camp on my Late 2011 MacBook Pro and I needed more space, so I followed this tutorial https://www.partitionwizard.com/partitionmagic/reszie-boot-camp-partition.html

but when I combined the 2 partitions in windows 10, it said to restart it, so I did, but it kept BSOD with the error message relating to an invalid boot partition. So I thought so what, there was nothing really on there ill go back to using OSX, but when I went to select the boot drive using option at bootup, it wasn't there.


I went into Target disk mode and hooked it up to a mac mini I have and the whole drive is now Windows_LDM partition.


Does anyone know how to convert the main partition or the entire drive back to GPT so I can boot into OSX again without losing data? I don't care about the windows partition, only the OSX partition is important. Or make it so I can access the data on it and at least create a backup I can restore from later, or just get the important stuff off/


I have no backups or anything. I do have the mac mini to use if need be. I also have a windows PC running windows 10


I have tried booting into recovery mode using command + R but only get internet recovery. I removed the original HDD and installed a 240gb SSD so I don't know if there even is a recovery partition on it. No recovery drive shows up in the boot menu either.


Specs

Late 2011 MBP 15" A1286

Core I7 2.2ghz

12gb RAM

OSX High Sierra or just Sierra, Im not sure if I upgraded to HS


I'm pretty good with computers, but I'm not the best with terminal and its commands.


Also, I know I should back up my computer, but I didn't think it would have damaged my OSX partition when resizing it. If there is no way to do it without reinstalling, then it is what it is. I would like to save the data, but if that's not possible its fine.

MacBook Pro, macOS High Sierra (10.13), null

Posted on Aug 12, 2018 9:09 AM

Reply

Similar questions

30 replies

Aug 12, 2018 1:20 PM in response to cam2363

We are going to destroy the current GPT and rebuild it from scratch.


  • Destroy the old GPT, which also destroys the MBR
    • diskutil unmountDisk disk2
    • gpt destroy /dev/disk2
  • Create a blank new GPT and MBR
    • gpt create -f /dev/disk2
    • diskutil unmountDisk disk2
  • Create the GPT slices (do not type text like this)


sudo gdisk /dev/disk2

n (New)

1 (GPT 1 - EFI)

40 (Start address)

409639 (End address)

EF00 (EFI)

n (New)

2 (GPT 2)

409640 (Start address)

342206511 (End address)

AF0A

n (New)

3 (GPT 3)

342206512 (Start address)

369551359 (End address)

AF0A

n (New)

4 (GPT 4)

369551360 (Start address)

468860927 (End address)

0700 (Windows)

p (print)

w (write)

y (Confirm the write)

q (quit, if necessary)


  • Show the GPT

    gpt -vv -r show /dev/disk0

  • We can correct the last entry as it is non-critical.


Please post the entire Terminal session with all the commands and outputs, before we go further.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How to convert windows LDM to GPT without loosing data

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.