Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am running SUSE 11.2. Ubuntu is on the extended partition /dev/sda5, but when I boot I get

Error 19: Linux kernel must be loaded before initrd

This is the Ubuntu entry in menu.lst:

#Don’t change this comment – YaST2 identifier: Original name: none#
title Ubuntu 10.04
root (hd0,4)
kernel /vmlinuz root=/dev/sda5 ro quiet splash
initrd /initrd.img
share|improve this question

It could be that your vmlinuz file is not found. It could be that this is because it is in the /boot directory on sda5, hence you should change you line to

title Ubuntu 10.04 root (hd0,4) kernel /boot/vmlinuz root=/dev/sda5 ro quiet splash initrd /initrd.img

or if it is place somewhere else, where ever its place is.

(You might need to do the same with the initrd.img file)

Also, check if the vmlinuz and initrd.img files for ubuntu have exactly this name. Usually, they have the kernel version and type in the name (i.e. vmlinuz-2.6.35-22-generic)

share|improve this answer
on Ubuntu there is a symlink from /vmlinuz to the actual kernel (samething for /initrd.img) so the thing to be checked is the status of those links, not /boot/vmlinuz or /boot/initrd.img – phunehehe Oct 15 '10 at 16:33
How can you do this with more than one kernel? You can only ever link to one – txwikinger Oct 15 '10 at 16:49
how do i check if the vmlinuz file is there or not I try: mount /dev/sda5 /mnt but i dont see the vmlinuz file for ubuntu – Vaolter Oct 16 '10 at 10:57

You could try the following :

mount /dev/sda5 /mnt
cd /mnt
ls -l boot vmlinuz initrd.img

Check that the locations pointed to by the symlinks actually exist and are the correct files you're looking for.

For example on my box, vmlinuz -> boot/vmlinuz-2.6.32-25-generic.
You can the modify your grub configuration to point to the right files as stated in txwikinger's answer.

Another quick way to debug this is to get a prompt in grub (by pressing C in grub1, not sure about grub2), then you can use tab-completion to list available files, and test it on-the-fly.

share|improve this answer

Your Answer


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.