drbd modules not found

Asked by Ali Mehrabian

Hi

I extracted the kernel-2.6.34 in home/name/usr/src and install the new kernel(I did not use an alternative directory for output files e.g O=/home/name/buil/kernel). I found that the drbd module is not installed, so I followed the commands below to install the drbd

I activate the all universe components in etc/apt/sources.list
apt-get update
apt-get install drbd8-utils drbd8-module-source \
  build-essential module-assistant
module-assistant auto-install drbd8

but the installation was failed with the following errors

1.Ignoring this package. Maybe you need to add something to sources.list, maybe the contrib and non-free archives.

2.Bad luck, the kernel headers for the target kernel version could not be found and you did not specify other valid kernel headers to use.

3.If the running kernel has been shipped with the Debian distribution, please install the package linux-headers-2.6.34. If your kernel source tree (or headers) is located in some non-usual location, please set the KERNELDIRS environment variable to the path of this directory, or (alternatively) specify the source directory we build for with the --kernel-dir option in module-aistant calls.

I tried the --kernel-dir=/lib/modules/2.6.34 (there is a 2.6.34 folder).
output: not valid kernel version in /lib/modules/2.6.34.

I tried to run on a system with kernel-headers-2.6.34 installed on but again I got the same errors.

I will greatly appreciate if some one can help me

Best
Ali

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Greg Beam (ki7mt) said :
#1

Hi Ali,

I've ran into similar issues on test-compiling modules. I followed the section "Alternative Build Method: The old Fashion Debian Way" on the following link: https://help.ubuntu.com/community/Kernel/Compile

Also, on 2.6.32 + kernels, look into using { make localmodconfig } for modules used on your system as well as, review the section on "Rebuilding linux-restricted-modules".

Hope this helps.

KE1HA

Can you help with this problem?

Provide an answer of your own, or ask Ali Mehrabian for more information if necessary.

To post a message you must log in.