Results 1 to 2 of 2

Thread: grub error: invalid arch independent ELF magic

  1. #1
    Join Date
    Jun 2005
    Location
    /world/OldEurope
    Beans
    184
    Distro
    Ubuntu 12.04 Precise Pangolin

    grub error: invalid arch independent ELF magic

    Hi,

    I installed Zentyal 3.01, which is based on Ubuntu 12.04, from a USB stick. This is a single operating system istallation with LVM and encryption, no Windows partition. When I tried to boot the system, I didn't get to the login screen, only the message
    Code:
    error: invalid arch independent ELF magic
    grub rescue >
    showed up. I then downloaded Ubuntu-Secure-Remix to try the tool Boot-Repair, but it didn't help. Searching the forum I found this thread. After booting the Live CD again (from a USB stick) I entered these commands:
    Code:
    sudo mount /dev/sda1 /mnt
    sudo grub-install --boot-directory=/mnt /dev/sda
    (/boot is on sda1). OK, after rebooting from hard disk I got to a Grub option screen allowing me to choose between normal or secure boot. When I choose normal boot, I get to the passphrase entry page (the disk is encrypted), but the mouse and keyboard don't work all of a sudden, so I can't enter anything. If I boot into secure mode, I also get to the point where the passphrase is needed, this time in text mode. But the keyboard here also doesn't work.
    It's strange, I never had any problems using my mouse and keyboard with this computer and a previous install of Zentyal (version 2.2). What's even more puzzling, is that now even before the disk is accessed the keyboard often doesn't work, so I'm having trouble to enter the BIOS (or UEFI or whatever)
    As I had my first shot on this with the tool Boot-Repair, I also uploaded a Boot Info Summary before and after the unsuccessful repair. Here they are: Before and after.

    I hope somebody here can help.
    Last edited by elektronaut; February 27th, 2013 at 10:54 PM.

  2. #2
    Join Date
    Jun 2005
    Location
    /world/OldEurope
    Beans
    184
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: grub error: invalid arch independent ELF magic

    OK, I finally got this solved. Contrary to my first impression, the tool Boot-Repair works. My problem now was with the unresponsive keyboard which wouldn't let me enter my passphrase. Solution was to use a PS2 keyboard, it seems for some reasons the USB drivers weren't loaded yet. I first did boot the rescue console and ran this command (not sure if it was necessary):
    Code:
    apt-get install --reinstall grub-efi-amd64
    Afterwards I rebooted normally and everything works fine now. In order to enable discovery of the USB keyboard at passphrase prompt I added the usb modules in the module definition file for initramfs-tools. See here: http://wiki.debian.org/Keyboard#How_...d_in_initramfs
    Last edited by elektronaut; February 27th, 2013 at 11:39 PM.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •