Find the answer to your Linux question:
Results 1 to 7 of 7
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Howto get the kernel config file for a standard ubuntu kernel

    Hi all,

    how can I get the kernel config file for the standard kernel included in ubuntu 10.04?
    There are instructions on compiling your own kernel here, but it is not clear to me what config file I will be getting if I go through the misc. steps. Plus it seems like a lot of work to simply get the config file.

    Is it included in one of the source packages, maybe?

    Thanks! kai

  2. #2
    Linux User ptkobe's Avatar
    Join Date
    Feb 2008
    Torres Vedras, PT
    I think what you need is explained at, mainly at "Modify the source for your needs".

    Hope it helps

  3. #3
    Thanks for the hint.
    I install the linux-source package, which gave me a linux-source-...tar.bz2 archive in /usr/src/.

    There doesn't seem to be a config file included though:
    :src> bzcat linux-source-2.6.32.tar.bz2 | tar t | grep '\<config\>$'
    tar: Record size = 8 blocks
    The only config found is a shell script -- my understanding is that this is not what I am looking for in order to diff two kernel configurations.

    Any ideas?

  4. $spacer_open
  5. #4
    Linux User ptkobe's Avatar
    Join Date
    Feb 2008
    Torres Vedras, PT
    I think the config files you want are in the directory /usr/src/linux-source-2.6.32/debian.master/config/... (don't know if they are also in the bz2)

    The "Modify the source for your needs" talks about it, but I never tried it. Hope you may get a modified config file for your arch from it.

    You may also find your actual config in your /boot directory (for instance, /boot/config-2.6.22-14-generic).

    Sorry can't help more

  6. #5
    Thanks, Luis!

    There is no debian.master directory, only an ubuntu directory, which however does not contain config files.
    Your suggestion to look in the /boot/ directory will help though! So thanks very much.

    cheers, kai

  7. #6
    Hi Kai

    If you're currently running ubuntu, you ought to be able to run
    zcat /proc/config.gz
    to display the current kernel .config. To copy that to a file run
    zcat /proc/config.gz > ~/Desktop/kernel.config



    edit: to correct spelling mistake in first code box
    Last edited by ottembomb; 07-26-2011 at 12:06 AM. Reason: mispell

  8. #7
    Hm, I'm running ubuntu 10.04 and there is no config.gz in /proc.
    But thanks for the reply!


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts