Step by step: Install macOS, Windows 10 and Ubuntu on Macmini

论坛 期权论坛 脚本     
匿名技术用户   2021-1-4 03:01   832   0

Introduction

This page introduce how to install macOS, Windows 10 and Ubuntu on Macmini.

Device and software information

Device information:

Macmini (Late 2012):

Model Identifier:    Macmini6,2
Processor Name:            Intel Core i7
Apple HDD Capacity:        1 TB

Software information:

Detail steps

  • #1. Disable System Integrity Protection (SIP) in Recovery OS.
-bash-3.2# csrutil disable
Successfully disabled System Integrity Protection. Please restart the machine for the changes to take effect.2. 
  • #2. Shrink the MacOS partition with Disk Utility (Partition). Prepare space for Windows and Ubuntu.

Disk partition table after shrinking:

hunters-Mac-mini:~ huntercao$ diskutil list
/dev/disk0 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *1.0 TB disk0
1: EFI EFI 209.7 MB disk0s1
2: Apple_HFS Macintosh HD 300.0 GB disk0s2
3: Apple_Boot Recovery HD 650.0 MB disk0s5
4: Apple_HFS Untitled 699.2 GB disk0s4

Note: Partition #4 is for Windows and Ubuntu.

  • #3. Install GPT fdisk and rEFInd on macOS.
  • #4. Create Windows 10 USB installer disk with Rufus on Windows PC.

Select "GPT partition scheme for UEFI" in the "Partition scheme and target system type"

  • #5. Insert the USB installer disk to Mac mini. Reboot Mac mini. Select the Windows 10 USB installer disk in the rEFInd page to install the Windows 10 on the device.

Note:

  1. Select Select "Custom (advanced)" in step "Which type of installation do you want?"
  2. In step "Where do you want to install Windows?".
  3. Delete the the last partition (disk0s4) to get free space.
  4. Create new NTFS partition on the free space. Install Windows on the new created NTFS partition.
  • #6. Finish the Windows 10 installation and reboot.

Problem: The rEFInt boot page will lost. The system will boot into Windows 10 directly.

Reason: The Windows 10 installer has changed the original bootability characteristics that will boot rEFInd.

Fix: Boot device in "Recovery OS" with WIN+R. Recover the rEFInd boot option.

-base-3.2# mkdir /Volumes/ESP
-base-3.2# mount -t msdos /dev/disk0s1 /Volumes/ESP
-bash-3.2# bless --mount /Volumes/ESP --setboot --file /Volumes/ESP/EFI/refind/refind_x64.efi --verbose

We have the Mac mini with macOS and Windows 10 now.

The disk partition table is below:

$ diskutil list
/dev/disk0 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *1.0 TB disk0
1: EFI EFI 209.7 MB disk0s1
2: Apple_HFS Macintosh HD 300.0 GB disk0s2
3: Apple_Boot Recovery HD 650.0 MB disk0s3
4: Microsoft Reserved 16.8 MB disk0s4
5: Microsoft Basic Data 279.9 GB disk0s5
  • #7. Create Ubuntu/Linux USB installer disk with Rufus in the similar why to create Windows 10 USB installer disk.
  • #8. Insert the Ubuntu USB installer disk to Mac mini. Reboot Mac mini. Select Ubuntu/Linux USB installer disk in the rEFInd boot page to install Ubuntu/Linux.

Note: When the Installation Type dialog box appears, select "Something Else." Allocate new partitions on the free space for Ubuntu.

  • #9. Finish Ubuntu/Linux installation and reboot

Problem: The rEFInt boot page will lost. The system will boot into Ubuntu directly.

Reason: The Unbuntu installer has changed the original bootability characteristics that will boot rEFInd.

Fix: Boot device in "Recovery OS" with WIN+R. Recover the rEFInd boot option.


 
-base-3.2# mkdir /Volumes/ESP
-base-3.2# mount -t msdos /dev/disk0s1 /Volumes/ESP
-bash-3.2# bless --mount /Volumes/ESP --setboot --file /Volumes/ESP/EFI/refind/refind_x64.efi --verbose
  • #10. After bless the rEFInd. We will have the rEFInd boot page back. We have a new problem here.

Problem:

We will failed to boot Windows with error: BLInitializeLibrary failed 0xc00000bb for loading bootmgfw.efi.

Reason:

Ubuntu installer has change the disk partition scheme to "MBR: hybrid".

Fix:

Chage the partition scheme from " MBR: hybrid " back to "MBR: protective" with GPT fdisk (gdisk) in macOS.

Take reference to section "Fixing the Installation" in this page: EFI-Booting Ubuntu on a Mac.

  • #11. We have the triple boot (macOS, Windows 10, Ubuntu) on the Mac mini now. The disk partition table is below:
$ diskutil list
/dev/disk0 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *1.0 TB disk0
1: EFI EFI 209.7 MB disk0s1
2: Apple_HFS Macintosh HD 300.0 GB disk0s2
3: Apple_Boot Recovery HD 650.0 MB disk0s3
4: Microsoft Reserved 16.8 MB disk0s4
5: Microsoft Basic Data 279.9 GB disk0s5
6: Linux Filesystem 1.0 GB disk0s6
7: Linux Filesystem 218.4 GB disk0s7
8: Linux Swap 8.0 GB disk0s8
9: Linux Filesystem 192.0 GB disk0s9

Reference

Great thanks to http://www.rodsbooks.com/refind/. When there is a problem, Rod can always provide a solution for us.

Note

  1. After the macOS upgrade to 10.14, the rEFInd boot option will missing. We can get the rEFInd boot option back by bless.
  2. On refresh macOS 10.14, install rEFInd in normal way cannot get the rEFInd boot option.
    1. Need disable the Secure Boot as described in "About Secure Boot".
    2. Rename the rEFInd efi file to: EFI/BOOT/bootx64.efi.
    3. On first boot, press "Option" (Alt) key to get the boot list. Click the EFI boot with "Ctrl" key to bless the EFI boot.
      1. As described in this topic.

分享到 :
0 人收藏
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

积分:7942463
帖子:1588486
精华:0
期权论坛 期权论坛
发布
内容

下载期权论坛手机APP