Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add windows section to exist/os #13

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions .vuepress/config.js
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,17 @@ module.exports = {
collapsable: false,
sidebarDepth: 1,
children: [
['/exist/data', 'On a filled non-OS related disk (Data disk)'],
['/exist/os', 'On a filled OS related disk (Windows/Linux)'],
['/exist/data', 'On a filled non-OS related disk (Data disk)'],
['/exist/os', 'On a filled OS related disk'],
{
collapsable: false,
sidebarDepth: 1,
children: [
['/exist/windows', 'Windows'],
['/exist/linux', 'Linux'],
]

},
]
},
]
Expand Down
3 changes: 3 additions & 0 deletions exist/linux.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Linux

**Work in Progress**, you can help contribute via [PRs](https://github.com/dortania/OpenCore-Multiboot/pulls)
2 changes: 1 addition & 1 deletion exist/os.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# On a filled OS related disk (Windows/Linux)

**Work in Progess**, you can help contibute via [PRs](https://github.com/dortania/OpenCore-Multiboot/pulls)
This section is meant for those who have disks with an OS installed on it already.
128 changes: 128 additions & 0 deletions exist/windows.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
# Windows

You have one disk with Windows installed and want to install macOS on the same disk.

## Precautions

- BACKUP YOUR DATA
- If possible, disconnect or disable any other disk/drive in your system, as it may interfere with the install procedure
- The drive isn't corrupted or have bad sectors
- Stable power input
- If you cannot add custom entries in your BIOS boot menu this method may not work for you, read all steps before proceeding

## Situation this applies for

- You have a disk with Windows installed
- You have enough free space on the disk to support a macOS installation

---

Verify the partition style of the disk is GPT. If you do not know, see: [Checking your disk partition scheme](https://dortania.github.io/OpenCore-Multiboot/exist/data.html#checking-your-disk-partitioning-scheme) and if it is MBR, see: [Converting MBR to GPT](https://dortania.github.io/OpenCore-Multiboot/exist/data.html#converting-mbr-to-gpt).

## Resize existing EFI partition

If your EFI partition is bigger than the default of 100MB (at least 200MB to be safe) which is created by the Windows installation, then you can skip to the next section.

![Windows before partitions](../images/ex-os/before_windows_disk_mgmt.png)

Use a bootable partition manager to resize the EFI partition. To do this you must first move all the partitions in front of it so make sure to backup your data.

![Gparted original partitions](../images/ex-os/before_gparted.png)

Moving a partition cannot be done while running Windows, so you will need a **bootable** partition manager (free alternative is GParted). This is a potentially destructive operation.

![Gparted warning](../images/ex-os/move_partition_warning_gparted.png)

Backup your data and proceed at your own risk. If there is not enough free space to move existing partitions to the right, first shrink the existing Windows one.

![Gparted move Windows right](../images/ex-os/move_windows_right_gparted.png)

Once there is enough free space after the EFI partition, extend it to at least 200MB.

![Gparted resize EFI](../images/ex-os/resize_efi_gparted.png)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would recommend against Gparted when dealing with ntfs, you can use Minitool or other known tools to do the same thing and they support ntfs from the OS, which is safer than using linux's ntfs driver.

Copy link
Author

@luvaihassanali luvaihassanali Nov 9, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed mention of Gparted and updated screenshots to Minitool instead

## Resize Windows partition

If you already have free unallocated space to create the macOS partition, you can skip to the next section.

Use a partition manager shrink to your Windows partition so that there is enough free space to create a partition that will hold your macOS installation.

![Gparted shrink Windows](../images/ex-os/shrink_windows_gparted.png)

## Create new exFAT partition
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change title to Create new partition for macOS


Create a new exFAT **or FAT32** volume on the free unallocated space (GParted does not support exFAT natively until v1.2.0).

![Gparted create FAT32](../images/ex-os/create_fat32_gparted.png)

If you have other drives you intend to use between both operating systems, now is a good time to format them too. Don't forget to unplug the other drives before proceeding with the macOS installation.

If you moved partitions around, verify your Windows installation is still functioning before proceeding. If you cannot boot into Windows, restore your backup and try again using a reputable partition manager.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same comment about using gparted on ntfs. ^

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed mention of Gparted

![Windows after partitions](../images/ex-os/after_windows_disk_mgmt.png)

For the next section, you will need your OpenCore USB ready to boot into the macOS installation.

## Reformat partition to APFS using Disk Utility

It is advised to use [LauncherOption=Full](https://dortania.github.io/OpenCore-Post-Install/multiboot/bootstrap.html) or to create a custom BIOS entry for the USB so that during the installation process when the system reboots, it will not automatically boot into Windows. When system reboot does happen during the installation process, even if OpenCore loads, the picker's default option might be Windows so watch it carefully and be ready to press the arrow keys depending on how short the timeout is set in your config.plist: `Misc > Boot > Timeout`.

![Mac install screen](../images/ex-os/mac_disk_util.png)

Once you reach the main installation menu click Disk Utility and select the target partition. Click Erase in the top button bar to format the partition to APFS (or whatever you prefer).

![Mac disk utility](../images/ex-os/mac_erase_button.png)

![Mac format partition](../images/ex-os/mac_erase_partition.png)

## Continue with macOS installation

![Mac continue install](../images/ex-os/mac_install.png)

Once installation is finished remove OpenCore USB and the system will boot into Windows.

## Mount EFI partition from Windows

Using a partition manager or diskpart, mount the EFI partition. [Using MiniTool Partition Wizard](https://www.partitionwizard.com/free-partition-manager.html), this is as simple as assigning a letter to the drive. It will then be visible to Windows in File Explorer.

![Windows mount efi 1](../images/ex-os/mount_efi_windows_a.png)

![Windows mount efi 2](../images/ex-os/mount_efi_windows_b.png)

Plug your OpenCore USB in and copy contents of Open Core USB EFI into the mounted EFI partition. In File Explorer, you can see the EFI partition but will not be able to access it. An easy workaround is to just use [Explorer++](https://explorerplusplus.com/download). Right click and select Run as administrator to read and write to the EFI folder.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add diskpart steps as the preferred method, instead of minitool (in case the user did not use minitool or chose not to).

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Applied

![Windows explorer++](../images/ex-os/explorer++_windows.png)

Backup your existing EFI folder before continuing. Copy the BOOT and OC folder from inside the USB EFI into the partition's EFI folder from within Explorer++. When prompted, overwrite the BOOTx64.efi that exists with the one from OpenCore.

Open command prompt with Administrator priveleges and run:

```
bcdedit /set {bootmgr} path \EFI\OC\OpenCore.efi
```

After this is complete, do a reboot of the system. If the OpenCore picker shows, then you can skip the next section.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add this to the next section and remove it from this part.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Applied


## Manually add OpenCore boot menu option

Using your BIOS setup menu, add a custom boot entry for OpenCore. How to do this varies, so Google how to do it per your specific model if you're not sure.

![Bios add entry 1](../images/ex-os/bios_add_entry_a.png)

![Bios add entry 2](../images/ex-os/bios_add_entry_b.png)

Add a boot entry to the path `EFI/OC/OpenCore.efi`. Verify that this entry has priority over Windows in the boot order.

![Bios add entry 3](../images/ex-os/bios_add_entry_c.png)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This does not apply for a majority of devices, use shell, efibootmgr, Bootice (https://github.com/corpnewt/gibMacOS/blob/master/Scripts/BOOTICEx64.exe) or similar tools. Most of them will work for many devices (especially laptops that do not have adding entries to BIOSes), also the UI and menu names will differ wildly with different OEMs.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed BIOS screenshots and add reference to tools mentioned

## Change startup disk

When OpenCore loads, your default boot entry may be Windows, so be ready with the arrow keys. Once you are into macOS, you can change the default picker option using Startup Disk in System Preferences.

![Mac startup disk a](../images/ex-os/startup_disk_mac.png)

![Mac startup disk b](../images/ex-os/startup_disk_selection_mac.png)

If your default option is Windows, then you can change it to macOS or vice versa.

When restoring a full disk backup of a dual boot Windows/Mac, the system may boot into Windows; if so, run bcdedit command above to restore OpenCore picker again. As a final note, don't forget to delete OpenCore USB boot entry in BIOS.
Binary file added images/ex-os/after_windows_disk_mgmt.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/ex-os/before_gparted.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/ex-os/before_windows_disk_mgmt.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/ex-os/bios_add_entry_a.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/ex-os/bios_add_entry_b.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/ex-os/bios_add_entry_c.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/ex-os/create_fat32_gparted.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/ex-os/explorer++_windows.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/ex-os/format_other_drives_gparted.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/ex-os/mac_disk_util.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/ex-os/mac_erase_button.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/ex-os/mac_erase_partition.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/ex-os/mac_install.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/ex-os/mount_efi_windows_a.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/ex-os/mount_efi_windows_b.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/ex-os/move_partition_warning_gparted.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/ex-os/move_windows_right_gparted.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/ex-os/resize_efi_gparted.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/ex-os/shrink_windows_gparted.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/ex-os/startup_disk_mac.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/ex-os/startup_disk_selection_mac.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.