1

I'm trying to install Ubuntu 24.04.1 on a late 2009 27” iMac. The installation appeared to work flawlessly, but when I tried to boot the system, this is what happened.

  1. POST completes and does the Mac chime.
  2. Screen displays a non blinking cursor for 7 seconds.
  3. An Ubuntu loading screen displays for about 3 seconds, then the screen goes black and stays that way indefinitely.

I tried to bring up the Grub menu, but can’t seem to do that. My thought is that I’d change the boot option to add no mode set which I had to do when booting from the installation USB.

I ran the Boot Info and here's the output: http://paste.ubuntu.com/p/9txMb7dd8P/

============================== Boot Info Summary ===============================

=> No boot loader is installed in the MBR of /dev/sda. => No boot loader is installed in the MBR of /dev/sdb.

sda1: __________________________________________________________________________

File system:       vfat
Boot sector type:  FAT32
Boot sector info:  No errors found in the Boot Parameter Block.
Operating System:  
Boot files:        /efi/BOOT/fbx64.efi /efi/BOOT/mmx64.efi 
                   /efi/ubuntu/grubx64.efi /efi/ubuntu/mmx64.efi 
                   /efi/ubuntu/shimx64.efi /efi/ubuntu/grub.cfg

sda2: __________________________________________________________________________

File system:       ext4
Boot sector type:  -
Boot sector info: 
Operating System:  Ubuntu 24.04.1 LTS
Boot files:        /boot/grub/grub.cfg /etc/fstab /etc/default/grub

sdb1: __________________________________________________________________________

File system:       vfat
Boot sector type:  Unknown
Boot sector info:  According to the info in the boot sector, sdb1 starts 
                   at sector 0. But according to the info from fdisk, 
                   sdb1 starts at sector 40.
Operating System:  
Boot files:        

sdb2: __________________________________________________________________________

File system:       iso9660
Boot sector type:  Grub2 (v1.99-2.00)
Boot sector info:  Grub2 (v1.99-2.00) is installed in the boot sector of 
                   sdb2 and looks at sector 0 of the same hard drive for 
                   core.img, but core.img can not be found at this 
                   location.
Operating System:  
Boot files:        /boot/grub/grub.cfg

sdb3: __________________________________________________________________________

File system:       ext4
Boot sector type:  -
Boot sector info: 
Operating System:  
Boot files:        


================================ 1 OS detected =================================

OS#1 (linux): Ubuntu 24.04.1 LTS on sda2

================================ Host/Hardware =================================

CPU architecture: 64-bit Video: RV770/M98L [Mobility Radeon HD 4850] simpledrmdrmfb from Advanced Micro Devices, Inc. [AMD/ATI] Live-session OS is Ubuntu 64-bit (Ubuntu 24.04.1 LTS, noble, x86_64)

===================================== UEFI =====================================

BIOS/UEFI firmware: 63.0.0.0.0(0.1) from Apple Inc. The firmware is EFI-compatible, and is set in EFI-mode for this live-session. SecureBoot disabled - This system doesn't support Secure Boot. BootCurrent: 0000 Timeout: 5 seconds BootOrder: 0000,0080 Boot0000* Ubuntu HD(1,GPT,2090380c-121f-4506-8c23-1b0c870466e8,0x800,0x219800)/File(\EFI\ubuntu\shimx64.efi) Boot0080* Mac OS X PciRoot(0x0)/Pci(0x1f,0x2)/Sata(0,0,0)/HD(2,GPT,d14f924e-4a57-4c14-b605-390231615137,0x64028,0x746a2d60)/VenMedia(be74fcf7-0b7c-49f3-9147-01f4042e6842,7f3bab8d1acd0845b6c9f8fd55e51b05)/File(\79B60E24-1C67-38DB-AE6C-C35F66AE9554\System\Library\CoreServices\boot.efi) Boot0082* PciRoot(0x0)/Pci(0x1f,0x2)/Sata(0,0,0)/HD(2,GPT,d14f924e-4a57-4c14-b605-390231615137,0x64028,0x7456ce40) BootFFFF* PciRoot(0x0)/Pci(0x1a,0x7)/USB(0,0)/USB(3,0)/HD(2,GPT,b50f615e-8139-4991-a486-5acd25e33254,0x64028,0x71f4fb0)/HD(2,GPT,eed3de8a-acd3-4541-ba17-9014c007d874,0xb8b5a0,0x27a0)/File(\EFI\BOOT\BOOTX64.efi)

39bc76ff6662f4fbe9aa116e4c997b41 sda1/BOOT/fbx64.efi 4ba5a5aad43c197e9fb58b76b404d287 sda1/BOOT/mmx64.efi 66f69798ad23240e43b7ba0044a914c4 sda1/ubuntu/grubx64.efi 4ba5a5aad43c197e9fb58b76b404d287 sda1/ubuntu/mmx64.efi 07e25dcaf57c776875f78fa36827c58e sda1/ubuntu/shimx64.efi 07e25dcaf57c776875f78fa36827c58e sda1/BOOT/BOOTX64.efi

============================= Drive/Partition Info =============================

Disks info: ____________________________________________________________________

sda : is-GPT, no-BIOSboot, has---ESP, not-usb, not-mmc, has-os, no-wind, 2048 sectors * 512 bytes

Partitions info (1/3): _________________________________________________________

sda1 : no-os, 64, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, not-far sda2 : is-os, 64, apt-get, signed grub-efi , grub2, grub-install, grubenv-ok, update-grub, end-after-100GB

Partitions info (2/3): _________________________________________________________

sda1 : is---ESP, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot, vfat sda2 : isnotESP, fstab-has-bad-efi, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot, ext4

Partitions info (3/3): _________________________________________________________

sda1 : not--sepboot, no---boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, no--grub.d, sda sda2 : not--sepboot, with-boot, fstab-without-boot, not-sep-usr, with--usr, fstab-without-usr, std-grub.d, sda

fdisk -l (filtered): ___________________________________________________________

Disk sda: 931.51 GiB, 1000204886016 bytes, 1953525168 sectors Disk identifier: B39B0911-B91B-47C3-9057-0B60244836E2 Start End Sectors Size Type sda1 2048 2203647 2201600 1G EFI System sda2 2203648 1953521663 1951318016 930.5G Linux filesystem Disk sdb: 57.3 GiB, 61524148224 bytes, 120164352 sectors Disk identifier: 790484D5-A8D9-42F7-8C9D-653D2D3DA9F0 Start End Sectors Size Type sdb1 40 409639 409600 200M EFI System sdb2 409640 119902167 119492528 57G Apple HFS/HFS+ sdb3 119902208 120162303 260096 127M Linux filesystem

parted -lm (filtered): _________________________________________________________

sda:1000GB:scsi:512:512:gpt:ATA Samsung SSD 850:; 1:1049kB:1128MB:1127MB:fat32::boot, esp; 2:1128MB:1000GB:999GB:ext4::; sdb:61.5GB:scsi:512:512:gpt: USB SanDisk 3.2Gen1:; 1:20.5kB:210MB:210MB:fat32:EFI System Partition:boot, esp; 2:210MB:61.4GB:61.2GB:::; 3:61.4GB:61.5GB:133MB:ext4::;

blkid (filtered): ______________________________________________________________

NAME FSTYPE UUID PARTUUID LABEL PARTLABEL sda
├─sda1 vfat 65DA-AC52 2090380c-121f-4506-8c23-1b0c870466e8
└─sda2 ext4 e608f276-2212-4055-8589-8a39612de2a1 a18a4b73-0652-473d-a854-f283ef98295f
sdb
├─sdb1 vfat 67E3-17ED 73e73f22-e780-44f2-9145-d1e6e32b556e EFI EFI System Partition ├─sdb2 iso9660 2024-08-27-16-23-26-00 b50f615e-8139-4991-a486-5acd25e33254 Ubuntu 24.04.1 LTS amd64 └─sdb3 ext4 0e05daae-d9d8-49a9-86c0-59d7d2a33b5c bc263d45-c278-4787-98ce-1db95fd0e6a2 writable
sdc

Mount points (filtered): _______________________________________________________

                                                           Avail Use% Mounted on

/dev/sda1 1G 1% /mnt/boot-sav/sda1 /dev/sda2 854.9G 1% /mnt/boot-sav/sda2 /dev/sdb2 0 100% /cdrom

Mount options (filtered): ______________________________________________________

/dev/sda1 vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro /dev/sda2 ext4 rw,relatime /dev/sdb2 iso9660 ro,noatime,nojoliet,check=s,map=n,blocksize=2048,iocharset=utf8

===================== sda1/efi/ubuntu/grub.cfg (filtered) ======================

search.fs_uuid e608f276-2212-4055-8589-8a39612de2a1 root hd0,gpt2 set prefix=($root)'/boot/grub' configfile $prefix/grub.cfg

====================== sda2/boot/grub/grub.cfg (filtered) ======================

Ubuntu e608f276-2212-4055-8589-8a39612de2a1

END /etc/grub.d/30_os-prober

UEFI Firmware Settings uefi-firmware

END /etc/grub.d/30_uefi-firmware

========================== sda2/etc/fstab (filtered) ===========================

<file system> <mount point> <type> <options> <dump> <pass>

/ was on /dev/sda2 during curtin installation

/dev/disk/by-uuid/e608f276-2212-4055-8589-8a39612de2a1 / ext4 defaults 0 1

/boot/efi was on /dev/sda1 during curtin installation

/dev/disk/by-uuid/65DA-AC52 /boot/efi vfat defaults 0 1 /swap.img none swap sw 0 0

======================= sda2/etc/default/grub (filtered) =======================

GRUB_DEFAULT=0 GRUB_TIMEOUT_STYLE=hidden GRUB_TIMEOUT=0 GRUB_DISTRIBUTOR=( . /etc/os-release; echo ${NAME:-Ubuntu} ) 2&gt;/dev/null || echo Ubuntu GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" GRUB_CMDLINE_LINUX=""

==================== sda2: Location of files loaded by Grub ====================

       GiB - GB             File                                 Fragment(s)

791.032661438 = 849.364852736 boot/grub/grub.cfg 1 14.767845154 = 15.856852992 boot/vmlinuz 1 14.767845154 = 15.856852992 boot/vmlinuz-6.8.0-51-generic 1 14.767845154 = 15.856852992 boot/vmlinuz.old 1 15.558589935 = 16.705908736 boot/initrd.img 2 15.558589935 = 16.705908736 boot/initrd.img-6.8.0-51-generic 2 15.558589935 = 16.705908736 boot/initrd.img.old 2

===================== sda2: ls -l /etc/grub.d/ (filtered) ======================

-rwxr-xr-x 1 root root 18133 Apr 4 2024 10_linux -rwxr-xr-x 1 root root 43202 Apr 4 2024 10_linux_zfs -rwxr-xr-x 1 root root 14513 Apr 4 2024 20_linux_xen -rwxr-xr-x 1 root root 786 Apr 4 2024 25_bli -rwxr-xr-x 1 root root 13120 Apr 4 2024 30_os-prober -rwxr-xr-x 1 root root 1174 Apr 4 2024 30_uefi-firmware -rwxr-xr-x 1 root root 722 Apr 5 2024 35_fwupd -rwxr-xr-x 1 root root 214 Apr 4 2024 40_custom -rwxr-xr-x 1 root root 215 Apr 4 2024 41_custom

====================== sdb2/boot/grub/grub.cfg (filtered) ======================

Try or Install Ubuntu Ubuntu (safe graphics) Boot from next volume UEFI Firmware Settings Test memory

==================== sdb2: Location of files loaded by Grub ====================

       GiB - GB             File                                 Fragment(s)
        ?? = ??             boot/grub/grub.cfg                             1



Suggested repair: ______________________________________________________________

The default repair of the Boot-Repair utility would reinstall the grub-efi of sda2, using the following options: sda1/boot/efi Additional repair would be performed: unhide-bootmenu-10s use-standard-efi-file

Final advice in case of suggested repair: ______________________________________

Please do not forget to make your UEFI firmware boot on the Ubuntu 24.04.1 LTS entry (sda1/efi/**/grub.efi (** will be updated in the final message) file) !

karel
  • 122,292
  • 133
  • 301
  • 332
gtb104
  • 11

1 Answers1

1

Your iMac is EFI-compatible, but its falling back to GRUB2 and failing to boot in "legacy-mode". iMacs do not support BIOS/legacy booting.

It looks like this is a single HDD/SSD system (sda), and your installation media is (sdb), unless I'm missing something.

According to the GRUB boot info, you have an intact FAT32 EFI partition and efi boot files, but the iMac EFI manager is not recognizing them.

I'd try booting to a USB with rEFInd boot manager to see if you can load Ubuntu from there:

(1) If you can't boot from rEFInd try reinstalling from the live boot environment and use GParted to completely wipe the drive before installing. I'd also recommend using Ventoy instead of "burning" the ISO to disk each time.

(2) If your OS boots correctly from rEFInd (grubx64.efi) you can install rEFInd boot manager to the EFI partiton (option in the rEFInd menu) which should resolve the issue on future boots.