Partition Modification
For Hackintosh Install
You need to be CAREFUL to manipulate partitions. You are at risk of
lose all data. BACKUP IS DEFINITELY RECOMMENDED.
The Purpose: Make a 1GB EFI partition. (Enlarge it from 100MB.)
It is recommended to use Minitool because Minitool is quite robust on
manipulating Windows partition, as Dortania's guide mentions. It can
even move / resize the current Windows partition; it reboots by itself
and its own mini OS will operate the task, then Windows boots again
with a new partition size.
- Preparation
- Download minitool on windows.
- gparted on Linux.
Free version of Minitool does not allow you to manipulate
windows reserved partition, which is necesary.
- Minitool on Windows
- Minitool shrinks windows partition.
- Minitool moves the windows partition backward by 901MB.
So that you have 901MB free space in front of the windows partition.
- Minitool moves the Windows Recovery partition immediately after
Windows partition. So that all your free space is located at the
end of the disk. (otherwise somehow macOS installer eats this space
as well as if it is macOS's .)
Note: this is not an active partition, thus minitool just operates
the task without reboot. but just in case, you can reboot and check
whether it will reboot with no problem.
- gparted on Ubuntu.
- make a backup of /sda/sda2 by $ dd if=/sda/sda2 of=sda2.
I don't know how important the contents of this partion is. Make a
backup just in case.
- gparted
- move /sda/sda2 backward by 901MB, then you have a 900MB at
the end of EFI (/sda/sda1).
- So that you can extend the EFI partition 1GB.
gparted once reports an error, but it successfully boots up
somehow, luckily...
- Note 1MB is for just a margin for dd.
- Minitool on Windows again.
- the failure of the extension makes the size of partition
330MB. Thus I re-did the task on Minitool with success.
Actually this last step seemes to have destoryed the EFI. It took time
to fix it.
How to resize EFI partition.
How to make Win10 bootable again
First you need to do this; Dual boot system. (see post-installation.)
This is for blue screen at Win10 boot.

After First minitool Operation.
Note: 901MB free space in between. (for EFI extension, which is
necessary for macOS installation.)
Note: 60GB free space at the end. (for macOS)

All operation is done. :) Ready for macOS installation!
Note: 1GB EFI partition and 60GB free space at the end for macOS.
- You need 210MB for EFI partition, which is normally 100MB if it was
created by Microsoft Windows Installation.
- The EFI partition is immediately followed by Microsoft Reserved
Partition, which is
apsolutely necessary for Windows Boot.
- Windows System Partition will be followed by the Reserved
Partition.

Original Partitions.

It means that
- you have to move (and shrink if necessary) Windows System Partition
- then move the reserved partition,
- then expand the EFI partition.

The Partition done! Bigger EFI and Msftres was moved right.
Minitool
Partition Wizard
Move Microsoft Reserved Partition to right
Yes, you can move msr to another location with gparted, but you also will need to keep some conditions (described further), otherwise, Windows could not be booted.
I explored which conditions caused boot failure using virtual machines. Here are the facts:
- MSR may be anywhere physically at a disk space.
- It may have other number then was used originally for it.
- msr partition number can be greater than windows partition number
- There should not be any skipped partition numbers between msr
and windows partition if msr partition number is smaller than
windows' partition number.
To change partition number, use gdisk on Linux. ,
- $ sudo gdisk /dev/sda
- type x (expert mode)
- then type t (transfer)
- then number of the partition,
- then new number which will be used for that partition,
- then w (write), then answer yes to write changes to drive.
- you can shrink (or move) windows partition (ntfs disk C) from the
beginning and from the end without a problem (at least for gpt
booting).
- Partition Type (GUID) is not necessary need to be Microsoft reserved. Windows successfully booted when I set it to Linux filesystem. But still it is better to set it correctly to easier identify this partition by yourself. In cgdisk its type is 0c01 which is E3C9E316-0B5C-4DB8-817D-F92DF00215AE in gpt.
- Partition name is not important. Windows successfully booted when I set its name to another string. Originally it is set to "Microsoft reserved partition".
- Partition unique GUID is not important. Windows successfully booted after this number was randomized.
What I did not tested is if it is possible to make it less than 16 Mib. If in gparted I moved a partition to the very end of the disk space, partition started displayed as 15 mb (I think the last sector is shorter than all other normal sectors) and after applying changes, it failed. Gparted refused to move that partition, because it does not know how to shrink "unknown filesystem".
Go back to Computer
20220916