單一主機多系統引導某系統教學

如果

一台主機各別有三個系統,Windows 11、macOS13、macOS15,想要使用 Opencore 引導其中系統碟(macOS13),不會看到其他系統碟(macOS15),反之亦然,該如何做?

如果你想讓 Windows 11、macOS 13、macOS 15 三個系統共存,但希望 當你選擇 macOS 13 開機時,看不到 macOS 15,反之亦然,可以透過 OpenCore 的 HideVolume 設定來隱藏特定磁碟


🔧 解決方案:使用 HideVolume 隱藏 macOS 磁碟

步驟 1:獲取磁碟 UUID

  1. 開啟 macOS(任意一個版本),打開 終端機(Terminal),輸入以下指令來獲取所有 APFS 容量群組的 UUID:diskutil apfs list
  2. 會出現類似以下的輸出(根據你的實際磁碟配置可能不同):APFS Container (1 found) | +-- Container disk1 | +-- Volume macOS13 | APFS Volume Disk UUID: 12345678-ABCD-1234-5678-1234567890AB | +-- Volume macOS15 | APFS Volume Disk UUID: ABCD1234-5678-ABCD-1234-567890ABCDEF
  3. 記下 macOS 13 和 macOS 15 的 APFS Volume Disk UUID,我們將用來隱藏磁碟。

步驟 2:設定 OpenCore HideVolume

  1. 進入 EFI 分區,找到 OpenCore 的 config.plist,用 ProperTree 或 OpenCore Configurator 開啟。
  2. 找到 Misc → Entries,新增以下設定:
    • 當啟動 macOS 13 時,隱藏 macOS 15
    • 當啟動 macOS 15 時,隱藏 macOS 13
    具體設定如下:<dict> <key>HideVolume</key> <array> <string>ABCD1234-5678-ABCD-1234-567890ABCDEF</string> <!-- 隱藏 macOS 15 --> </array> </dict> 這段設定應該加在 macOS 13 的 OpenCore config.plist 中,這樣當你啟動 macOS 13 時,就不會看到 macOS 15。
  3. 同樣的方法,在 macOS 15 的 config.plist 中,加入 macOS 13 的 UUID:<dict> <key>HideVolume</key> <array> <string>12345678-ABCD-1234-5678-1234567890AB</string> <!-- 隱藏 macOS 13 --> </array> </dict>

步驟 3:儲存並測試

  1. 儲存 config.plist,確保格式正確(如果使用 ProperTree,請按 Cmd + S 儲存,然後按 Cmd + Shift + R正規化格式)。
  2. 重新啟動電腦,進入 OpenCore,選擇 macOS 13 開機。
  3. 打開 Finder 或「磁碟工具程式」,確認 macOS 15 的磁碟已被隱藏。
  4. 重新啟動至 macOS 15,確認 macOS 13 也被隱藏。

⚠️ 注意事項

  • 此方法只會在 Finder 和「磁碟工具程式」中隱藏磁碟,不影響 OpenCore 開機選單
  • 如果希望 在 OpenCore 開機選單中也隱藏特定磁碟,請修改 config.plist 內的 Misc → BlessOverride<key>BlessOverride</key> <array> <string>UUID-OF-VOLUME-TO-HIDE</string> </array> 這樣在 OpenCore 選單中,也不會看到被隱藏的 macOS 磁碟

要實現 OpenCore 引導 macOS 13 時不顯示 macOS 15 的磁盤,反之亦然,可以通過 OpenCore 的 自定義啓動條目(Custom Entries) 和 隱藏規則(Hide Rules) 來實現。以下是具體步驟:


1. 準備工作

  • 確保每個系統(Windows 11、macOS 13、macOS 15)安裝在獨立的磁盤或分區中。
  • 確保 OpenCore 的 EFI 分區已正確配置,並包含所有必要的驅動和配置文件。

2. 配置 OpenCore 隐藏特定磁盘

通過編輯 OpenCore 的 config.plist 文件,可以隱藏特定的磁盤或分區

步骤

  1. 獲取磁盤的 UUID 或卷標
  • 打開 macOS 的 磁盤工具,找到 macOS 13 和 macOS 15 的磁盤或分區。
  • 記錄每個磁盤的 UUID 或 卷標(Volume Name)。
  1. 編輯 config.plist
    使用 ProperTreeOpenCore Configurator 打开 OpenCore 的配置文件 config.plist
  2. 添加自定義啓動條目
  • Misc -> Entries 中,添加 macOS 13 和 macOS 15 的自定義啓動條目。
  • 示例配置(macOS 13):
    xml <dict> <key>Path</key> <string>PciRoot(0x0)/Pci(0x1D,0x0)/Pci(0x0,0x0)/NVMe(0x1,09-63-8B-12-34-56-78-90)/HD(1,GPT,12345678-1234-1234-1234-123456789012,0x800,0x64000)/\System\Library\CoreServices\boot.efi</key> <key>Name</key> <string>macOS 13</string> <key>Enabled</key> <true/> </dict>
  • 示例配置(macOS 15):
    xml <dict> <key>Path</key> <string>PciRoot(0x0)/Pci(0x1D,0x0)/Pci(0x0,0x0)/NVMe(0x1,09-63-8B-12-34-56-78-90)/HD(2,GPT,87654321-1234-1234-1234-123456789012,0x800,0x64000)/\System\Library\CoreServices\boot.efi</key> <key>Name</key> <string>macOS 15</string> <key>Enabled</key> <true/> </dict>
  • 注意:Path 的值需要根據實際磁盤路徑填寫。可以使用 Hackintool 或 OpenCore Debug 日誌獲取正確的路徑。
  1. 设置隐藏规则
  • 在 Misc -> Tools 中,添加隱藏規則以隱藏 macOS 15 的磁盤(當選擇 macOS 13 時)或隱藏 macOS 13 的磁盤(當選擇 macOS 15 時)。
  • 示例配置(隱藏 macOS 15 的磁盤):
    xml <dict> <key>Comment</key> <string>Hide macOS 15 Disk</string> <key>Enabled</key> <true/> <key>Path</key> <string>PciRoot(0x0)/Pci(0x1D,0x0)/Pci(0x0,0x0)/NVMe(0x1,09-63-8B-12-34-56-78-90)/HD(2,GPT,87654321-1234-1234-1234-123456789012,0x800,0x64000)</string> </dict>
  • 示例配置(隱藏 macOS 13 的磁盤):
    xml <dict> <key>Comment</key> <string>Hide macOS 13 Disk</string> <key>Enabled</key> <true/> <key>Path</key> <string>PciRoot(0x0)/Pci(0x1D,0x0)/Pci(0x0,0x0)/NVMe(0x1,09-63-8B-12-34-56-78-90)/HD(1,GPT,12345678-1234-1234-1234-123456789012,0x800,0x64000)</string> </dict>
  1. 保存並重
  • 保存 config.plist 並重啓系統,檢查啓動菜單是否按預期顯示。

3. 使用 OpenCore 的啓動磁盤選擇功能

  • 在啓動時按下 空格鍵,顯示所有可啓動的磁盤(包括隱藏的磁盤)。
  • 選擇目標磁盤後,系統將直接啓動,不會顯示其他磁盤。

4. 注意事项


📌 結論

✅ 當開機到 macOS 13 時,不會看到 macOS 15 的磁碟
✅ 當開機到 macOS 15 時,不會看到 macOS 13 的磁碟
✅ 透過 HideVolume 設定,隱藏特定 APFS 磁碟
✅ 如果要在 OpenCore 開機選單隱藏特定磁碟,可使用 BlessOverride

如果你還有任何問題或 config.plist 設定上的困難,隨時告訴我!🚀

上一篇