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

i have created and installed a new kernel in my ubuntu system, but now i have added a new system call and created a new kernel, how do i set this new kernel as the one the OS should boot from.

dpkg -i kernel-image-2.6.deb

i tried this on my first kernel and this set the kernel to this one

then i added a new system call compiled the new kernel and called

dpkg -i kernel-image-2.6.Custom.deb

but now when i reboot it stays as the older kernel,

any ideas on how to switch kernels?????

thank you

share|improve this question

migrated from Oct 24 '10 at 15:31

This question came from our site for professional and enthusiast programmers.

the answer here may be grub.

also try holding down shift

these threads may help

share|improve this answer
i am using vmware fusion on my mac, so how do i get grub to boot prior to the automatic loading of the kernel – molleman Oct 24 '10 at 14:44
did you try shift? – Brandon Oct 24 '10 at 14:47
sweet cheers!!!! – molleman Oct 24 '10 at 14:52

When you install a kernel image produced by the normal packaging system, the new kernel is registered with the bootloader. The command to do this is indicated by the postinst_hook setting in /etc/kernel-img.conf; the default is update-grub.

With Grub2 (the default bootloader), under the default configuration, you will not see a menu at boot time unless you have another operating system besides Ubuntu. You can make the menu appear at boot time by pressing Shift when your computer boots (press the key after the BIOS has initialized the keyboard and hold it until the Grub menu appears). If you want the menu to always appear, edit /etc/default/grub and comment out the GRUB_HIDDEN_TIMEOUT setting. You can change the default booted kernel through the GRUB_DEFAULT setting.

share|improve this answer

You must log in to answer this question.

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