Q: Repair bootcamp after installing Linux
Hi,
So prior to all this I had Windows 10 running in parallel with OS X which worked fine. I had to install Ubuntu though, so I shrank the OS X partition and proceeded to install Ubuntu. During that process I created two partitions (the main Ubuntu one and a swap). Anyway, once I was done with all this and wanted to go back to the Windows partition, Windows gave me error 0xc000000e. This seems to be related to the MBR and I've attempted to fix it by following the instructions in this thread https://discussions.apple.com/thread/4144252?start=0&tstart=0 but that didn't really work. I fully admit that I don't understand all that happened in that thread so I did just wrongly assume that it might work for me too.
Based on what was asked of the poster in the link above, i'm attaching the output to a couple of commands.
sudo gpt -r -vv show disk0
gpt show: disk0: mediasize=1000555581440; sectorsize=512; blocks=1954210120 gpt show: disk0: Suspicious MBR at sector 0 gpt show: disk0: Pri GPT at sector 1 gpt show: disk0: Sec GPT at sector 1954210119 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 1078638336 2 GPT part - 53746F72-6167-11AA-AA11-00306543ECAC 1079047976 1269536 3 GPT part - 426F6F74-0000-11AA-AA11-00306543ECAC 1080317512 440 1080317952 32000000 4 GPT part - 0657FD6D-A4AB-43C4-84E5-0933C84B4F4F 1112317952 259184640 7 GPT part - 0FC63DAF-8483-4772-8E79-3D69D8477DE4 1371502592 581785600 5 GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7 1953288192 921600 6 GPT part - DE94BBA4-06D1-4D40-A16A-BFD50179D6AC 1954209792 295 1954210087 32 Sec GPT table 1954210119 1 Sec GPT header
sudo fdisk /dev/disk0
Disk: /dev/disk0 geometry: 121643/255/63 [1954210120 sectors] Signature: 0xAA55 Starting Ending #: id cyl hd sec - cyl hd sec [ start - size] ------------------------------------------------------------------------ 1: EE 0 0 2 - 1023 254 63 [ 1 - 1371502591] <Unknown ID> *2: 07 1023 254 63 - 1023 254 63 [1371502592 - 581785600] HPFS/QNX/AUX 3: 00 0 0 0 - 0 0 0 [ 0 - 0] unused 4: 00 0 0 0 - 0 0 0 [ 0 - 0] unused
This is the modified output after attempting the instructions in the link above. The original output (and I hope I didn't screw it up much) is below.
Disk: /dev/disk0 geometry: 121643/255/63 [1954210120 sectors] Signature: 0xAA55 Starting Ending #: id cyl hd sec - cyl hd sec [ start - size] ------------------------------------------------------------------------ 1: EE 0 0 1 - 1023 254 63 [ 1 - 409639] <Unknown ID> *2: DA 1023 254 63 - 1023 254 63 [ 409640 - 1078638336] <Unknown ID> 3: AF 1023 254 63 - 1023 254 63 [1079047976 - 1269536] HFS+ 4: 82 1023 254 63 - 1023 254 63 [1080317952 - 32000000] Linux swap
Anyone has any advice to help me get out of this? It will be very appreciated!
MacBook Pro with Retina display, OS X El Capitan (10.11.6)
Posted on Sep 13, 2016 8:04 PM