Score:0

(early) 2009 Imac not booting Ubuntu 20.04 after updates and running boot repair

jp flag

After attempting to boot multiple times the machine continues to cycle to a black screen after displaying the Ubuntu load screen. This happened after installing some apps and updates. I would be happy to reinstall, but have 280+ GB's of photo's and video renderings that I cannot lose. Has anyone found a solution to this sort of problem?

I have tried running boot repair from install drive however still encountering same issue. Boot-repair diagnostics and link below.

After running boot repair in demo mode on install drive: PasteBin Link

Paste from boot-repair 01 February 2022 22:04 +0000:

boot-repair-4ppa171                                              [20220201_2203]

============================= Boot Repair Summary ==============================


Error code 12
mount -r /dev/sda1 /mnt/boot-sav/sda1 
mount -r /dev/sda1 : Error code 12
Error code 12
mount -r /dev/sda1 /mnt/boot-sav/sda1 
mount -r /dev/sda1 : Error code 12
Error code 12
mount -r /dev/sda1 /mnt/boot-sav/sda1 
mount -r /dev/sda1 : Error code 12



Error: Both the primary and backup GPT tables are corrupt.  Try making a fresh table, and using Parted's rescue feature to recover partitions.
NTFS signature is missing.
Failed to mount '/dev/sda1': Invalid argument
The device '/dev/sda1' doesn't seem to have a valid NTFS.
Maybe the wrong device is used? Or the whole disk instead of a
partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?
NTFS signature is missing.
Failed to mount '/dev/sda1': Invalid argument
The device '/dev/sda1' doesn't seem to have a valid NTFS.
Maybe the wrong device is used? Or the whole disk instead of a
partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?

Recommended repair: ____________________________________________________________

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


/boot/efi added in sda3/fstab
rm /mnt/boot-sav/sda2/efi/Boot/bootx64.efi
mv /mnt/boot-sav/sda2/efi/Boot/bkpbootx64.efi /mnt/boot-sav/sda2/efi/Boot/bootx64.efi
Mount sda2 on /media/ubuntu/456dedaa-480c-4b23-ae0d-4807b0ac6eff/boot/efi

======================== Reinstall the grub-efi of sda3 ========================

grub-install --version
grub-install (GRUB) 2.04-1ubuntu26.13

efibootmgr -v from chroot before grub install
BootCurrent: 0000
BootOrder: 0002,0001,0000,0080,BAFC,0000,0000,0000,0000,0000,0000,0534,BD2B,0000,0000,AB30,BD2A,0000,0000,B018,BD2A,0000,0000,6ED0,BFA8,0000,0000,0000,0000,0000,0000,5647,BEBB,0000,0000,B018,BD2A,0000,0000,9B18,BD2C,0000,0000,6ED0,BFA8,0000,0000,C48C,BEBB,0000,0000,6EA0,BFA8,0000,0000,0000,0000,0000,0000,0601,BEBC,0000,0000,0B80,BEBC,0000,0000,6ED0,BFA8,0000,0000,54D2,BEBB,0000,0000,9F18,BD2C,0000,0000,9018,BD2C,0000,0000,C698
Boot0000* elementary OS 6.1 Jólnir  HD(1,GPT,050f6ac6-d6ca-4d7c-bb2c-7fdbe7ea2ee4,0x1000,0x838f7)/File(EFIubuntushimx64.efi)
Boot0001* elementary OS 6.1 Jólnir  HD(1,GPT,6de592f6-8b17-448b-a8b9-49288d009732,0x1000,0x838f7)/File(EFIubuntushimx64.efi)
Boot0002* ubuntu    HD(2,GPT,974b4b45-2f64-4ed7-96ed-b907764e23c0,0x1000,0x100800)/File(EFIubuntugrubx64.efi)
Boot0080* Mac OS X  PciRoot(0x0)/Pci(0xb,0x0)/Sata(0,0,0)/HD(2,GPT,94987070-8856-45f5-84cb-9ec8363d4080,0x64028,0x4a6be340)
Boot0081* Mac OS X  PciRoot(0x0)/Pci(0xb,0x0)/Sata(0,0,0)/HD(2,GPT,94987070-8856-45f5-84cb-9ec8363d4080,0x64028,0x4a6be340)
BootFFFF*   PciRoot(0x0)/Pci(0x6,0x1)/USB(1,0)/HD(1,MBR,0x2cf4ba3a,0x506fcc,0x1f40)/File(EFIBOOTBOOTX64.efi)

uname -r in chroot
5.11.0-27-generic

grub-install --efi-directory=/boot/efi --target=x86_64-efi --no-uefi-secure-boot
Installing for x86_64-efi platform.
Installation finished. No error reported.
df /dev/sda2
mv /media/ubuntu/456dedaa-480c-4b23-ae0d-4807b0ac6eff/boot/efi/EFI/Boot/bootx64.efi /media/ubuntu/456dedaa-480c-4b23-ae0d-4807b0ac6eff/boot/efi/EFI/Boot/bkpbootx64.efi
cp /media/ubuntu/456dedaa-480c-4b23-ae0d-4807b0ac6eff/boot/efi/efi/ubuntu/grubx64.efi /media/ubuntu/456dedaa-480c-4b23-ae0d-4807b0ac6eff/boot/efi/EFI/Boot/bootx64.efi

grub-install --efi-directory=/boot/efi --target=x86_64-efi --no-uefi-secure-boot
Installing for x86_64-efi platform.
Installation finished. No error reported.

efibootmgr -v from chroot after grub install
BootCurrent: 0000
BootOrder: 0002,0001,0000,0080,BAFC,0000,0000,0000,0000,0000,0000,0534,BD2B,0000,0000,AB30,BD2A,0000,0000,B018,BD2A,0000,0000,6ED0,BFA8,0000,0000,0000,0000,0000,0000,5647,BEBB,0000,0000,B018,BD2A,0000,0000,9B18,BD2C,0000,0000,6ED0,BFA8,0000,0000,C48C,BEBB,0000,0000,6EA0,BFA8,0000,0000,0000,0000,0000,0000,0601,BEBC,0000,0000,0B80,BEBC,0000,0000,6ED0,BFA8,0000,0000,54D2,BEBB,0000,0000,9F18,BD2C,0000,0000,9018,BD2C,0000,0000,C698
Boot0000* elementary OS 6.1 Jólnir  HD(1,GPT,050f6ac6-d6ca-4d7c-bb2c-7fdbe7ea2ee4,0x1000,0x838f7)/File(EFIubuntushimx64.efi)
Boot0001* elementary OS 6.1 Jólnir  HD(1,GPT,6de592f6-8b17-448b-a8b9-49288d009732,0x1000,0x838f7)/File(EFIubuntushimx64.efi)
Boot0002* ubuntu    HD(2,GPT,974b4b45-2f64-4ed7-96ed-b907764e23c0,0x1000,0x100800)/File(EFIubuntugrubx64.efi)
Boot0080* Mac OS X  PciRoot(0x0)/Pci(0xb,0x0)/Sata(0,0,0)/HD(2,GPT,94987070-8856-45f5-84cb-9ec8363d4080,0x64028,0x4a6be340)
Boot0081* Mac OS X  PciRoot(0x0)/Pci(0xb,0x0)/Sata(0,0,0)/HD(2,GPT,94987070-8856-45f5-84cb-9ec8363d4080,0x64028,0x4a6be340)
BootFFFF*   PciRoot(0x0)/Pci(0x6,0x1)/USB(1,0)/HD(1,MBR,0x2cf4ba3a,0x506fcc,0x1f40)/File(EFIBOOTBOOTX64.efi)
Warning: NVram was not modified.

chroot /media/ubuntu/456dedaa-480c-4b23-ae0d-4807b0ac6eff update-grub
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.13.0-27-generic
Found initrd image: /boot/initrd.img-5.13.0-27-generic
Found linux image: /boot/vmlinuz-5.11.0-27-generic
Found initrd image: /boot/initrd.img-5.11.0-27-generic
grub-probe: error: cannot find a GRUB drive for /dev/sdb1.  Check your device.map.
NTFS signature is missing.
Failed to mount '/dev/sda1': Invalid argument
The device '/dev/sda1' doesn't seem to have a valid NTFS.
Maybe the wrong device is used? Or the whole disk instead of a
partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?

Unhide GRUB boot menu in sda3/boot/grub/grub.cfg

Boot successfully repaired.

You can now reboot your computer.
Please do not forget to make your UEFI firmware boot on the Ubuntu 20.04.3 LTS entry (sda2/efi/ubuntu/grubx64.efi file) !


============================ Boot Info After Repair ============================

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

sda1: __________________________________________________________________________

    File system:       
    Boot sector type:  -
    Boot sector info: 

sda2: __________________________________________________________________________

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

sda3: __________________________________________________________________________

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

sdb: ___________________________________________________________________________

    File system:       iso9660
    Boot sector type:  Unknown
    Boot sector info: 
    Mounting failed:   mount: /mnt/BootInfo/FD/sdb: /dev/sdb already mounted or mount point busy.


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

OS#1:   Ubuntu 20.04.3 LTS on sda3

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

CPU architecture: 64-bit
Video: C79 [GeForce 9400] from NVIDIA Corporation
Live-session OS is Ubuntu 64-bit (Ubuntu 20.04.3 LTS, focal, x86_64)

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

The firmware is EFI-compatible, and is set in EFI-mode for this live-session.

BootCurrent: 0000
BootOrder: 0002,0001,0000,0080,BAFC,0000,0000,0000,0000,0000,0000,0534,BD2B,0000,0000,AB30,BD2A,0000,0000,B018,BD2A,0000,0000,6ED0,BFA8,0000,0000,0000,0000,0000,0000,5647,BEBB,0000,0000,B018,BD2A,0000,0000,9B18,BD2C,0000,0000,6ED0,BFA8,0000,0000,C48C,BEBB,0000,0000,6EA0,BFA8,0000,0000,0000,0000,0000,0000,0601,BEBC,0000,0000,0B80,BEBC,0000,0000,6ED0,BFA8,0000,0000,54D2,BEBB,0000,0000,9F18,BD2C,0000,0000,9018,BD2C,0000,0000,C698
Boot0000* elementary OS 6.1 Jólnir  HD(1,GPT,050f6ac6-d6ca-4d7c-bb2c-7fdbe7ea2ee4,0x1000,0x838f7)/File(\EFI\ubuntu\shimx64.efi)
Boot0001* elementary OS 6.1 Jólnir  HD(1,GPT,6de592f6-8b17-448b-a8b9-49288d009732,0x1000,0x838f7)/File(\EFI\ubuntu\shimx64.efi)
Boot0002* ubuntu    HD(2,GPT,974b4b45-2f64-4ed7-96ed-b907764e23c0,0x1000,0x100800)/File(\EFI\ubuntu\grubx64.efi)
Boot0080* Mac OS X  PciRoot(0x0)/Pci(0xb,0x0)/Sata(0,0,0)/HD(2,GPT,94987070-8856-45f5-84cb-9ec8363d4080,0x64028,0x4a6be340)
Boot0081* Mac OS X  PciRoot(0x0)/Pci(0xb,0x0)/Sata(0,0,0)/HD(2,GPT,94987070-8856-45f5-84cb-9ec8363d4080,0x64028,0x4a6be340)
BootFFFF*   PciRoot(0x0)/Pci(0x6,0x1)/USB(1,0)/HD(1,MBR,0x2cf4ba3a,0x506fcc,0x1f40)/File(\EFI\BOOT\BOOTX64.efi)

b0c4ee1c8372563669f2ee1e08167835   sda2/BOOT/bkpbootx64.efi
b0c4ee1c8372563669f2ee1e08167835   sda2/BOOT/bootx64.efi
85fa9d77b929ec4231aba29476574eb6   sda2/BOOT/fbx64.efi
469e608783843a701d172242f016c79c   sda2/BOOT/mmx64.efi
b0c4ee1c8372563669f2ee1e08167835   sda2/ubuntu/grubx64.efi
469e608783843a701d172242f016c79c   sda2/ubuntu/mmx64.efi
728124f6ec8e22fbdbe7034812c81b95   sda2/ubuntu/shimx64.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): _________________________________________________________

sda2    : no-os,    32, nopakmgr,   no-docgrub, nogrub, nogrubinstall,  no-grubenv, noupdategrub,   not-far
sda3    : is-os,    64, apt-get,    signed grub-pc grub-efi ,   grub2,  grub-install,   grubenv-ok, update-grub,    farbios
sda1    : no-os,    32, nopakmgr,   no-docgrub, nogrub, nogrubinstall,  no-grubenv, noupdategrub,   not-far

Partitions info (2/3): _________________________________________________________

sda2    : is---ESP, part-has-no-fstab,  no-nt,  no-winload, no-recov-nor-hid,   no-bmgr,    notwinboot
sda3    : isnotESP, fstab-has-goodEFI,  no-nt,  no-winload, no-recov-nor-hid,   no-bmgr,    notwinboot
sda1    : isnotESP, part-has-no-fstab,  no-nt,  no-winload, no-recov-nor-hid,   no-bmgr,    notwinboot

Partitions info (3/3): _________________________________________________________

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

fdisk -l (filtered): ___________________________________________________________

Disk sda: 596.18 GiB, 640135028736 bytes, 1250263728 sectors
Disk identifier: 6B658139-331E-490A-ABC0-0DCD56493C0F
        Start       End   Sectors   Size Type
sda1     2048      4095      2048     1M Linux filesystem
sda2     4096   1054719   1050624   513M EFI System
sda3  1054720 829267589 828212870 394.9G Linux filesystem
Disk sdb: 7.51 GiB, 8053063680 bytes, 15728640 sectors
Disk identifier: 0x2cf4ba3a
      Boot   Start      End Sectors  Size Id Type
sdb1  *          0  5999871 5999872  2.9G  0 Empty
sdb2       5271500  5279499    8000  3.9M ef EFI (FAT-12/16/32)
sdb3       6000640 15728639 9728000  4.7G 83 Linux

parted -lm (filtered): _________________________________________________________

sda:640GB:scsi:512:512:gpt:ATA WDC WD6400AAKS-4:;
1:1049kB:2097kB:1049kB:::;
2:2097kB:540MB:538MB:fat32:EFI System Partition:boot, esp;
3:540MB:425GB:424GB:ext4::;
sdb:8053MB:scsi:512:512:unknown:General UDisk:;

Free space (filtered): _________________________________________________________

sda:610480MiB:scsi:512:512:gpt:ATA WDC WD6400AAKS-4:;
1:0.02MiB:1.00MiB:0.98MiB:free;
1:404916MiB:610480MiB:205565MiB:free;
sdb:7680MiB:scsi:512:512:unknown:General UDisk:;

blkid (filtered): ______________________________________________________________

NAME   FSTYPE   UUID                                 PARTUUID                             LABEL                    PARTLABEL
sda                                                                                                                
├─sda1                                               1fdaed5c-2e8a-4828-aa10-e5b0f62fb96b                          
├─sda2 vfat     C4C9-DAC9                            974b4b45-2f64-4ed7-96ed-b907764e23c0                          EFI System Partition
└─sda3 ext4     456dedaa-480c-4b23-ae0d-4807b0ac6eff 1f224ee9-6d44-4968-89a5-cced519f350e                          
sdb    iso9660  2021-08-19-11-03-38-00                                                    Ubuntu 20.04.3 LTS amd64 
├─sdb1 iso9660  2021-08-19-11-03-38-00               2cf4ba3a-01                          Ubuntu 20.04.3 LTS amd64 
├─sdb2 vfat     54C5-9C6C                            2cf4ba3a-02                                                   
└─sdb3 ext4     128e0594-dfa6-4795-a11c-8d51604c47aa 2cf4ba3a-03                          writable                 

Mount points (filtered): _________________________________________________________________

                                                               Avail Use% Mounted on
/dev/disk/by-label/writable[/install-logs-2022-02-01.0/crash]   4.2G   1% /var/crash
/dev/disk/by-label/writable[/install-logs-2022-02-01.0/log]     4.2G   1% /var/log
/dev/sda2                                                     508.9M   1% /mnt/boot-sav/sda2
/dev/sda3                                                     178.3G  49% /media/ubuntu/456dedaa-480c-4b23-ae0d-4807b0ac6eff
/dev/sdb1                                                          0 100% /cdrom

Mount options (filtered): ________________________________________________________________

/dev/disk/by-label/writable[/install-logs-2022-02-01.0/crash] rw,relatime
/dev/disk/by-label/writable[/install-logs-2022-02-01.0/log]   rw,relatime
/dev/sda2                                                     rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro
/dev/sda3                                                     rw,nosuid,nodev,relatime
/dev/sdb1                                                     ro,noatime,nojoliet,check=s,map=n,blocksize=2048

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

search.fs_uuid 456dedaa-480c-4b23-ae0d-4807b0ac6eff root hd0,gpt3 
set prefix=($root)'/boot/grub'
configfile $prefix/grub.cfg

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

Ubuntu   456dedaa-480c-4b23-ae0d-4807b0ac6eff
Ubuntu, with Linux 5.13.0-27-generic   456dedaa-480c-4b23-ae0d-4807b0ac6eff
Ubuntu, with Linux 5.11.0-27-generic   456dedaa-480c-4b23-ae0d-4807b0ac6eff
### END /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_uefi-firmware ###

========================== sda3/etc/fstab (filtered) ===========================

# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda3 during installation
UUID=456dedaa-480c-4b23-ae0d-4807b0ac6eff /               ext4    errors=remount-ro 0       1
# /boot/efi was on /dev/sda2 during installation
/swapfile                                 none            swap    sw              0       0
UUID=C4C9-DAC9  /boot/efi       vfat    defaults      0       1

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

GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=menu
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""
GRUB_DISABLE_OS_PROBER=false

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

           GiB - GB             File                                 Fragment(s)
   0.502937317 = 0.540024832    boot/grub/grub.cfg                             1
   7.481140137 = 8.032813056    boot/vmlinuz                                   1
   5.940425873 = 6.378483712    boot/vmlinuz-5.11.0-27-generic                 2
   7.481140137 = 8.032813056    boot/vmlinuz-5.13.0-27-generic                 1
   5.940425873 = 6.378483712    boot/vmlinuz.old                               2
 191.784885406 = 205.927452672  boot/initrd.img                                3
  59.522739410 = 63.912054784   boot/initrd.img-5.11.0-27-generic              3
 191.784885406 = 205.927452672  boot/initrd.img-5.13.0-27-generic              3
  59.522739410 = 63.912054784   boot/initrd.img.old                            3

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

-rwxr-xr-x 1 root root 18151 Aug 12 09:18 10_linux
-rwxr-xr-x 1 root root 42359 Aug 12 09:18 10_linux_zfs
-rwxr-xr-x 1 root root 12894 Aug 12 09:18 20_linux_xen
-rwxr-xr-x 1 root root 12059 Aug 12 09:18 30_os-prober
-rwxr-xr-x 1 root root  1424 Aug 12 09:18 30_uefi-firmware
-rwxr-xr-x 1 root root   214 Aug 12 09:18 40_custom
-rwxr-xr-x 1 root root   216 Aug 12 09:18 41_custom
us flag
You can boot from a live USB, and take a backup of your photos or videos (copy them to another partition or an external hard drive) before you reinstall. It is a good idea to keep the Ubuntu partition and the data partition separate. And of course, you should always keep a backup (in either cloud storage or external hard drive).
David avatar
cn flag
%This happened after installing some apps and updates% What apps?
austin brooks avatar
jp flag
@David I couldn't name all apps but here is the link I referenced and picked and choose what I wanted most.
austin brooks avatar
jp flag
https://fossbytes.com/things-to-do-after-installing-ubuntu/
austin brooks avatar
jp flag
@ArchismanPanigrahi, Do you think it would be a good idea to install a fresh copy of ubuntu on a new partition and copy them to the new partition install? And possibly once complete, can delete the old corrupt partition?
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.