LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 01-24-2009, 08:59 AM   #1
mohanrajd
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 03:29 AM.
 
Old 01-25-2009, 04:01 AM   #2
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-14.2beta2 on Lenovo Thinkpad W520
Posts: 6,780

Rep: Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117
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 04:02 AM. Reason: Typo
 
  


Reply


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/2.6.22.5-31-default/source ; no such file or directory krishhX Linux - Software 5 08-20-2008 09:32 AM
Kernel Modules in /lib/modules kaplan71 Linux - General 1 04-02-2007 12:00 PM
2 kernels 1 set of lib/modules?? fred22 Linux - General 2 02-24-2005 03:31 AM
/lib/modules/.../kernel/drivers empty? maxware Linux - General 7 03-05-2004 08:58 PM
/lib/modules.dep empty fpriami Linux - Networking 0 09-24-2003 09:36 AM


All times are GMT -5. The time now is 09:17 PM.

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