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?