Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

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 2.6.32-21-generic , 2.6.32-38-generic and 3.0.0-20-generic. My current kernel is:-

$ uname -r

I want to use different kernel that is 2.6.32-21-generic. How can I do that?

share|improve this question

After the BIOS, press Esc repeatedly until you see a screen that lets you choose between kernels.

share|improve this answer
That I know. But can I do that I run my system in one kernel that is 2.6.32-38-generic but compile my driver using 2.6.32-21-generic kernel.? – androidbuddy Mar 7 '13 at 10:43
I'm not sure I understand your question. Please be more specific. – schaiba Mar 7 '13 at 10:46
Like at bootup I select kernel 3.0.0-20-generic.So my system will boot with same kernel.Now I have one test driver(module) which I want to compile for kernel 2.6.32-21-generic and run it. I want to do so because 2.6.32-21-generic is providing the functionality(which I am using in my driver) that 3.0.0-20-generic does not have in it. Hope you got my point. – androidbuddy Mar 7 '13 at 10:54
If I understand correctly, you want to use a driver compiled for version X with kernel version Y. That is not possible. – schaiba Mar 7 '13 at 11:05
thank you. Now I want to put need kernel in my PC.How can I do that? – androidbuddy Mar 7 '13 at 12:48

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.