Server Fault is a question and answer site for system and network administrators. 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've got a system with two different kernel tree sources installed. One kernel boots perfectly fine, the other kernel panics from not seeing the hdd / label.

How do I compare two different kernel builds and determine which kernel models one has, that the other does not?

So far I've tried diff against two scisi module listings. There's got to be an easier way!

share|improve this question
up vote 4 down vote accepted

The options are going to depend on your situation. Do you have two separate source trees as where the kernels were compiled? If so, the .config file in the top level directory of the source will reflect the configuration.

If I had to guess without enough details, I'd suggest that you may not have selected the appropriate drivers for the disk controllers.

On the kernel that boots, if the necessary options[1] are compiled, you can reference /proc/config.gz. Unfortunately, this will not help you much as one of the kernels will not boot. Nevertheless, it could help to compare what is compiled on the working kernel, however, and you could update the broken configuration accordingly.

Certain distributions include the config for the compiled kernel with the package and put it in /boot.

[1] These options:

share|improve this answer
Excellent advice Warner, thank you. – bobby Jun 20 '10 at 0:30

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.