Hello, I am a Linux beginner, but not entirely inexperienced. Comfortable with CLI and finding my way around… mostly. I want to run Ubuntu on a 2007 Mac Mini, which I think is possible and it’s almost working!
After a lot of research I made a Desktop 24.04 live persistent USB stick which works. I have rEFInd installed on the Mini and it sees the MacOS (which runs fine) and GRUB on the USB stick. GRUB gives the correct menu and Ubuntu runs from the “Try Linux” selection. I get the desktop and all the rest, so I have a working “live” install.
Added a FAT32 partition for Linux on the Mac HD, and have run the Ubuntu installer from the live desktop several times. During setup it correctly finds the UEFI partition and the Linux partition on the HD. But the install always ends with an error message. When I look at the log (which does not seem to be saved anywhere) it appears the problem is right at the end (screenshot). If I try to boot Linux from the HD at this point I get the GRUB “fallback bootloader” but it comes up with a command line instead of a menu. And the Boot command does not work (says I need to load the kernel first).
I have tried the boot-repair utility a couple times with no improvement. I should note that to make GRUB work at all on the USB or the HD I had to add a file called bootia32.efi to /boot. There is also a file called efi.img which must be in /boot/grub/ on the USB in order for GRUB to boot Ubuntu. I tried putting both of those files in their respective places (I think) on the HD but that has not made GRUB run correctly or allowed Ubuntu to boot.
I have the sense that this might be a problem with GRUB not locating all the parts, or something about partition tables… I have not done a new install of just GRUB, partly because the installer should do it correctly, and partly because I am not sure how to specify the “install device.” When I use /dev/sda1/ (which is the UEFI partition) it says “failed to get canonical path of /cow.” I also tried a couple other ideas which did not work, and I’m at the limit of my understanding. See screenshots of Drives listing.
So it’s time for advice from real Linux users. I’d like to preserve the MacOS on the HD, but I don’t care about the Linux partition, happy to delete and start again. Thank you to anyone who can attempt this one, sorry for the long post!