LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-11-2010, 03:30 PM   #1
brianpbarnes
Member
 
Registered: Dec 2005
Posts: 143

Rep: Reputation: 15
Newest Ubuntu kernel yast install makes no /lib/modules/2.6.31-20-generic directory?


Hi,
Ubuntu 9.10 desktop/64 just automatically upgraded my kernel to 2.6.31-20. At reboot time, I noticed a bunch of "No such file" errors. Then my NFS mounts to my other machines failed:
root@trex:/mnt/vulcan.brianp# mount /mnt/vulcan.brianp
mount.nfs: No such device
The nfs mounts worked fine before the reboot. I know for sure because my TBird email folders are all on a central server and I just checked it.

Looking at my syslog, I see 9 messages like this:
Feb 11 14:17:56 trex modprobe: FATAL: Could not load /lib/modules/2.6.31-20-generic/modules.dep: No such file or directory

Looking in /lib/modules, I see there is no directory for this kernel at all:
brianp@trex:/lib/modules$ ll
total 28K
drwxr-xr-x 6 root root 4.0K 2009-11-02 11:13 2.6.28-11-generic
drwxr-xr-x 5 root root 4.0K 2009-05-09 11:14 2.6.28-12-generic
drwxr-xr-x 5 root root 4.0K 2009-08-10 10:52 2.6.28-13-generic
drwxr-xr-x 6 root root 4.0K 2009-11-02 11:13 2.6.28-14-generic
drwxr-xr-x 6 root root 4.0K 2009-11-02 11:14 2.6.28-15-generic
drwxr-xr-x 3 root root 4.0K 2009-09-19 10:14 2.6.28-15-server
drwxr-xr-x 6 root root 4.0K 2009-11-07 12:28 2.6.28-16-generic

How could it install a new kernel without making any modules for it?

Do I have to build a custom kernel and do a make modules-install? Will having a Frankenstein, 1/2 custom, 1/2 stock kernel wreak havoc on my sanity?

My last half dozen auto kernel updates have worked after a grub adjustment and without this problem. I can't believe my network still works without any modules. Huh?

Am I doing something really dumb?

Thank you,
BrianP


root@trex:/etc/init.d# ./nfs-kernel-server restart
* Stopping NFS kernel daemon [ OK ]
* Unexporting directories for NFS kernel daemon... [ OK ]
FATAL: Could not load /lib/modules/2.6.31-20-generic/modules.dep: No such file or directory
* Not starting NFS kernel daemon: no support in current kernel.

root@trex:/etc/init.d# updatedb; locate 2.6.31-20; echo done
done
root@trex:/etc/init.d# uname -a
Linux trex 2.6.31-20-generic #57-Ubuntu SMP Mon Feb 8 09:02:26 UTC 2010 x86_64 GNU/Linux
 
Old 02-11-2010, 03:39 PM   #2
irmin
Member
 
Registered: Jan 2010
Location: the universe
Distribution: Slackware (modified), Slackware64 (modified), openSuSE (modified)
Posts: 342

Rep: Reputation: 62
You can use depmod(8) to create modules.dep:

Code:
depmod 2.6.31-20-generic
But it requires kernel modules to be available. I would consider to reinstall the kernel package.

Last edited by irmin; 02-11-2010 at 03:41 PM.
 
Old 02-11-2010, 06:41 PM   #3
brianpbarnes
Member
 
Registered: Dec 2005
Posts: 143

Original Poster
Rep: Reputation: 15
Irmin,
How do I tell Ubuntu that it screwed up on the last kernel upgrade and needs to try again? I found this is synaptic:
linux-image-2.6.31-20-generic
Linux kernel image for version 2.6.31 on x86/x86_64
What's going to hit the fan when I reinstall this? What other stuff did it attempt to install that is going to break when I jerk this out from under it?

I am about ready to fully configure and build my own custom kernel, just like back in the heady, old, seat-of-your-pants Linux days. The maintenance and security hassles are the only reasons I don't make menuconfig right now and build a nice, lean, fully optimized kernel.

I can just change grub to default to the last, working kernel, ignore this defective one, and wait for the next one.

Hmmm...

BrianP
 
  


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
what is the best way to replace the generic modules when optimized kernel fails? Kristian2 Slackware 10 02-24-2009 07:25 PM
what is the best way to replace the generic modules when optimized kernel fails? Kristian2 Slackware 1 02-24-2009 03:16 PM
the kernel directory under the path /lib/modules/kernels is empty. mohanrajd Linux - Newbie 1 01-25-2009 03:01 AM
lib/modules/2.6.22.5-31-default/source ; 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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:54 AM.

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
Open Source Consulting | Domain Registration