Super User is a question and answer site for computer enthusiasts and power users. 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

For some reason, my kernel got uninstalled.

I have only file called "initrd.img-2.6.26-1-xen-amd64.bak" in my /boot folder. The only other thing is a 'grub' folder.

I booted into a rescue OS, but is there a way to install a kernel manually so that I can boot into my original OS again?

Can I just download a vmlinuz file into that folder and then fix my menu.lst?

share|improve this question
1  
What distribution? – Bobby Feb 15 '10 at 9:52
up vote 2 down vote accepted

Exact details depend on what your distribution is, so you need to add that detail to your question, but you should be able to:

  1. mount your filesystems from an appropriate live/rescue CD
  2. chroot so that your are using those filesystems in that terminal rather than the live CD's
  3. ask your usual package management tools (yum/apt/what-ever) to reinstall the kernel package(s)

Assuming, of course, that the missing kernel is the only problem.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .