Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have had Ubuntu 12.04 x86 (32-bit) for a while now and decided to erase it and reinstall it just to clear some memory and start over.

I have performed this operation before and it worked fine, but after restarting this time, I got an ELF header smaller than expected error and a grub rescue prompt. I am not so concerned about the error this time because I know that the operating systems and all my files are still there (at least I think they are after running the ls command at the prompt - example drive: (hd1, msdos6)?).

I would boot from the Live CD and make changes inside, but the optical drive does not work, and my Dell Optiplex GX260 does not have the BIOS capability to boot from the USB drive I installed. I have done some research, and it sounds like GRUB is corrupted and/or did not install right. Maybe this had something to do with the fact that it was already installed, or where it was installed.

Do I have to set the path and root drive for GRUB, or what can I do to get the operating system up and working again?

share|improve this question
    
did you try to press the e key when you are under Grub? –  user827992 Jul 6 '12 at 21:20
add comment

2 Answers

Using another PC, download "Boot-Repair-Disk," burn the ISO image to a CD and boot from it. It should work. (It did for me.)

share|improve this answer
    
boss his optical drive is not working and bios wont allow flash boot. so what use of making bootable image –  AthloX Aug 1 '12 at 8:04
add comment

You can type the command at grub rescue:

grub-install /dev/sda

Quit the grub rescue mode and reboot the machine.

share|improve this answer
    
unknown command grub-install :-( –  garakkio Oct 24 '13 at 7:28
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.