LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 01-11-2004, 03:48 AM   #1
melinda_sayang
Member
 
Registered: Dec 2003
Location: Petaling Jaya
Distribution: Ubuntu
Posts: 475

Rep: Reputation: 31
Angry Recover old modutils


I have screw up my system. I downloaded and installed module-init-tools-3.0-pre5 from /////kernel.org/pub/linux/kernel/people/rusty/modules///// . But I forgot to read README.
When you want to install module-init-tools-3.0-pre5, you have to do like this:
./configure
make moveold
make
su
make install
But because I forgot to read README, I do like this:
./configure
make
su
make install
It means that I HAVE REMOVED MY OLD MODUTILS. And......., when I try to install NVIDIA driver in any kernel ( I have couples kernel in my system ), it failed with following reason:
-> Kernel module load error: Kernel requires old insmod, but couldn't run
/usr/local/sbin/insmod.old: No such file or directory
Any idea how to recover my old modutils???
If the answer for my problem is reinstalling the old package, where can I get one???? Is it in Fedora cd???

Thanx you.
 
Old 01-11-2004, 04:45 AM   #2
wiraone
Member
 
Registered: Nov 2003
Location: Diawang-awangan
Distribution: Ubuntu Hoary!
Posts: 319

Rep: Reputation: 30
Selamat siang,

Install the original modutils RPM from your 1st CD .. that should fix it hopefully.
 
Old 01-11-2004, 09:34 AM   #3
melinda_sayang
Member
 
Registered: Dec 2003
Location: Petaling Jaya
Distribution: Ubuntu
Posts: 475

Original Poster
Rep: Reputation: 31
Unhappy Not working

#cd /mnt/cdrom1/Fedora/RPMS
#rpm -Uvh modutils-2.4.25-13.i386.rpm
Preparing... ########################################### [100%]
package modutils-2.4.25-13 is already installed

# rpm -e modutils
error: Failed dependencies:
modutils >= 2.3.11-5 is needed by (installed) kudzu-1.1.36-1
modutils >= 2.4.18 is needed by (installed) kernel-2.4.22-1.2115.nptl
modutils >= 2.3.21-4 is needed by (installed) irda-utils-0.9.15-1.1
modutils >= 2.3.11-5 is needed by (installed) initscripts-7.42.2-1
/sbin/insmod.static is needed by (installed) mkinitrd-3.5.14-1
# apt-get install modutils
Reading Package Lists... Done
Building Dependency Tree... Done
modutils is already the newest version.
0 upgraded, 0 newly installed, 0 removed and 1 not upgraded.

#apt-get remove modutils
Never think to try it........

So, any idea..........................
 
Old 01-11-2004, 02:28 PM   #4
wiraone
Member
 
Registered: Nov 2003
Location: Diawang-awangan
Distribution: Ubuntu Hoary!
Posts: 319

Rep: Reputation: 30
$rpm -ivh --force modutils-2.4.25-13.i386.rpm

Last edited by wiraone; 01-11-2004 at 02:30 PM.
 
Old 01-11-2004, 07:37 PM   #5
melinda_sayang
Member
 
Registered: Dec 2003
Location: Petaling Jaya
Distribution: Ubuntu
Posts: 475

Original Poster
Rep: Reputation: 31
Question ok, it works but........... still can't install nvidia kernel

Ok, I have successfully install old modutils but when I try to install nvidia driver, I got the same error.
-> Kernel module load error: Kernel requires old insmod, but couldn't run
/usr/local/sbin/insmod.old: No such file or directory

So I try to make symbolic link to insmod:
# ln -s /usr/local/sbin/insmod /usr/local/sbin/insmod.old

I did this because I think /usr/local/sbin/insmod is from old package now because I have installed old modutils package from Fedora cd. But I got error:
-> Kernel module load error: WARNING: /usr/local/sbin/insmod.old: I am not the
old version!
insmod: error inserting './usr/src/nv/nvidia.o': -1 Unknown symbol in
module

So any idea????
 
Old 01-12-2004, 02:49 PM   #6
wiraone
Member
 
Registered: Nov 2003
Location: Diawang-awangan
Distribution: Ubuntu Hoary!
Posts: 319

Rep: Reputation: 30
From your error message, it seems that you've installed the module inits into /usr/local/bin .. I'm not sure if module inits have uninstall option at the makefile level .. you need to remove them first ..
 
Old 01-14-2004, 12:05 AM   #7
melinda_sayang
Member
 
Registered: Dec 2003
Location: Petaling Jaya
Distribution: Ubuntu
Posts: 475

Original Poster
Rep: Reputation: 31
Smile Ho Ho Ho Ho, I did it!!!!

First there were insmod, insmod.static, insmod_ksymoops_clean files in /usr/local/sbin and /sbin directory. So I removed them. No!!!! I just renamed them. And when I installed modutils-2.4.25-13.i386.rpm from the Fedora cd 1, it put the insmod, insmod.static, insmod_ksymoops_clean files in /sbin directory. So I just copied them into /usr/local/sbin directory.

I tried to install Nvidia driver. And it successed. But I got following error.

executing: '/usr/local/sbin/depmod -aq'...
Version requires old depmod, but couldn't run /usr/local/sbin/depmod.old: No
such file or directory
ERROR: Failed to execute `/usr/local/sbin/depmod -aq`: Version requires old
depmod, but couldn't run /usr/local/sbin/depmod.old: No such file or
directory
-> The installer has encountered the following error during installation: 'Fail
ed to execute `/usr/local/sbin/depmod -aq`'. Continue anyway? ("no" will ab
ort)? (Answer: Yes)

With that following error, I know that Nvidia always use modules related command ( insmod, rmmod, depmod ) in /usr/local/sbin directory. But the files in that directory are from new version and Nvidia need the old version which are in /sbin directory. So to handle that error, I think I just need to copy depmod files from /sbin to /usr/local/sbin directory. Now I can play Neverwinternights smoothly. Thanx U.

However why Nvidia try to use modules related command from /usr/local/sbin directory not from /sbin directory is still mistery for me.
 
Old 01-14-2004, 04:30 AM   #8
wiraone
Member
 
Registered: Nov 2003
Location: Diawang-awangan
Distribution: Ubuntu Hoary!
Posts: 319

Rep: Reputation: 30
Now I wonder why you need to manually install modules0init-tools? Any good reason behind it? If you want to run the latest and greatest kernel 2.6.1, FC1 modutils has already been updated and ready for it .. you do not need to upgrade anything ..
 
Old 01-14-2004, 07:33 AM   #9
melinda_sayang
Member
 
Registered: Dec 2003
Location: Petaling Jaya
Distribution: Ubuntu
Posts: 475

Original Poster
Rep: Reputation: 31
Talking Yup, it because I want to install the greatest kernel 2.6.1

It is because when I run "make modules_install" for kernel 2.6.1, I got the following warning or error:
Warning: you may need to install module-init-tools
See http://www.codemonkey.org.uk/post-halloween-2.5.txt
INSTALL drivers/net/dummy.ko
INSTALL drivers/block/floppy.ko
INSTALL drivers/usb/host/ohci-hcd.ko
INSTALL sound/pci/snd-intel8x0.ko
INSTALL sound/drivers/mpu401/snd-mpu401-uart.ko
if [ -r System.map ]; then /sbin/depmod -ae -F System.map 2.6.1; fi
 
Old 01-14-2004, 02:26 PM   #10
wiraone
Member
 
Registered: Nov 2003
Location: Diawang-awangan
Distribution: Ubuntu Hoary!
Posts: 319

Rep: Reputation: 30
Ngak payah .. I have no problem running kernel 2.6.1 (recompiled it myself) with FC1 .. no additional mod-utils installed .. I could recompile nvidia driver w/o any problem too.
 
  


Reply



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
modutils-2.4.25 error rahul_jain_9684 Linux From Scratch 3 05-07-2005 03:53 PM
Where is kernel modutils weissmuller Linux - Software 2 07-06-2004 11:05 AM
Can't find modutils for 2.6.4 trainpic Linux - General 3 04-22-2004 10:06 AM
Don't see /etc/modules ans /etc/modutils deepika Linux - General 2 07-02-2003 09:52 AM
Modutils emanners Linux - General 0 09-16-2001 05:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 07:10 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
Open Source Consulting | Domain Registration