-1

I installed Ubuntu 12.04. I erased a GRUB file by mistake, now grub rescue doesn't let me do anything. I used Boot Repair, and now my PC is stuck at:

error: invalid arch independent ELF magic.
grub rescue>

I used Boot Repair, but it looks like my laptop can't detect my USB drive, also I can't access the BIOS.

karel
  • 122,292
  • 133
  • 301
  • 332

1 Answers1

0

If you can boot from a cd which logically you must've had to do when you installed you can download a supergrub cd which will allow you to boot into your ubuntu installation. From there just run:

sudo grub-install /dev/sda
sudo update-grub
nettux
  • 151