Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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.
130 changes: 130 additions & 0 deletions exist/windows.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,130 @@
# 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

## 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.

![Minitool original partitions](../images/ex-os/before_minitool.png)

Moving a partition cannot be done while running Windows, so you will need a **bootable** partition manager. This is a potentially destructive operation. 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.

![Minitool move Windows right](../images/ex-os/move_windows_right_minitool.png)

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

![Minitool resize EFI](../images/ex-os/resize_efi_minitool.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.

![Minitool shrink Windows](../images/ex-os/shrink_windows_minitool.png)

## Create new partition for macOS

Create a new exFAT **or FAT32** volume on the free unallocated space.

![Minitool create FAT32](../images/ex-os/create_new_mac_part_minitool.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 diskpart or partition manager, mount the EFI partition. To do this with diskpart, launch command prompt with administrator privileges and enter:
```
diskpart
list disk
select disk 0
list partition
select partition 1
assign letter=e
exit
```
Once the partition is mounted you will be able to see it but no access it. To be able to read/write to EFI, restart File Explorer with administrative privileges.
```
taskkill /im explorer.exe /f
explorer.exe
```
You can also use [Explorer++](https://explorerplusplus.com/download). Right click and select Run as administrator to read and write to the EFI folder.

After read/write access is obtained, plug your OpenCore USB and backup your existing EFI folder before continuing.

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)

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.

## Manually add OpenCore boot menu option

Open command prompt with administrator privileges 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


Using your BIOS setup menu, add a custom boot entry for OpenCore to `EFI/OC/OpenCore.efi`. If you are unable to add custom entries to the BIOS boot menu there are tools available to accomplish this:

* [UEFI shell](https://wiki.archlinux.org/title/Unified_Extensible_Firmware_Interface#Obtaining_UEFI_Shell)
* [efibootmgr](https://github.com/rhboot/efibootmgr)
* [BOOTICE](https://m.majorgeeks.com/files/details/bootice_64_bit.html)

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_minitool.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/create_new_mac_part_minitool.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/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/move_windows_right_minitool.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_minitool.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_minitool.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.