Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 01-24-2009, 07:59 AM   #1
LQ Newbie
Registered: Jan 2009
Posts: 1

Rep: Reputation: 0
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

Last edited by mohanrajd; 01-25-2009 at 02:29 AM.
Old 01-25-2009, 03:01 AM   #2
Didier Spaier
LQ Addict
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-14.2 on Lenovo Thinkpad W520
Posts: 7,621

Rep: Reputation: 2558Reputation: 2558Reputation: 2558Reputation: 2558Reputation: 2558Reputation: 2558Reputation: 2558Reputation: 2558Reputation: 2558Reputation: 2558Reputation: 2558
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.

Last edited by Didier Spaier; 01-25-2009 at 03:02 AM. Reason: Typo


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
lib/modules/ ; no such file or directory krishhX Linux - Software 5 08-20-2008 08:32 AM
Kernel Modules in /lib/modules kaplan71 Linux - General 1 04-02-2007 11:00 AM
2 kernels 1 set of lib/modules?? fred22 Linux - General 2 02-24-2005 02:31 AM
/lib/modules/.../kernel/drivers empty? maxware Linux - General 7 03-05-2004 07:58 PM
/lib/modules.dep empty fpriami Linux - Networking 0 09-24-2003 08:36 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:16 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration