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'm having an issue and I hope someone can help me,

I installed ubuntu 12.10 on my computer (along side windows 7) from a live cd, but when I rebooted my computer after a succefull installation, I get grub prompt, when I type boot in it, it prints "Error 8: Kernel must be loaded before booting".

So I searched and I found this link : Loading Ubuntu From Grub, but when I type linux /vmlinuz root=/dev/sda5 I get this message "Warning! No such command: linux"

Does anybody have any idea about what I should do ?

Note that I reinstalled ubuntu but still get the same issue, and that this is not my first time installing ubuntu (I installed a lot of versions a dozen of times before and this is the first time I face this issue).

When I type : kernel /vmlinuz root=/dev/sda5 instead of : linux /vmlinuz root=/dev/sda5 I get Error 15: File not found (I also tried sda4 since find /vmlinuz is printing hd(0,4))

share|improve this question

1 Answer 1

Have you tried booting from a livecd, chrooting into your ubuntu partition(s), and manually running '# grub-mkconfig -o /boot/grub/grub.cfg'?

share|improve this answer
    
Thank you for your answer, When I do as you said, I get this error : /usr/sbin/grub-probe: error: cannot find a device for / (is /dev mounted?). –  Oussama Oct 30 '12 at 17:09
    
You did not chroot into your ubuntu partition correctly. First create a directory in /media (e.g # mkdir /media/ubu). Then mount your ubuntu / partition into that directory (e.g # mount /dev/sda1 /media/ubu note that this example depends on which partition is mounted as / in ubuntu). Then # chroot /media/ubu. At this point, the grub command should work. –  astex Oct 30 '12 at 19:25

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.