-
All replies
-
Helpful answers
-
Aug 23, 2015 12:55 PM in response to dgnhlpby Loner T,Please post the output of the following Terminal commands.
diskutil list
diskutil cs list
sudo gpt -vv -r show /dev/disk0
sudo fdisk /dev/disk0
The "sudo" commands will prompt for your password, and it will not be echoed back. You may also see a warning about improper use of "sudo" and potential data loss due to "abuse" of the command.
-
Aug 23, 2015 12:57 PM in response to Loner Tby dgnhlp,I don't have access to OSX. is there a way i can get to a mac terminal without booting into OSX?
-
Aug 23, 2015 1:05 PM in response to dgnhlpby Loner T,Boot into Internet Recovery (OS X: About OS X Recovery - Apple Support) and OS X: Installing OS X on an external volume - Apple Support and boot from the external disk. If you have a second Mac, you can also Share files between two computers with target disk mode - Apple Support .
-
Aug 23, 2015 1:40 PM in response to Loner Tby dgnhlp,I dont have an external disk or another mac. And when I try to boot into recovery mode I get an error code -5101r.
Is there windows equivalent commands I can run in the CLI that do the same as those?
-
Aug 23, 2015 3:25 PM in response to dgnhlpby Loner T,Install GPT Fdisk (http://sourceforge.net/projects/gptfdisk/) on the Windows side and run gdisk32.exe from an elevated CMD prompt window. When prompted, use '0:' as the disk (zero-colon without the quotes) and post the output of 'p' command.
-
-
-
Aug 23, 2015 5:58 PM in response to dgnhlpby Loner T,1. You do not have a GPT 2 entry which is typically OS X. GPT2 should start at 409640 and end at 195715463.
2. Do not modify the GPT or MBR, it will lead to catastrophic failures.
3. Type 'r' (recovery).
4. Type 'o' (show hybrid MBR)
5. Post the output.
-
-
Aug 23, 2015 6:54 PM in response to dgnhlpby Loner T,Using both the GPT and Hybrid MBR to reconstruct the full GPT gives us the following disk layout. Please verify the numbers before we start the fix.
GPT Type PartitionType Code Start End MBR Start End GPT Size MBR Size GPT-MBR Diff 1 EFI EF00 40 409639 409600 2 OSX AF00 409640 195715463 195305824 3 Recovery HD AB00 195715464 196984999 2 195715464 196984999 1269536 1269536 0 4 Shared? 700 3 196986880 390836223 193849344 193849344 5 BOOTCAMP 700 390836224 976773119 4 390836224 976773119 585936896 585936896 0 EFI - 200MB, OSX - 93GB, Recovery HD - 605MB, Shared - 92GB, Bootcamp - 279Gb.
-
Aug 23, 2015 9:16 PM in response to Loner Tby dgnhlp,yes that looks correct. the "Shared?" is the partition i created for linux which ended up now having windows 7 on and is the only working partition (although it does take forever to start to boot into it, sits on a gray screen for about a minute or two before it loads)
-
Aug 24, 2015 5:49 AM in response to dgnhlpby Loner T,We are going to
1. recreate the missing GPT 2 entry.
2. delete GPT 4.
3. create a new GPT 4 (Shared?). This is not your Bootcamp as you can tell by the start/end disk addresses.
4. create a new GPT 5 (BOOTCAMP). This is the bootable entry in your MBR as shown by the start/end disk addresses.
Your MBR will be untouched leaving Windows bootable.
You need to use the following steps. If you see any error messages during the following steps, please stop and post back here with the error message. The following steps have values from your GPT and MBR output (please verify for any typing errors). The text in parentheses is for informational purpose to describe theaction being taken. Gdisk has one-character commands except when entering numbers.
Rebuild GPT entries using start/end disk addresses
- P (print the full list of parts)
- N (new part)
- 2 (part 2 - OS X)
- 409640 ( - Start offset in sectors or the start point for OSX part)
- 195715463 ( - End offset)
- AF00 (HFS+ part type)
- D (delete)
- 4 (part 4 - old Bootcamp)
- N (new part)
- 4 ( Shared part)
- 196986880 ( - Start offset in sectors or the start point for Shared part)
- 390836223 ( - End offset)
- 0700 (Microsoft Basic Data)
- N (new part)
- 5 ( Bootcamp part)
- 390836224 ( - Start offset in sectors or the start point for Bootcamp part)
- 976773119 ( - End offset)
- 0700 (Microsoft Basic Data)
- P (print list of all parts just to see what changes will be made)
- W (Write the new GPT)
- Y (Yes! really write the new GPT)
This will delete and re-write the GPT partition info for /dev/disk0s2, /dev/disk0s4 and /dev/disk0s5.
You should now be able to see OSX and boot into it. Once you are able to verify OSX we can do the next step.
-
-
Aug 24, 2015 9:50 AM in response to dgnhlpby Loner T,You can ignore the default value that Gdisk shows. Use AF00, since this a new GPT 2 and is pointing to HFS+.