LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   the kernel directory under the path /lib/modules/kernels is empty. (https://www.linuxquestions.org/questions/linux-newbie-8/the-kernel-directory-under-the-path-lib-modules-kernels-is-empty-699577/)

mohanrajd 01-24-2009 07:59 AM

the kernel directory under the path /lib/modules/kernels is empty.
 
Hi all,

i am a newbie. i have using fedora core 6. i had my network up and other devices working in the system . i was trying to use gcov for which i just selected it the settigs using make menuconfig command under kernel hacking. after that i reebooted the system. when i rebooted the network, sound and other devices went down. it said some error like device driver is not present. when i tried to fix the problem, i found that the kernel directory in /lib/modules/kernel/ is empty.

I found that the drivers .ko files are present in this kernel directory. all the files ans folders are missing.

due to this, my ntfs, ethernet, sound are gone. i dont know what all are missing.

Please some one help me to get back to the working kernel or get the .ko files back in the kernels directory. its urgent. plz...

what i did is here;

first downloaded the 2.6.18-gcov.patch file and placed it in the usr/src/kernels/ directory.

Then executed the command:
#patch -p1 < ../2.6.18-gcov.patch

then did a #make. but it failed.

After that executed
#make menuconfig

here i enabled the gcov options under kernel hacking

Then reebooted the system, after which i have this problem.

Plz Somebody help...

Thanks for your help in advance,
Mohanraj D

Didier Spaier 01-25-2009 03:01 AM

I do not know what this patch is for, but 'make menuconfig' by itself only configure the kernel, in other words set up its settings and what it will be included in it, either built-in or as modules, but do not compile nor install anything.

After that you need to issue 'make' then 'make modules install' commandd, and put the freshly made kernel in it's place, probably /boot.

And then, if you are a lilo user, edit /etc/lilo.conf accordingly and run lilo.

You will find explanations how to proceed in the README file at the top level of your source linux directory and in various how-to and tutorials.


All times are GMT -5. The time now is 01:48 AM.