Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

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

How can I customize my kernel configuration? I mean use same kernel version as Ubuntu offered.

share|improve this question
up vote 3 down vote accepted

You would need to recompile the kernel to change the configuration. Some configurations are known incompatible with Ubuntu userspace: these are documented in the enforce file. Self-built kernels are typically not supported by Ubuntu Developers, so take care when building such kernels.

The documentation with the procedure you ought follow is at

share|improve this answer
In that page , I can not understand the following lines "Since Ubuntu Lucid (10.04) the image postinst no longer runs the initramfs creation commands. Instead, there are example scripts provided that will perform the task. These scripts will work for official kernel images as well. " I use 11.04 . I do NOT do this step . But I can boot with new kernel . What do those lines mean ? Thanks – waterloo2005 Jul 15 '11 at 15:27
From wha I can tell, if you have the right other packages installed, you don't need these entries, because they will be provided by the other packages (e.g. initramfs-tools adds scripts for creation/removal of initramfs, for properly installed kernels). On the other hand, if you're constructing a system from almost nothing, this may not be the case, and you'd need extra scripts. – Emmet Hikory Jul 16 '11 at 20:13
"Since Ubuntu Lucid (10.04) the image postinst no longer runs the initramfs creation commands." ---- I use 11.04. Do I need to do this ? Thanks – waterloo2005 Jul 17 '11 at 8:57
If it works without it, as you describe, you don't need to do it (11.04 is two releases newer than 10.04). Some people may have more heavily customised systems, and may find that they are not generating an initramfs automatically, preventing boot. In this case, they may need to force the generation through a manual script. – Emmet Hikory Jul 17 '11 at 14:44

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.