Wednesday, May 8, 2024
10
rated 0 times [  10] [ 0]  / answers: 1 / hits: 79460  / 2 Years ago, sat, may 14, 2022, 9:42:42

I am stuck with a rather irritating problem I ran into after installing 11.10 on my macbook pro 5,5.



I did a clean install efi booting into the setup using the desktop cd. Upon the first reboot I was presented with the "invalid arch independent ELF magic" and grubs rescue console.



I have read GRUB: "invalid arch independent ELF magic" after install on SSD but the solution is no solution for me since installing grub via live cd only means installing the mbr version and I can't seem to find any manual on how to install grub-efi while booted into the live cd.



So my question is: How can I either edit the grubx64.efi file in my EFI Partition, reinstall grub-efi with a live CD / DVD or use grub rescue commands to fix this issue?


More From » installation

 Answers
5

The solution for me was (and probably for anyone having that problem):



Boot into the live cd and type into the terminal (of course you must edit the mounting operations respecting your own partition table):



sudo apt-get install grub-efi-amd64
sudo mount /dev/sda3 /mnt
sudo mount /dev/sda1 /mnt/boot
sudo grub-install --root-directory=/mnt /dev/sda


Now grubx64.efi should boot without any problems.



Running update-grub while booted into ubuntu restored the more eye friendly looks of the grub boot menu.


[#42576] Sunday, May 15, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ticeate

Total Points: 497
Total Questions: 128
Total Answers: 112

Location: Samoa
Member since Fri, Nov 27, 2020
4 Years ago
;