Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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

so when I make a custom built kernel, the modules folder is way bigger than the shipped one any idea why?

joel@joel-UX31E:~$ du --max-depth=1 -h /lib/modules/

140M    /lib/modules/3.2.6-030206-generic
2.0G    /lib/modules/3.2.6-test

joel@joel-UX31E:~$ diff linux/linux-3.2.6/.config /boot/config-3.2.6-030206-generic
< # Linux/x86_64 3.2.6 Kernel Configuration
> # Linux/x86_64 3.2.6-030206-generic Kernel Configuration
share|improve this question
up vote 6 down vote accepted

It is likely that your kernel modules include debug information. If you set the INSTALL_MOD_STRIP environment variable to 1 when installing the modules, the debugging information will be removed.

share|improve this answer
awesome, where did you find that information, i did a quick grep through make help output and I didn't find anything – vanjoe Feb 20 '12 at 6:42
You can find information about the various environment variables that affect the build process in the kernel documentation: – James Henstridge Feb 20 '12 at 7:21

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.