Monday, May 6, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 4101  / 2 Years ago, tue, march 8, 2022, 11:07:49

After installing Ubuntu 11.10 on a pc which already has Windows 7 I get this error:



error: invalid arch independent ELF magic.
grub rescue>


So I used Supergrub boot disk to get into Ubuntu. And made sure that grub-efi-amd64 package is present, and I ran sudo grub-install /dev/sda command. That also led to the same error. Then I tried the solution given here and here. That also gave same error. fdisk -ul /dev/sda shows that boot partition (/dev/sda1) is a msdos partition. /dev/sda6 is root partition and /dev/sda9 is the home partition. So, how can I solve this issue?


More From » boot

 Answers
3

It's been almost four months, but if you still need a solution, my recommendation is to switch to a different boot loader. In my experience, GRUB 2 (which Ubuntu uses by default) is the least reliable of the common EFI boot loaders for Linux. Given that you're dual-booting with Windows, you're probably best off with either Fedora's patched GRUB Legacy or a combination of ELILO and either rEFInd or rEFIt. Of these, you can do the combination of ELILO and rEFIt using Ubuntu packages, but you'll need to do some manual configuration, and Ubuntu's rEFIt package has some bugs on UEFI-based PCs. (It works better on Macs.) Thus, you'll probably have to go beyond the packaging system to manually download either GRUB Legacy or rEFInd.


[#41014] Tuesday, March 8, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
piscen

Total Points: 134
Total Questions: 117
Total Answers: 133

Location: Indonesia
Member since Wed, Jul 7, 2021
3 Years ago
;