Error invalid arch independent elf magic grub rescue

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 ...

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?

Community's user avatar

asked Oct 25, 2011 at 17:36

Cadoc's user avatar

0

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.

answered Oct 27, 2011 at 22:16

Cadoc's user avatar

CadocCadoc

3211 gold badge2 silver badges8 bronze badges

2

I had the same problem “invalid arch independent ELF magic”.

I was installing from a USB stick booted from the Bios in UEFI mode.

After a couple a couple unsuccessful reinstallation of 12.04,I tried the same installation with the the USB stick booted without the UEFI mode and it works.

For your information my setting on a 120GB SSD

sda1 /windows 90 GB   windows 7
sda2 /boot  100 MB
sda5 swap     1 GB
sda6 /        18GB   ubuntu 12.04
sda7 /home     8GB

My motherboard is P8P67 Pro with Asus EZbios and I had two choice in my boot menu for the USB with 12.04 installation.

Hope it helps!

Thomas Ward's user avatar

Thomas Ward

70.4k29 gold badges172 silver badges236 bronze badges

answered May 3, 2012 at 23:28

Snoopy's user avatar

I used the boot repair option in System Tools (I think) that was there after booting live CD/USB. Go online first (settings/WiFi) then run the repair using defaults. Worked fine for me using Zorin 15.

Well. After updating 15 (suggested updates this is new install), boot failed again with different grub error, so ran boot repair again. Said repair failed but started eventually after a few errors then second restart was normal after complete shutdown although I get an error about a theme file missing.

I’m dual booting Win 10 on an SSD (which still works ok for now until the next Win update screws it again..

Hoping that this isn’t a regular thing after every Zorin update!

answered Nov 6, 2019 at 21:41

Andy's user avatar

I had this problem after doing a fresh install of 20.04 on a DELL E5510.

The first messages were GRUB complaining the drive was encrypted. Then after another reinstall, I got the invalid arch message.

After several hours: 1. I switched my BIOS to UEFI and booted Live CD. 2. Ran Boot-Repair on my HDD. Boot repair then removed GRUB and installed grubx64.efi file. (Boot Repair wouldn’t run unless I booted the Live CD in UEFI.)

  1. Computer still complained «no bootable drive». Went back in to BIOS and had to point the UEFI interface to grubx64.efi. Prior to that, it was looking for shimx64.efi.

Hopefully you don’t spend 2 days as I did.

answered Nov 2, 2021 at 20:03

Tom D's user avatar

I have recently dual-booted a Windows PC with Debian Wheezy. The installation went fine with no errors, but when I boot to Debian I am immediately greeted with GRUB rescue:

Welcome to GRUB!

error: unknown filesystem.
Entering rescue mode...

After examining further using the set command I notice that it is booting to the wrong partition:

grub rescue> set
prefix=(hd0,gpt4)/boot/grub
root=hd0,gpt4

Here it is pointing to (hd0,gpt4) when the location Debian is installed to is (hd0,gpt5). So, I did a quick fix using set to change the variables back to what they should be:

grub rescue> set prefix=(hd0,gpt5)/boot/grub
grub rescue> set root=gd0,gpt5

After doing this, I did only what I remembered I should do to boot to the OS and ran:

grub rescue> insmod normal

This is where things start to go wrong as I get the error:

error: invalid arch independent ELF magic.

I then did some research on this problem and it seemed the common solution was to reinstall GRUB from a live CD. So, I booted into a live CD of Debian and ran the following:

sudo mount /dev/sda5 /mnt
sudo grub-install --root-directory=/mnt /dev/sda

Where I am given the error:

The file /mnt/boot/grub/stage1 not read correctly.

Although I can assure that this file does exist and is editable as I could edit it with

sudo nano /mnt/boot/grub/stage1

So what could be the problem?

Модератор: Bizdelnick

Лунный гонщик

Сообщения: 8

grub error:invalid arch independent ELF magic

DaemonTux писал(а): ↑

28.10.2012 06:03

У вас каша в голове.

Друзья, подбирая кусочком хлеба остатки глазуньи, я с помощью загрузочного ЮСБи и с горьковатой ухмылкой крапаю вам сей пост: он видится мне унизительным. Как вы можете понять из этих стенаний, положение мое, по меткому выражению Пастернака, бедственное. Буду краток (но не по причине запланированного мной на сегодня курса ирландской чечетки, а ввиду экономии вашего времени).

После установки Кубунту на новый ноутбук (тоже lenovo), винт не видит операционки. При загрузке выдает

error:invalid arch independent ELF magic
grub rescue>

Что делать и при чем тут волшебные эльфы?

Прошу помощи.

Аватара пользователя

Bizdelnick

Модератор
Сообщения: 19825
Статус: nulla salus bello
ОС: Debian GNU/Linux

Re: grub error:invalid arch independent ELF magic

Сообщение

Bizdelnick » 04.03.2013 01:18

Лунный гонщик писал(а): ↑

03.03.2013 20:05

Спасибо, конечно, за ссылку, но считаю своим приятным бытоописательским долгом уведомить вас, что, увы, не сработало.

sudo mount /dev/sda5 /mnt
mount: special device /dev/sda5 does not exist

Читайте внимательнее.

Естественно, на /dev/sda5 в моем случае находится корневой раздел установленной системы.

Нужно подставить в команду путь к Вашему корневому разделу.

Пишите правильно:

в консоли
вку́пе (с чем-либо)
в общем
вообще
в течение (часа)
новичок
нюанс
по умолчанию
приемлемо
проблема
пробовать
трафик

Аватара пользователя

Brainsburn

Сообщения: 949
Статус: /
ОС: LFS,Gentoo
Контактная информация:

Re: grub error:invalid arch independent ELF magic

Сообщение

Brainsburn » 04.03.2013 03:41

Лунный гонщик писал(а): ↑

03.03.2013 20:05

Спасибо, конечно, за ссылку, но считаю своим приятным бытоописательским долгом уведомить вас, что, увы, не сработало.

sudo mount /dev/sda5 /mnt
mount: special device /dev/sda5 does not exist

Так красиво излагаете, а споткнулись на такой простой вещи…
Если не уверены, где у вас корневой раздел, покажите содержимое /etc/fstab

Лунный гонщик

Сообщения: 8

Re: grub error:invalid arch independent ELF magic

Сообщение

Лунный гонщик » 04.03.2013 03:59

Что ж, неудачи я признать не боюсь, даже наоборот — как всякому полиглоту мне целительно говорение, особенно искреннее.

Brainsburn писал(а): ↑

04.03.2013 03:41

Если не уверены, где у вас корневой раздел, покажите содержимое /etc/fstab

# /etc/fstab: static file system information.
#
# Use ‘blkid’ to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/sda2 during installation
UUID=f3dd1d32-05c7-467c-ae8c-d877eb5f0df2 / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/sda1 during installation
UUID=0235-91CE /boot/efi vfat defaults 0 1
# swap was on /dev/sda3 during installation
UUID=0324d278-9c43-4854-a803-44c259e97044 none swap sw 0 0

I’ve created a virtual machine with Ubuntu (having TinyOS). The problem arises when I start the machine. I immediately get a black screen with written:

GRUB loading.
error: invalid arch independent ELF magic
grub rescue>

What kind of a problem is it, and more importantly how can I solve it?
I tried it on my laptop which has Windows 7 64 bit, and so I also tried it on my Ubuntu partition and also with Ubuntu, once I launch the virtual machine I get the same error!

Kazark's user avatar

Kazark

9493 gold badges11 silver badges31 bronze badges

asked Mar 26, 2013 at 17:58

Hassan Samii's user avatar

3

This happens when the GRUB core image (the boot loader’s first stage) is built for a different CPU architecture than the modules that it tries to load from /boot/grub. (Here’s the check you’re running into, modulo slight typographical changes that have been made since then; it’s called from here.) This suggests a serious error when installing the OS. It doesn’t directly relate to 64-bit support in the VM or anything like that, although it’s of course possible that that kind of thing might have confused the OS installer into doing the wrong thing somehow.

Since you asked this several years ago, it’s possible that you’ve solved it by now, that you’ve given up, or that simply reinstalling with a newer version of Ubuntu will help. But if none of those things are true:

  • Ensure that the disk image was clean before you installed the virtual machine guest. This sort of thing might happen if you have bits of GRUB left over from a previous installation.
  • Make sure you aren’t doing anything funny like trying to boot the guest using a boot loader that wasn’t installed by the guest OS installation.
  • Make sure the process of installing the guest was as simple as possible. There usually isn’t much reason to have something like a complicated partitioning setup in a VM guest, and that sort of thing just introduces ways that things can go wrong.

answered Nov 22, 2017 at 0:38

Colin Watson's user avatar

Colin WatsonColin Watson

3,5701 gold badge9 silver badges13 bronze badges

Forum rules
There are no such things as «stupid» questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help. Topics in this forum are automatically closed 6 months after creation.

j0x

[SOLVED] ERROR: Invalid Arch Independent ELF Magic

im noob to linux but i got a previous Linux Mint 12 installation along side with Windows 7, and then Linux Mint 13 was released so i tried it out, download it and made a USB version via UNetbootin (i made it on Windows 7) i have read the upgrade instructions here

http://community.linuxmint.com/tutorial/view/2

particularly this parts
7. Once you’re happy and confident that this newer release is good for you, click on «Install» on the desktop and proceed with a normal installation.
8. When asked by the installer, choose «Specify partitions manually (advanced)», select the partition that you used for your current installation of Linux Mint, assign «/» to it, and reformat it to «ext4».

so i restart Windows 7 and boot to the USB containing Linux Mint 13 and click «Install Linux Mint» on the desktop and when im prompted by «Installation Type» i choose «Something Else» and selected the EXT4 filesystem since that is Linux Mint 12 and click the «Change» button and then set «EXT4» and set «/» for it

and after the installation and reboot Linux Mint 13 i cannot boot into Windows 7 or Linux Mint 13 that is not the USB version it gives me this error

ERROR: Invalid Arch Independent ELF Magic
Grub Rescue>

i googled for this error but nothing helps, and most solutions are for SSD storage device and UEFI bios problems which is not my case, hope someone can solve my problem here, i got a lot of files on my Windows 7 and do not want to lose them

Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.

Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.

j0x

Re: ERROR: Invalid Arch Independent ELF Magic

Post

by j0x » Tue May 29, 2012 10:44 pm

bump for more information

currently im accessing my computer via the USB version of Linux Mint 13 that i made on windows 7 UNetbootin
my specs are SATA HDD, Windows 7 Ultimate 64-bit, and i download this Linux Mint 13 version -> Linux Mint 13 «Maya» — MATE (64-bit) http://www.linuxmint.com/edition.php?id=104

i open the «Install Linux Mint» again on the desktop and this is what i configured earlier

Image

Image

it seems the GRUB is gone or need some new configuration which i got no clue how to fix it (googled some solutions but they do not work or they are just not too noob friendly for me), and yes i want to Dual-Boot Windows 7 and Linux Mint

Deemoney

Re: ERROR: Invalid Arch Independent ELF Magic

Post

by Deemoney » Tue May 29, 2012 11:09 pm

I have a feeling you’ve run into a common problem I’ve seen.

On your partition screenshot, under the section: «Device for bootloader installation», /dev/sdb is selected. /dev/sdb I’d bet is your live USB. You might have a proper install, but you can’t access it.

There’s a few ways to fix this. My suggestion is this: plug in your live USB and boot from it. If my hunch is correct, you’ll get a GRUB prompt for either LM13 or Windows 7. If that’s the case, then boot to your hard drive installation for Linux Mint 13, open a terminal and type the following:

Code: Select all

sudo grub-install /dev/sda
sudo update-grub

Then eject your USB and reboot. If that works, then you have to fix your live USB by re-burning it with Unetbootin, for example.

j0x

Re: ERROR: Invalid Arch Independent ELF Magic

Post

by j0x » Tue May 29, 2012 11:38 pm

@Deemoney

when i plug-in my USB and boot from it, i do not have the option to choose between Windows 7 and Linux Mint anymore, its just Linux Mint
even so i tried those commands you gave and it give me this error

Image

and yes it looks like its a common problem from what i googled, but that made me think if this is such a common problem why their still no common solution or easier solution for this, im getting scared now that i might lose all my files on Windows 7, but thanks for the response, waiting for more help :(

j0x

Re: ERROR: Invalid Arch Independent ELF Magic

Post

by j0x » Tue May 29, 2012 11:51 pm

bump for update

i can log on to windows now after doing this

You should have fixed your MBR either before or after removing Linux because GRUB is still on the MBR and has no file to look to to boot because you removed linux.
Boot the Ubuntu Live CD/USB and when the desktop loads open a terminal and run

This will install lilo to the live session only.
Next in terminal run

Reboot without the Live CD/USB and you should boot to windows.

source: http://ubuntuforums.org/showpost.php?p= … stcount=53

now my problem is how to dual-boot Windows 7 and Linux Mint 13 since their is no GRUB2 prompt before the start of the pc boot process unlike before when i still got Linux Mint 12, when i boot my computer it goes straight to Windows 7 now when ive done that LILO and MBR solution

and i think Linux Mint 13 is already installed on my PC, but i got no sure way to check and im lost on what to do next

crborga

Re: ERROR: Invalid Arch Independent ELF Magic

Post

by crborga » Tue May 29, 2012 11:53 pm

j0x wrote:@Deemoney

when i plug-in my USB and boot from it, i do not have the option to choose between Windows 7 and Linux Mint anymore, its just Linux Mint
even so i tried those commands you gave and it give me this error

Image

and yes it looks like its a common problem from what i googled, but that made me think if this is such a common problem why their still no common solution or easier solution for this, im getting scared now that i might lose all my files on Windows 7, but thanks for the response, waiting for more help :(

just follow these instructions to restore your Windows 7 boot loader and mbr http://support.microsoft.com/kb/927392 then after that is fixed try doing

Code: Select all

sudo update-grub
sudo grub-install /dev/sda

to install Grub again which should fix it as i’ve had this issue in the past but not lately *knocks on wood* :D

j0x

Re: ERROR: Invalid Arch Independent ELF Magic

Post

by j0x » Wed May 30, 2012 12:02 am

crborga wrote:
just follow these instructions to restore your Windows 7 boot loader and mbr http://support.microsoft.com/kb/927392 then after that is fixed try doing

Code: Select all

sudo update-grub
sudo grub-install /dev/sda

to install Grub again which should fix it as i’ve had this issue in the past but not lately *knocks on wood* :D

ye i think the MBR is updated or solve now, my last post shows the steps ive done and i can boot on Windows 7 again but the problem now is how can i make that GRUB2 show again for me to dual boot between Windows7 and LinuxMint because at the moment when i start my PC it goes straight to Windows 7 now

those commands you show me do i have to boot from my Linux Mint 13 USB version first? before doing those commands?

thanks crborga

EDIT:

tried it (boot from USB again) and same error on the past reply of mine like this
Image

j0x

Re: ERROR: Invalid Arch Independent ELF Magic

Post

by j0x » Wed May 30, 2012 2:04 am

i found a solution, i re-installed Linux Mint again to think that the installer will configure GRUB but Windows 7 is still the one booting up and i do not get the GRUB screen at boot up, but this one solved the issue

How to restore the Ubuntu grub bootloader (9.10 and beyond)
First you need to find out what your drives are called. You can do this by going to a terminal and typing:

From that you need to find the device name of your Ubuntu drive, something like “/dev/sda5″.
So, still in the terminal, type:

Code: Select all

sudo mkdir /media/sda5
sudo mount /dev/sda5 /media/sda5

And then, to reinstall the grub:

Code: Select all

sudo grub-install --root-directory=/media/sda5 /dev/sda

Push enter and you’re done! Of course you need to replace “/dev/sda5″ and “/dev/sda” with what you found in the fdisk output.

source: http://ubuntuforums.org/showthread.php?t=1014708

wew, well that solves it, now i know that Linux is really hard for noobs since you got to work on the commandline and worse those commandlines are like aliens, you need a lot and a lot of time and patience reading a lot again to somehow use Linux, hope Linux will improve for noobs in the future

but at the moment Linux Mint 13 and Windows 7 are again Dual-Booting for me using GRUB version 1.99 as the screen said and from googling its GRUB2 already, thanks for your help folks!!! :D

crborga

Re: [SOLVED] ERROR: Invalid Arch Independent ELF Magic

Post

by crborga » Wed May 30, 2012 6:18 am

Using linux involves being somewhat comfortable with the command line. I was actually going to suggest that command but some reason when I was researching man pages the —root-directory wasn’t showing up so I thought it was taken out or something of the nature. Glad you got it sortred, Linux is great once you get the hang of things.

Большое спасибо всем кто откликнулся. Скажу честно, корректно я с проблемой не разобрался. Думаю вся беда в ошибке дистрибутива.

Сначала попробовал поставить grub-efi. Выделил отдельный раздел на диске с типом EFI Boot, установил Ubuntu, но все равно ничего не заработало. Несмотря на то что мат. плата (ASUS, кстати, с UEFI) увидела загрузчик и определила его в биосе как «ubuntu», grub так и продолжил писать про некорректные magic ELF. И, естественно, не загрузился. Только теперь он пытался грузиться еще и с флешки с которой и ставилась система, опознавая ее, как (fd0) и упорно пытаясь к ней обратиться. Писал что-то вроде «disk not found»…

Как я решил проблему.

Снес раздел с EFI boot, опять сделал RAID1 из двух дисков. Загрузился с флэшки без UEFI и установил Ubuntu заново. Оказалось, что если грузишься с флешки череp UEFI раздел, созданный unetbootin, то и grub ставится EFI, а если с помощью обычной загрузки, то grub-pc. В итоге, после такой установки заработало все и сразу.

Думаю нужно разбираться с UEFI, но какой-то он глючный пока, на мой взгляд.

#
9 лет, 6 месяцев назад

Темы:

1

Сообщения:

6

Участник с: 18 июля 2013

Имеется мать asus c UEFI.
Устанавливаю arch 3.9.8-1 x86_64
Один SATA диск в режиме ahci. GPT. 3 раздела:
1. /dev/sda1 — /boot (раздел отформатировал mkfs.vfat -F32 /dev/sda1)
2. /dev/sda2 — /swap
3. /dev/sda3 — /

В процессе установки был поставлен grub-efi-x86_64.
В соответствии с arch wiki GRUB был установлен на отдельный раздел в /boot

При загрузке вываливается grub rescue mode с ошибкой:
error: file /grub/i386-pc/normal.mod not found

Почему в пути присутствует «i386-pc», когда граб ставился под x86_64 ?

в той же вики нашел как переназначить путь к normal.mod.

normal.mod находится в (hd0,1)/grub/x86_64-efi/

задаю ему
grub rescue> insmod (hd0,1)/grub/x86_64-efi/normal.mod
получаю:
error: invalid arch-dependent ELF magic.

все таки как загрузить arch?

lampslave

#
9 лет, 6 месяцев назад

Темы:

32

Сообщения:

4800

Участник с: 05 июля 2011

В процессе установки был поставлен grub-efi-x86_64.

Такого пакета нет.

gan100

#
9 лет, 6 месяцев назад

Темы:

1

Сообщения:

6

Участник с: 18 июля 2013

lampslave
Такого пакета нет.

pacman -S grub-efi-x86_64 установил пакет grub 2.00.5043-2

lampslave

#
9 лет, 6 месяцев назад

Темы:

32

Сообщения:

4800

Участник с: 05 июля 2011

Это я намекаю, что используемая инструкция может быть устаревшей.
Если вам не нужны uefi и gpt, лучше разбейте диск в mbr и поставьте систему, как на компьютер с биосом.

gan100

#
9 лет, 6 месяцев назад

Темы:

1

Сообщения:

6

Участник с: 18 июля 2013

lampslave
Это я намекаю, что используемая инструкция может быть устаревшей.
Если вам не нужны uefi и gpt, лучше разбейте диск в mbr и поставьте систему, как на компьютер с биосом.

скажу так. не нужны, но хотелось бы осилить это. дак все же в чем проблема rescue mode груба? неверная версия груба? каким то образом встала версия для i386 вместо x86_64 или что?

lampslave

#
9 лет, 6 месяцев назад

Темы:

32

Сообщения:

4800

Участник с: 05 июля 2011

Я из тех, кто поленился осиливать, так что кроме совета посмотреть английскую вику ничего дельного не могу подсказать.

gan100

#
9 лет, 6 месяцев назад

Темы:

1

Сообщения:

6

Участник с: 18 июля 2013

ну дак и делаю то все по англ вике..видимо где то несрост. ладно может еще кто нибудь откликнется

elsonador

#
9 лет, 6 месяцев назад

elsonador avatar

Темы:

63

Сообщения:

996

Участник с: 09 апреля 2010

Я так понимаю, должен быть раздел, монтируемый в /boot/efi, а не просто /boot. И он должен нести файловую систему FAT32 и флаг загрузочный. По крайней мере, так говорит инструкция по установке OpenSuSe, а у них с загрузкой из UEFI проблем нет.

gan100

#
9 лет, 6 месяцев назад

Темы:

1

Сообщения:

6

Участник с: 18 июля 2013

Раздел в FAT32 c boot флагом.

Устанавливал так

# mkdir -p /boot/efi
# mount -t vfat /dev/sdXY /boot/efi

# modprobe dm-mod
# grub-install —target=x86_64-efi —efi-directory=/boot/efi —bootloader-id=arch_grub —recheck —debug

lampslave

#
9 лет, 6 месяцев назад

Темы:

32

Сообщения:

4800

Участник с: 05 июля 2011

А оно при этом ни на что не ругалось?

  • Home
  • Forum
  • The Ubuntu Forum Community
  • Ubuntu Official Flavours Support
  • General Help
  • [SOLVED] error: invalid arch independent ELF magic Precise Pangolin 12.04

  1. error: invalid arch independent ELF magic Precise Pangolin 12.04

    Hi,

    Just a note in case this is helpful for people just installing.

    After my install i reboot off the hard drive but instead of being met with GRUB, i encounter

    error: invalid arch independent ELF magic
    grub rescue >

    This is the same problem as i had under 11.10

    I solved it here: http://ubuntuforums.org/showthread.php?t=1870369&page=3

    For my partitions the solution remains:

    1. Boot to the live CD/USB
    2. Open a terminal and enter the following:

    sudo mount /dev/sda5 /mnt
    sudo grub-install —boot-directory=/mnt /dev/sda

    3. Reboot and you’ll be greeted by a GRUB screen.

    As far as i can tell this solution should work as long as you replace the partition (sdxy — sda5 in my case) with the partition in which your main install sits — GParted should tell you this or you can run

    Hope this helps someone.

    Oh, and 12.04 looks great: wonderful work developers.

    Last edited by MorrisseyJ; April 30th, 2012 at 09:49 AM.

    Reason: For grub 1.99 the install command has changed

    Thinkpad x131e


  2. Re: error: invalid arch independent ELF magic Precise Pangolin 12.04

    This post is on top of google search for «error: invalid arch independent ELF magic»…

    Already booted to liveCD… found this post… as written above, the grub-install needs —force option to work.

    Code:

    $ sudo grub-install --force --boot-directory=/mnt /dev/sda 
    /usr/sbin/grub-setup: warn: This GPT partition label has no BIOS Boot Partition; embedding won't be possible!.
    /usr/sbin/grub-setup: warn: Embedding is not possible.  GRUB can only be installed in this setup by using blocklists.  However, blocklists are UNRELIABLE and their use is discouraged..
    Installation finished. No error reported.
    ubuntu@ubuntu:/$

    … will update until solved for me.

    Anecdotally, I did NOT install Ubuntu my normal way because the installer said with UEFI booting, do something different blah blah blah, and so I do the first round of updates and get the above present on 1st reboot.

    I know everyone is officially super happy with Ubuntu, but with each new LTS, it seems things are less reliable and more and more unfuxoring is required on my part. Previously, I blamed it on 2 to 4 year old computers. This happened on brand new Core i7.

    Didn’t work. Now booting from USB stick; much faster than CD!

    Last edited by cacycleworks; June 19th, 2012 at 07:03 PM.

    Reason: update

    Kinda lost my love for ubuntu, more changey than Vista or Win8
    So LMDE it is for me until there’s a way to update my distro and not
    have everything disappear.


  3. Arrow Re: error: invalid arch independent ELF magic Precise Pangolin 12.04

    Hi
    As your disk is GPT, you need either a BIOS-boot or a EFI partition.

    Please indicate your BootInfo URL if you want more details.


  4. Re: error: invalid arch independent ELF magic Precise Pangolin 12.04

    Wow, so I did all this: http://www.rodsbooks.com/refind/installing.html

    The system saw my ubuntu installation and booted to it (after more ELF errors)

    I did as the link said about installing boot-repair. I type it, nothing happens for a few seconds, then the prompt comes back. I also tried sudo boot-repair and gksudo boot-repair and gksu boot-repair.

    Kinda lost my love for ubuntu, more changey than Vista or Win8
    So LMDE it is for me until there’s a way to update my distro and not
    have everything disappear.


  5. Question Re: error: invalid arch independent ELF magic Precise Pangolin 12.04

    @cacycleworks: strange. What does «sudo boot-repair -d» return? you can also use it from Boot-Repair-Disk or Ubuntu-Secure-Remix.


  6. Re: error: invalid arch independent ELF magic Precise Pangolin 12.04

    $ sudo boot-repair -d

    ** (glade2script:11501): WARNING **: Command line `dbus-launch —autolaunch=a7bad5f6f122f15a4b6662cb00000003 —binary-syntax —close-stderr’ exited with non-zero exit status 1: No protocol specifiednNo protocol specifiednAutolaunch error: X11 initialization failed.n
    No protocol specified
    No protocol specified
    Traceback (most recent call last):
    File «/usr/bin/glade2script», line 49, in <module>
    from gi.repository import Gtk
    File «/usr/lib/python2.7/dist-packages/gi/importer.py», line 76, in load_module
    dynamic_module._load()
    File «/usr/lib/python2.7/dist-packages/gi/module.py», line 224, in _load
    overrides_modules = __import__(‘gi.overrides’, fromlist=[self._namespace])
    File «/usr/lib/python2.7/dist-packages/gi/overrides/Gtk.py», line 1533, in <module>
    raise RuntimeError(«Gtk couldn’t be initialized»)
    RuntimeError: Gtk couldn’t be initialized

    Kinda lost my love for ubuntu, more changey than Vista or Win8
    So LMDE it is for me until there’s a way to update my distro and not
    have everything disappear.


  7. Question Re: error: invalid arch independent ELF magic Precise Pangolin 12.04

    Thanks. I reported the bug here: https://bugs.launchpad.net/glade2script/+bug/1015643

    Do you have the same problem when using Boot-Repair-Disk (without updating its packages) ?


  8. Re: error: invalid arch independent ELF magic Precise Pangolin 12.04

    The first time I’ve tried boot repair was in this thread. It doesn’t do anything for me…

    Kinda lost my love for ubuntu, more changey than Vista or Win8
    So LMDE it is for me until there’s a way to update my distro and not
    have everything disappear.


  9. Question Re: error: invalid arch independent ELF magic Precise Pangolin 12.04

    Until now, you tried Boot-Repair installed on a Ubuntu 12.04 CD, didn’t you?

    If yes, please could you create a CD or live-USB of Boot-Repair-Disk (which is a Debian CD with Boot-Repair pre-installed), then boot on it, and tell me if the window below appears?

    If it does not appear, please open a terminal, type «boot-repair» and tell me the output.

    I ask this because Boot-Repair on 12.04 is a GTK3 version, while on Boot-Repair-Disk it is a GTK2 version, so i wonder if you have the same bug on the GTK2 version.


Bookmarks

Bookmarks


Posting Permissions

Понравилась статья? Поделить с друзьями:
  • Error invalid ajax data
  • Error interpreting jpeg image file not a jpeg file starts with 0x52 0x49
  • Error internet unrecognized scheme
  • Error internet timeout warframe
  • Error internet sec cert revoked