Bootcamp Partition MBR Needs Repair... "Operating system missing" During Boot
Hi, 1st post here...
My 2011 MacBook Air's High Sierra OS is bootable, but the Windows 10 partition's MBR entry got wiped accidentally, and so it needs to be rewritten into the MBR (I'm getting the dreaded "Operating system missing" when I select the Windows drive during boot).
I attempted (for the first time) to do so(repair the MBR) in Terminal but got the warning below;
"Warning! Main Partition table overlaps the first partition by 33 blocks! You will need to delete this partition or resize it in another utility."
An online search showed that some folks got similar warnings but with a different number for the partition and number of blocks(56?). One such person used GParted to reduce the last partition by like 3MB and apparently the warning went away.
Therefore, I got myself setup with a bootable USB GParted drive, and got more comfortable with the Terminal process(though I was using the Terminal not in Recovery Mode, but just in a regular OSX session).
1.) Is it possible to perform the Terminal process for repairing the MBR in a regular OSX boot session(not Recovery Mode)?
I ask because currently my system does not have a functioning Recovery Partition, so I've been using a bootable USB High Sierra Installer drive to access the Recovery Mode(quicker than waiting forever for the online method), but in this case the Disk Utility's Terminal keeps indicating "command not found".
2.) In the Terminal's warning mentioned above, what partition numbers are the "Main partition table" and "first partition" exactly?
3.) Is there a way to check where the "33 blocks" overlap? If so,
4.) Is it possible to visually identify in GParted, where the problematic overlapping occurs?
If I can get some help in figuring out which partition to adjust, I could perhaps shrink a minute amount of the end of the "front partition"(of the 2) in GParted, then proceed with Terminal operations to repair the MBR to include reference to the Bootcamp partition.
Thanks...
P.S. My recent trial Terminal session below in "additional text".
(BTW, in GParted, partition no.3 shows as "BOOTCAMP", though in Terminal it shows as Windows_FAT_32)
MacBook Air 13″