Fixing MBR with gptsync
All of a sudden my Windows 7 bootcamp harddrive couldn`t be started and I got a „No bootable device -- insert boot disk and press any key“. I tried to restore the partition map with testdisk as this helped me some time ago but I got no luck this time.
I installed Windows 10 on a new ssd via the boot camp assistant as a swap for the old bootcamp harrdive. Now I can access the partition but only when I use the boot manager on the startup screen (via alt- key). Otherwise, I still get the „no bootable device“ message or just a blinking cursor.
For additional information: I´m using a mac pro 4.1 with a normal pc grafics card, so I am not able to see the the boot screen. This combination worked for me for a long time now and I was switching systems with the Start Volume preference pane.
I looked up my problem and tried gptsync on my Macintosh drive (disk0). Now I just want to verify that this tool lists the correct MBR partition table and i can accept its suggestion to fix my booting problems.
$ sudo gptsync /dev/disk0
Current GPT partition table:
# Start LBA End LBA Type
1 40 409639 EFI System (FAT)
2 409640 487127591 Mac OS X HFS+
3 487127592 488397127 Mac OS X Boot
Current MBR partition table:
# A Start LBA End LBA Type
1 1 488397167 ee EFI Protective
Status: MBR table must be updated.
Proposed new MBR partition table:
# A Start LBA End LBA Type
1 1 409639 ee EFI Protective
2 409640 487127591 af Mac OS X HFS+
3 487127592 488397127 ab Mac OS X Boot
4 488397128 488397167 ee EFI Protective
May I update the MBR as printed above? [y/N]
gptsync on the bootcamp drive (disk1):
$ sudo gptsync /dev/disk1
Current GPT partition table:
# Start LBA End LBA Type
1 2048 34815 MS Reserved
2 34816 975794516 Basic Data
3 975796224 976771071 Unknown
Current MBR partition table:
# A Start LBA End LBA Type
1 1 4294967295 ee EFI Protective
Status: GPT partition of type 'Unknown' found, will not touch this disk.
Thank you!
Mac Pro, macOS Sierra (10.12.6)