CentOS 8 install fails on MacMini4,1

Issues related to applications and software problems and general support
Post Reply
snakedoctor
Posts: 1
Joined: 2019/09/26 13:49:30

CentOS 8 install fails on MacMini4,1

Post by snakedoctor » 2019/09/26 14:59:02

I try to install CentOS 8 on my MacMini4,1 but it fails while auto partitioning.
It complains the following:
resource to create this format macefi is unavailable
Perhabs it wants to create a 'Linux HFS+ ESP' partition - just like Fedora 30 does, but no hfsplus-tools are included?

Fedora 30 partition scheme:

Code: Select all

NAME            FSTYPE      LABEL          UUID                                   FSAVAIL FSUSE% MOUNTPOINT
sda
├─sda1          vfat                       A299-B7AA
├─sda2          hfsplus     Linux HFS+ ESP 5a445c7b-c17e-3a8b-a34f-c1f33a645642    187,5M     6% /boot/efi
├─sda3          ext4                       25b2016b-4a50-45d7-8fd6-51e2e8ec35b9    746,8M    17% /boot
└─sda4          LVM2_member                8zlTtq-4PVF-Hfop-tmAI-ktHN-vWqh-tu9691
  ├─fedora-root ext4                       645259ec-f555-445e-8e83-cab9e936849b     59,4G     8% /
  ├─fedora-swap swap                       917b456f-b9c9-43b5-9626-91b8dd3c77ea                  [SWAP]
  └─fedora-home ext4                       a29506a6-23e4-40ee-a127-77a58519b183    133,6G     0% /home
  
CentOS 7 partition scheme:

Code: Select all

NAME                   FSTYPE      LABEL                  UUID                                   MOUNTPOINT
sdb
├─sdb1                 vfat                               50FB-6E8F                              /boot/efi
├─sdb2                 xfs                                9a12e16b-5cb0-4091-89cc-cb260a864546   /boot
└─sdb3                 LVM2_member                        mkz4L3-hBRJ-66yC-pisg-YwS3-p7S9-kmuNOe
  ├─centos_localhost-root xfs                             1d740088-f03b-45f9-8335-a46042ceafcb   /
  ├─centos_localhost-swap swap                            c95e9df9-040a-4113-86e4-27efe09a2929   [SWAP]
  └─centos_localhost-home xfs                             b63ff0bf-ea8e-42ce-a1ce-7c1e3e53d67f   /home
If i try to use the CentOS 7 partition scheme ( same mountpoints & just reformat the partitions), the error is the following:
Failed to find a suitable stage1 device: EFI System Partition cannot be of type efi.; EFI System Partition cannot be of type xfs.; EFI System Partition must be mounted on one of /boot/efi.; EFI System Partition cannot be of type lvmpv.
No valid boot loader target device found. See below for details.
For a UEFI installation you must include a Linux HFS+ ESP on a GPT-formatted disk, mounted at /boot/efi.
Some hints?

GrandM1961
Posts: 2
Joined: 2019/10/01 16:14:40

Re: CentOS 8 install fails on MacMini4,1

Post by GrandM1961 » 2019/10/01 16:47:53

If you rename the EFI into GPT and assign the Linux HFS+ ESP in the top as /boot/efi maybe that will work. I have about the same problem on a external disk that i want to use. It complains about all the formats i use, no vfat, no hfs, no ext2,ext3 and ext4, i’m lost in this one.

tjb
Posts: 2
Joined: 2019/10/04 13:27:07

Re: CentOS 8 install fails on MacMini4,1

Post by tjb » 2019/10/04 13:39:20

I had the same problems on a Mac Mini 5,3 - Fedora 30 installs fine but not CentOS 8 - with different errors depending on if Fedora was already on the disk or not. On a whim I tried Oracle Linux 8 and it installed fine but in a very different way from Fedora. With Fedora installed, the Mac boot manager (hold down option on boot) reports the disk as an "EFI" disk while with Oracle 8 Linux installed, it reports it as a "Windows" disk. Drive partitioning is very different and looks like this for Oracle Linux 8:

Disk /dev/sda: 465.8 GiB, 500107862016 bytes, 976773168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x8161d077

Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 2099199 2097152 1G 83 Linux
/dev/sda2 2099200 976773119 974673920 464.8G 8e Linux LVM

I'm not sure what Oracle 8 is doing but it works and it was easy enough to then convert Oracle 8 Linux to CentOS 8. I'd much prefer to install CentOS 8 directly but this is a good work around for now.

touchwood
Posts: 5
Joined: 2019/09/23 19:48:48

Re: CentOS 8 install fails on MacMini4,1

Post by touchwood » 2019/11/11 16:07:04

tjb wrote:
2019/10/04 13:39:20
I'm not sure what Oracle 8 is doing but it works and it was easy enough to then convert Oracle 8 Linux to CentOS 8. I'd much prefer to install CentOS 8 directly but this is a good work around for now.
How exactly did you convert Oracle 8 Linux to CentOS 8?

I have the same "macefi" partitioning error on a Mac Mini 5,3 with CentOS 8.

tjb
Posts: 2
Joined: 2019/10/04 13:27:07

Re: CentOS 8 install fails on MacMini4,1

Post by tjb » 2019/11/26 18:52:30

It's been a while but I believe this script worked:

Code: Select all

#!/bin/csh -x

rpm -e --nodeps \
  oraclelinux-release-el8 oraclelinux-release python3-rhn-check python3-rhn-setup \
  redhat-release rhn-check rhn-setup rhnlib rhnsd usermode yum

curl -O http://mirror.centos.org/centos/8/BaseOS/x86_64/os/Packages/centos-release-8.0-0.1905.0.9.el8.x86_64.rpm
curl -O http://mirror.centos.org/centos/8/BaseOS/x86_64/os/Packages/yum-4.0.9.2-5.el8.noarch.rpm

rpm -Uvh centos-release-8.0-0.1905.0.9.el8.x86_64.rpm  yum-4.0.9.2-5.el8.noarch.rpm

yum clean all
rm -rf /var/cache/yum

yum -y update
yum -y distrosync

User avatar
MattPie
Posts: 5
Joined: 2018/05/22 21:48:32

Re: CentOS 8 install fails on MacMini4,1

Post by MattPie » 2020/01/28 03:53:49

I've run into this as well. It appears that CentOS 8 installer checks the EFI partition format that it's HFS+ but doesn't have a method to create one. My box had previously run CentOS 7 with a vfat EFI partition, so the installer is stuck.

I reinstalled MacOS (High Sierra) on the box to see if you can use an existing HFS+ EFI partition to get the system up and running. Nope, still gets an error in the disk partitioning area and won't proceed to install. Since vfat EFI works on this box with C7, it's either a bug or newer (or older) Macs may not support vfat EFI and the installer doesn't know how to tell which models are OK. Annoying, but at least C7 works for a few more years.

IFStowers
Posts: 1
Joined: 2020/01/29 06:02:51

Re: CentOS 8 install fails on MacMini4,1

Post by IFStowers » 2020/01/30 01:33:54

I'm encountering the same problem of installing CentOS 8 on a Mac Pro 4,1. The machine
has 4 disk drives and Mac OS X El Capitan 10.11 is installed on one 2TB drive and
CentOS is to be installed on a second 2TB drive which can be formatted as HFS+, FAT, exFAT
and other variations. However, I've not found a formatting that allows CentOS 8 to be
successfully installed on this second drive.

During "Installation Destination" I initially receive a "No Disks Selected" error in black text before
entering the Installation Destination area. Selecting Automatic partitioning initially
gives an error of "Failed to Save Storage Configuration" in black text which is quickly
replaced by "Error Checking Storage Configuration" in red text. Reentering the Installation
Destination area and changing to Custom partitioning takes me to a series of screens
that have a myriad of options of how to partition the 2TB drive.

What I need is some guidance of how the 2TB drive should be partitioned - how many
sectors, what mount points should be created, what format the
sectors should be reformatted to, and what should be the sector size?

The installer seems to be acting as thought it can't write to the disk drive as though
the disk drive is write protected somehow.

Any thoughts or suggestions?

imirosav
Posts: 1
Joined: 2020/02/23 21:34:48

Re: CentOS 8 install fails on MacMini4,1

Post by imirosav » 2020/02/23 21:39:06

I am having the exact issue described in previous post above and would love for someone to share a workaround - i.e. setting petitions outside of the installer, and getting them ready for CentOS install.

Has anyone done this?

User avatar
MattPie
Posts: 5
Joined: 2018/05/22 21:48:32

Re: CentOS 8 install fails on MacMini4,1

Post by MattPie » 2020/02/24 14:29:13

This is being tracked in an Red Hat bug that's WONTFIX. Red Hat has decided they're not interested in Mac hardware I guess. I can't entirely blame them, most people that have a Mac want MacOS, or they'd buy another brand and put Linux on that. In any case, via comment #1 I found this solution. I have two Mac Minis 4,1 (mid-2010) running RHEL and CentOS 8.1 using this method (also in a later comment on the bug).
https://bugzilla.redhat.com/show_bug.cgi?id=1751311

Start:
- Boot Centos/RHEL 8 ISO Normally (I used 8.1 of each)
- Do the normal setup of network, packages, etc.
- Enter disk partitioning
- Select your disk
- At the bottom, click the "Full disk summary and boot loader" text
- Click on the disk in the list
- Click "Do not install boot loader"
- Close
- Select "Custom" (I didn't try automatic, but it probably would not create the EFI partition)
- Done in the top left to get to the partitioning screen
- Delete existing partitions if needed
- Click +
- CentOS 8: create /boot/efi mountpoint, 600M, Standard EFI partition
- RHEL 8: create /foo mountpoint, 600M, Standard EFI partition, then edit the partition to be on /boot/efi
- Click + repeatedly to create the rest of the partitions as usual (/boot, /, swap, /home, etc.)
- Done
- During the install, there may be an error about the mactel package, just continue
- On reboot, both times I've let it get to the grub prompt, but there's no grub.cfg; not sure if this is required
- Boot off ISO into rescue mode
- Choose 1 to mount the system on /mnt/sysimage
- At the shell, chroot /mnt/sysimage
- Check on the files in /boot to make sure they exist: ls -l /boot/ /boot/efi/EFI/redhat (or centos)
- Run the create the grub.cfg file: grub2-mkconfig -o /boot/efi/EFI/centos/grub.cfg
- I got a couple reload ioctl errors, but that didn't seem to hurt anything
- exit
- Next reboot should be fine, and as mentioned above it'll reboot again after SELinux labelling

TheBearAK
Posts: 1
Joined: 2020/12/24 00:37:20

Re: CentOS 8 install fails on MacMini4,1

Post by TheBearAK » 2020/12/24 00:45:06

This worked for me until I did a YUM update and now it goes to black screen and locks up. I tried re-doing the grub.cfg file just to make sure it wasn't the issue.

The big thing is that YUM update updates it from 8.2 to 8.3 (kernel update) which is what breaks it.

If I hold down the option key to select a boot device, as soon as I select the CentOS installation it locks up.

I'm going to keep poking around on how to fix this, but I thought I'd put it here in case someone else already came up with a solution.

Post Reply

Return to “CentOS 8 - General Support”