Replies: 2 comments 3 replies
-
|
You can look at this beautiful guide by me - |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
What errors you got? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
After many unsuccessful attempts to install Omarchy side-by-side with Windows, I tried to reverse the problem and install Windows after Omarchy. I tried this #900 partition resizing approach using Gparted Live but it did not work with Omarchy 3.1.7 on MacBookPro11,4 (15-inch, Mid 2015), here are my findings and solutions.
Problem
Using gparted to resize the Omarchy partition makes the GPT disk partition scheme "Hybrid MBR"
gdisk /dev/sdaand then Windows installer sees this GPT as MBR and refuses to install Windows because it requires GPT partition scheme on UEFI systems.
Formatting the partition to NTFS does not help, the initial clean "protective MBR" became "hybrid MBR" every time I used gparted, even without creating any partitions afterwards. This is likely due to some backwards compatibility behavior of libparted, perhaps a hybrid MBR is automatically generated when modifying GPT disks, but I haven't explored further...
Solution
[optional] To speed up multiple reboots, I used an external SSD with Ventoy with Omarchy, Arch and Windows ISO images. On this MacBook, Ventoy boots these Linux ISOs only in GRUB2 mode, and Windows ISO only in WIM mode.
To resize the partitions I used sgdisk. (parted didn't work with partition resizing math, or perhaps I made a mistake.)
The manual resize is not trivial, since we have to get BTRFS < LUKS < GPT with the math in sectors, not MiB or GiB.
Install Omarchy automatically the normal way. The process takes <4 minutes on this 2015 MacBook Pro with a USB ethernet dongle.
Boot into Omarchy just to see if it works. No sense updating or setting anything up until the partition is successfully resized.
Reboot into Arch live ISO.
Unlock your encrypted root:
(I noticed that rebooting into Omarchy before the next step (GPT partition resize) resets the LUKS container size to fill the partition again.)
Find the start sector of the Omarchy partition:
sgdisk -p /dev/sdaNote for partition 2:
Give the GPT partition an extra 212 MB (≈ 435 000 sectors) beyond the current container size.
Note: the buffer size in step 6 and 7 is arbitrary 100-200 MB, but do check the numbers manually if you use AI for help. ;)
sgdisk commands
OLDUUID=$(blkid -s PARTUUID -o value /dev/sda2)You should see the LUKS device open normally (still ≈72 GiB).
This extra 212 MB margin makes the layout tolerant to any automatic rounding or header variations.
Result
Installing Windows
Windows installs with no issues onto the empty unpartitioned space. There is no need for a 2nd EFI partition, as it uses the existing EFI partition as intended.
Intel Mac needs rEFInd bootloader for VT-x
On this MacBook I have to use rEFInd as the primary bootloader to enable hardware virtualization support.
It is straightforward to add rEFInd to EFI partition and chainload Limine. I used Hasleo EasyUEFI for Windows to re-insert my previous rEFInd directory and make rEFInd the default bootloader. Here's my refind.conf for text-only boot menu and hiding several Limine duplicate entries:
Since Omarchy and Limine are left as installed, this setup is more likely to live through Omarchy updates.
Disclaimer
I have reconstructed these instructions from notes, the logic is solid, but some minor steps could be missed, as I didn't run it again after getting the result. Use AI to help you through this if you are unfamiliar with CLI disk tools.
BTW, this partition resizing process can be easily automated. Hint, hint...
Beta Was this translation helpful? Give feedback.
All reactions