LinuxQuestions.org
Help answer threads with 0 replies.
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 07-24-2002, 09:01 PM   #1
jakublgz
Member
 
Registered: Apr 2002
Location: Wood Dale IL
Distribution: redhat, slackware
Posts: 110

Rep: Reputation: 15
Lightbulb finding module dependencies


Hello.
I was running rh 7.3 for over a month with no any problems. One day I come back from work and my system was not showing on the network. Well...I restarted system and it got stuck on
"finding module dependencies" I did it a couple of times and it still does the same thing. Well my question is...why did this happen?
I did not install anything new, or compile anything.
How do I fix this now?
Thank you for all help.

Jakub
 
Old 07-25-2002, 12:37 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Try to boot from a boot disk/installation cd and run
depmod
 
Old 07-25-2002, 10:06 PM   #3
jakublgz
Member
 
Registered: Apr 2002
Location: Wood Dale IL
Distribution: redhat, slackware
Posts: 110

Original Poster
Rep: Reputation: 15
Question

Hello.Thank you for the respond.
I used rewrite to make a boot disk with boot.img and it works fine. How can I run the installation program now so it will upgrade modules and kernel only instead of maiking a clean installation and deleting all the config files I've had before.
I did run boot: linux rescue but that brought me into prompt
sh-2.05a# and I was not able to run depmod from there.
Please give me a hint how to fix my prob. Thank you.

Jakub.

Last edited by jakublgz; 07-25-2002 at 10:08 PM.
 
Old 07-25-2002, 10:31 PM   #4
jetblackz
Member
 
Registered: Mar 2002
Location: Debian Galaxy
Distribution: Debian
Posts: 711

Rep: Reputation: 30
sh-2.05a# and I was not able to run depmod from there
--
Of course, you were in rescue mode. You had to mount the installed Linux partition.

mkdir /mnt/temp
mount /dev/hda1 /mnt/temp
cd /mnt/temp/lib/modules/2.4.9-34
/mnt/temp/sbin/depmod

Replace the bunch of numbers with yours.

ls /mnt/temp/lib/modules

Did you add/remove any hardware?
 
Old 07-26-2002, 04:53 AM   #5
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Well, small misunderstanding. I thought you can't boot to your system at all. It looks you can So run it and try "depmod" when you log in as root.
 
Old 07-26-2002, 08:28 PM   #6
jakublgz
Member
 
Registered: Apr 2002
Location: Wood Dale IL
Distribution: redhat, slackware
Posts: 110

Original Poster
Rep: Reputation: 15
Lightbulb

Hello. Thank you again for all help.
Well I just mounted my harddrive into /mnt/temp. Now when I go into /mnt/temp and do ls I don't see all the folders I used to have there and staff neded to run rh. I am showin here :
System.map
System.map-2.4.18-3
boot.0300
boot.b
chain.b
config-2.4.18-3
grub
initrd-2.4.18-3.img
kernel.h
kernel.h-2.4.9
lost+found
map
message
module-info
module-info-2.4.18-3
os2_d.b
vmlinux-2.4.18-3
vmliuz
vmlinuz-2.4.18-3
Well I dont know what to thing now...was I hacked and everything else was deleted?
Please give me a hint.
Should I be able after mounting that drive to see ale data on it?
When I type depmod I am getting the following message :
Can't open /lib/modules/2.4.18-3BOOT/modules.dep for writing.
Thank you.

Jakub

I just typed in at LILO linux emergency and loged in as root.
After typing depmod
hda: read_intr: status=059 {DriveREady SeekComplete DataRequest Error }
hda: read_intr: error=0x40 {UnvottctableError }, LBAsect=1676440, sector=1573624

Is this beacuse emergency mode does not let you write to harddrive ?
Thank you .


Last edited by jakublgz; 07-26-2002 at 08:53 PM.
 
Old 07-27-2002, 06:08 AM   #7
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
This list of files - it looks you've mounted the partition where you have your /boot . The modules are in /lib. It should be the root partition (/), you can run
fdisk /dev/hda
(if it's your first hd), then p to print partitions; use q to exit.
Then mount those partitions and look which one is /. Mount it and follow jetblackz's instructions.
 
Old 07-27-2002, 09:35 AM   #8
jakublgz
Member
 
Registered: Apr 2002
Location: Wood Dale IL
Distribution: redhat, slackware
Posts: 110

Original Poster
Rep: Reputation: 15
HEllo.
I did evertyhing like you guys told me to.. step by step.
I mounted a right partition (in my case /dev/hda2)
After typing /sbin/mod
Can't opeb /lib/modules/2.4.18-3BOOT/modules.dep for writting

Dont know how to fix it.
 
Old 07-27-2002, 12:01 PM   #9
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Try to do it this way:
depmod -F /boot/System.map
Of course, use path to your real System.map (it tries to calculate dependencies to the kernel used for boot in "rescue" mode, so not the one you'd like to).
 
Old 07-28-2002, 12:11 PM   #10
jakublgz
Member
 
Registered: Apr 2002
Location: Wood Dale IL
Distribution: redhat, slackware
Posts: 110

Original Poster
Rep: Reputation: 15
Hello.
My system is fixed now, thank you for solving my problem.
Good luck.

Jakub.
 
  


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
Finding module dependencies PR0T0N Linux - General 1 02-12-2004 02:22 AM
Finding Module Dependencies???... CrAzY G Mandriva 7 01-18-2004 04:38 AM
Finding Module Dependencies???... CrAzY G Linux - Newbie 1 01-17-2004 12:22 PM
Finding module dependencies???? aaronmcwilliams Linux - Software 4 01-07-2004 01:43 AM
Finding Module Dependencies xAXISx Mandriva 1 12-07-2003 12:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:40 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