Resize EFI Partition
For Hackintosh Install
You need to do it manually step by step.
- Windows10: Free Minitool Partition wizard refuses to do it, unless you buy a pro version.
- Linux: gparted complains; "GNU Parted cannot resize this
partition to this size. We're working on it!"
It rarely succeeds. It only occasionally somehow succeeds.
Our solution is
- make a backup of contents of EFI partition.
- delete the EFI partition.
- re-create it with the extended size.
- copy the contents to the new EFI partition.
Step by step guide. You need root priviledge or sudo.
- # mount /dev/sda1 /media/ubuntu/XXXX # Use gnome-disks GUI. XXXX depends on your system.
- # mkdir esp/
- # rsync -av /media/ubuntu/XXXX esp/ # make a backup of the contents.
- # sudo umount /media/ubuntu/XXXX
- # sudo gdisk /dev/sda
- p # list of partition
- d # delete the partition.
- 1 # select the first partition.
- n # new partition.
- 1 # the number of new partition
- Enter # default 2048 sector.
- Enter # default X-th sector depending on the size of
partition.
- EF00 # Hex Code for a EFI system partition.
- w # write the operation you have done.
- Y # final comfirmation.
- # sudo partprobe /dev/sda # ???
- # sudo mkfs.fat -F32 /dev/sda1 # format the EFI partition as
FAT32.
- mount /dev/sda1 /mnt/
- rsync -av esp/ /mnt
- If it is a Linux drive, modify the UUID on /etc/fstab
- blkid | grep EFI
- nano /etc/fstab.
This stably works.
Go back to Computer
20220916