Bootcamp MBR GPT Mismatch

Boot into Recovery Mode (Reboot and press cmd+R).
  1. Utilities menu > Terminal > Type:
    # csrutil disable
  2. Reboot normally
Download and install GPT fdisk from
Find Bootcamp partition location
# diskutil list
Run gdisk
# sudo gdisk /dev/disk0
# Command (? for help): v
Warning! Mismatched GPT and MBR partition! MBR partition 4, of type 0x07, has no corresponding GPT partition! You may continue, but this condition might cause data loss in the future!
Identified 1 problems!
Next, display the MBR partition table and make note of the start and end sectors for your BOOTCAMP partition.
  • Command (? for help): r
  • Recovery/transformation command (? for help): o
This should be partition 4 unless you’ve added additional partition(s), which is not officially supported by Boot Camp. It should show something like this:
Disk size is 1953525168 sectors (931.5 GiB)
MBR disk identifier: 0x7C170CB2
MBR partitions:
Number  Boot  Start Sector  End Sector  Status      Code
  1                    1      409639  primary    0xEE
  2                409640    975693095  primary    0xAF
  3            975693096    976962631  primary    0xAB
  4      *      976963584  1952806911  primary    0x07
Next, display the GPT partition table information:
  • Recovery/transformation command (? for help): m
  • Command (? for help): p
Number  Start (sector)    End (sector)  Size      Code  Name
  1              40          409639  200.0 MiB  EF00  EFI System Partition
  2          409640      975693095  465.1 GiB  AF00  Customer
  3      975693096      976962631  619.9 MiB  AB00  Recovery HD
  4      976963584      1953523711  465.7 GiB  0700  BOOTCAMP
Compare the start and end sectors for partition 4 to the MBR partition 4 start and end sectors. Most likely the start sectors will match, but the end sectors will be different.
The correct one should be 1952806911 but not 1953523711 
Next, delete the GPT partition 4. (Note: this does not delete the actual partition from disk. It only deletes gdisk’s in-memory representation of the GPT).
  • Command (? for help): d
  • Partition number (1-4): 4
Now, create a new partition 4 using the start and end sector values from the MBR partition 4:
  • Command (? for help): n
  • Partition number (4-128, default 4): 4
  • First sector (34-1953525134, default = 976962632) or {+-}size{KMGTP}: 976963584
  • Last sector (976963584-1953525134, default = 1953525134) or {+-}size{KMGTP}: 1952806911
  • Hex code or GUID (L to show codes, Enter = AF00): 0700
  • Changed type of partition to ‘Microsoft basic data’
Now, change the name of the new partition 4 to BOOTCAMP:
  • Command (? for help): c
  • Partition number (1-4): 4
  • Enter name: BOOTCAMP
Run the verify command. It should report no problems. If it still reports a problem, quit (q command) and start over.
  • Command (? for help): v
If everything checks out, write new partition table to disk and exit.
  • Command (? for help): w
Reboot and test your dual boot setup to verify all is working correctly.
Boot back into Recovery Mode (cmd+R).
  1. Utilities menu > Terminal > Type:
    # csrutil enable
  2. Reboot normally

Installing MacOS X High Sierra on VMware Workstation 14

-MacOS Sierra 10.12 ISO from
-VMware Unlocker 2.1.1 from
If you already have dmg file of MacOS X Sierra. You can try to convert it to ISO using PowerISO
-download PowerISO from
  • Run PowerISO.
  • Choose “Tools > Convert” Menu.
  • PowerISO shows Image Converter dialog.
  • Choose the source DMG file you want to convert.
  • Set the output file format to iso file.
  • Choose the output file name.
Extract Unlocker 2.1.1
-run as Administrator win-install.cmd
That will patch VMware to allow it to have Mac OS X on the OS menu
Install MacOS X High Sierra on VMware Workstation

Creating High Sierra Bootable Flash Disk

-login to your AppleStore and leave it connected
-Download macOS High Sierra Patcher Tool from
run it
click Tools/Download macOS High Sierra and save it to Applications
when Download Complete, click Not Now

-insert 16GB flash disk
# sudo /Applications/Install\ macOS\ High\ –volume /Volumes/YourUSBStick –applicationpath /Applications/Install\ macOS\ High\
Reboot and hold Option key then choose “Install macOS High Sierra” disk

Must format target disk with GPT
After boot from USB, run Terminal from Utilities menu
Why I need to use Terminal because sometime DiskUtil GUI can’t change Partition type
# diskutil list
note target disk
# diskutil partitionDisk /dev/disk1 GPT JHFS+ TARGETDISK 0b

error “The recovery server could not be contacted”
open Terminal
# ntpdate -u

error “This copy of the Install macOS High application is damaged, and can‘t be used to install macOS.”
# rm /Volumes/Install\ macOS\ Sierra/Install\ macOS\ High\

  1. Find the installer in USB.
  2. Right click on the installer and click “Show Package Contents”.
  3. Click on the folder named “Contents”.
  4. Click on the folder named “SharedSupport”.
  5. Delete the file named “InstallInfo.plist”.
  6. Enter your administer password to confirm.
  7. Now open the installer.
-By default High Sierra hiding drive icon on Desktop
open Finder Preferences
click General
tick Hard disks

-System Extension Blocked
click Open Security Preferences
click General. click Allow

-Modify or creating any files or folders on a disk, it will asks Admin password
  1. From the Finder menu bar, choose Go > Home. Your home folder opens.
  2. Choose File > Get Info. An Info window for your home folder opens.
  3. If the Sharing & Permissions section at the bottom of the window isn’t open, click the triangle  in that section to open it.
  4. If the Lock button at the bottom of the window shows a closed lock  , click the lock and enter an administrator name and password.
  5. Click the Action menu  in the bottom corner of the window, then choose “Apply to enclosed items.” Click OK to confirm the action. A progress bar appears at the top of the window.
Right click disk and choose Get Info
Scroll all the way down and click Lock icon, type Admin password
Tick Ignore ownership on this volume

Increasing allocated RAM for UNL in VMware Fusion

  1. import unl ova and keep it off
  2. change hardware compatibility to 12
    – In the Apple menu bar, select Virtual Machine > Settings.
    – Select Compatibility
    – Select the hardware version to 12
  3. change “memsize” in unl vmx
    – right click unl vm and select ” Show Package Contents”
    – search for the ‘VMX’ file, right click and select open with ‘Text Edit’
    – change the memsize there and save
    – power on unl vm. If it complain about unsupported main memory size then just click OK