Q: Error loading operating system
Basically, I had to follow a guide by Loner T to get Windows 10 Bootcamp to boot again because I got that same "no boot disc" error after trying to create another partition of 63GB titled "Other". Well, that solution got my bootcamp partition to boot again, but I then booted into Windows to add the new partition I created to extend my bootcamp partition (using Mini Tool Partition Wizard). For some reason, though, I had to only extend the bootcamp partition using 62GB out of the 63GB because for some reason it was telling me I couldn't use it all due to some overlapping error. I booted back into OS X, and then I installed Paragon NTFS for Mac that came with this new Seagate 2TB external hard drive that I got, and restarted the computer (without doing anything with Paragon...I didn't even erase or partition anything with my external hard drive). Before the reboot though, I'm not sure if I saw that my Bootcamp partition was still there, but after the reboot I opened Disk Utility and my bootcamp partition was missing. I see the new partition that I made earlier (63GB), though, but it shows empty. If I restart my Macbook while holding Option key, my Windows partition is still there but it's not bootable and tells me "error loading operating system." But for some reason bootcamp is not in Disc Utility or in startup disks either...any idea how to fix this?
AUSTIN-DAILEY-MAC:~ austindailey$ diskutil list
/dev/disk0 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *500.1 GB disk0
1: EFI EFI 209.7 MB disk0s1
2: Apple_HFS Macintosh HD 336.0 GB disk0s2
3: Apple_Boot Recovery HD 650.0 MB disk0s3
4: Apple_HFS Other 62.2 GB disk0s4
5: Microsoft Basic Data 100.7 GB disk0s5
/dev/disk1 (external, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *2.0 TB disk1
1: EFI EFI 209.7 MB disk1s1
2: Apple_HFS ACD-BACKUP 350.0 GB disk1s2
3: Microsoft Basic Data ACD-DRIVE 1.6 TB disk1s3
/dev/disk2 (external, physical):
#: TYPE NAME SIZE IDENTIFIER
0: FDisk_partition_scheme *1.0 TB disk2
1: DOS_FAT_32 ACD-DRIVE 500.1 GB disk2s1
2: Apple_HFS ACD-BACKUP 500.1 GB disk2s2
AUSTIN-DAILEY-MAC:~ austindailey$ diskutil cs list
No CoreStorage logical volume groups found
AUSTIN-DAILEY-MAC:~ austindailey$ sudo gpt -vv -r show /dev/disk0
Password:
gpt show: /dev/disk0: mediasize=500107862016; sectorsize=512; blocks=976773168
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 976773167
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 656326280 2 GPT part - 48465300-0000-11AA-AA11-00306543ECAC
656735920 1269536 3 GPT part - 426F6F74-0000-11AA-AA11-00306543ECAC
658005456 121515200 4 GPT part - 48465300-0000-11AA-AA11-00306543ECAC
779520656 262144
779782800 196728184 5 GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7
976510984 262151
976773135 32 Sec GPT table
976773167 1 Sec GPT header
AUSTIN-DAILEY-MAC:~ austindailey$ sudo 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 0 0 2 - 1023 254 63 [ 1 - 656735919] <Unknown ID>
2: AB 1023 254 63 - 1023 254 63 [ 656735920 - 1269536] Darwin Boot
3: AF 1023 254 63 - 1023 254 63 [ 658005456 - 121515200] HFS+
*4: 07 1023 254 63 - 1023 254 63 [ 779782800 - 196728184] HPFS/QNX/AUX
iPod touch, Windows 7
Posted on Sep 29, 2016 8:31 PM
Install GPT Fdisk (aka gdisk). Leave your Testdisk display and start a new Terminal Window. 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 Testdisk output (and you can verify) in Steps 7 and 8. Please notice the '+' sign in step 8 (this is called offset notation). The text in parentheses is for informational purpose to describe the action being taken. Gdisk has one-character commands except when entering numbers. These are non-standard steps and should not be used under any other circumstances. Your layout is special case because you have GPT4 and GPT5 which the MPT did not correctly manipulate. You will have about 1Gb free. A single GPT4 replaces the old GPT4+GPT5.
Rebuild GPT4 using start/end offsets
- Sudo gdisk /dev/rdisk0
- P (print the full list of parts)
- D (delete)
- 4 (part 4)
- D (delete)
- 5 (part 5)
- N (new part)
- 4 (part 4)
- 660191640 ( - Start offset in sectors or the start point for Bootcamp part)
- +316319337 ( - Size offset, as opposed to End offset)
- 0700 (Windows part type)
- 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/disk0s4.
Rebuild MBR to match the new GPT information thus resetting the Hybrid MBR. Use defaults for other questions (like partition codes). The only values that need modifications are the Boot flags and step 10. Accept all other defaults that Gdisk offers. Please see the sample Q&A as an example. These steps can be repeated if you make a mistake before you get to Step 12, otherwise start from Step 1 for these steps. Step 6 has numbers which are typed with a space between the numbers. Please see the sample Q&A before you execute these steps.
- Sudo gdisk /dev/rdisk0
- P (Print list of parts)
- R (Recover)
- O (print current Hybrid MBR)
- H (chooses Hybrid)
- Partitions numbers to be hybridized: 2 3 4
- Y (Good for GRUB question)
- N (part 2 boot flag)
- N (part 3 boot flag)
- Y (part 4 boot flag make NTFS bootable partition)
- O (print current Hybrid MBR)
- W (Write the new MBR)
- Y (Yes! write the new MBR)
- Reboot
Here is sample Q&A for this section. Please notice the Press Enter/Return.
Place EFI GPT (0xEE) partition first in MBR (good for GRUB)? (Y/N): Y
Creating entry for GPT partition #2 (MBR partition #2)
Enter an MBR hex code (default AF): Press Enter/Return
Set the bootable flag? (Y/N): N
Creating entry for GPT partition #3 (MBR partition #3)
Enter an MBR hex code (default AB): Press Enter/Return
Set the bootable flag? (Y/N): N
Creating entry for GPT partition #4 (MBR partition #4)
Enter an MBR hex code (default 07): Press Enter/Return
Set the bootable flag? (Y/N): Y
Test 1 - Does Bootcamp Volume show up in Finder?
Test 2 - Can you see files in Bootcamp Volume?
Test 3 - Can you select Bootcamp in System Preferences -> Startup Disk?
Test 4 - If Test 3 is successful, select Bootcamp and Click Restart.
Posted on Oct 1, 2016 8:01 AM






