LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-16-2003, 08:11 AM   #1
Ekpyrotic
Member
 
Registered: Jul 2003
Distribution: Mandrake, Debian, Fedora, Gentoo (almost)
Posts: 57

Rep: Reputation: 15
/usr/src/linux ??


Hi all. I've just installed Mandrake 9.1 on my computer, and when trying to get my internet to work ran across several sources telling me to "install modules" or "recompile my kernel". These sources always seem to mention the kernel being in the "/usr/src/linux" directory.

Unfortunately, I don't seem to have this directory.

I have found a file that might have something to do with the kernel in the "/root/boot" directory.

Reinstall?
 
Old 07-16-2003, 08:24 AM   #2
Pres
Member
 
Registered: Jun 2002
Location: Australia
Distribution: Slack 9.1
Posts: 232

Rep: Reputation: 30
On some distros, /usr/src/linux is a symbolic link to the current kernel source directory. It may point at /usr/src/linux-2.4.18 for example, or /usr/src/linux-2.4.21.

Just cd into the source path you want to be in. Now if /usr/src has no source in it, then you might have a little trouble, and you'd better install the source.

"Reinstall" is a much less needed option using Linux
 
Old 07-16-2003, 09:45 AM   #3
Ekpyrotic
Member
 
Registered: Jul 2003
Distribution: Mandrake, Debian, Fedora, Gentoo (almost)
Posts: 57

Original Poster
Rep: Reputation: 15
"/usr/src" has nothing in it but a folder called "rpm". Now, within "rpm there is a folder called "SOURCE" but that folder is empty.
 
Old 07-16-2003, 09:50 AM   #4
ksgill
Senior Member
 
Registered: Apr 2003
Location: Toronto, Canada
Distribution: Ubuntu Jaunty (9.04)
Posts: 1,044

Rep: Reputation: 45
Find out your kernel version by using this command:
uname -r
and then download your kernel specific source rpm from the net (use google)
 
Old 07-16-2003, 09:55 AM   #5
tcaptain
LQ Addict
 
Registered: Jul 2002
Location: Montreal
Distribution: Gentoo 2004 from stage 1 baby!
Posts: 1,403

Rep: Reputation: 45
Mandrake 9.1 doesn't install the kernel sources by default.

However the kernel source package is on the third CD, installing it is pretty easy either with RPM, URPMI or rpmdrake.
 
Old 07-16-2003, 10:11 AM   #6
Ekpyrotic
Member
 
Registered: Jul 2003
Distribution: Mandrake, Debian, Fedora, Gentoo (almost)
Posts: 57

Original Poster
Rep: Reputation: 15
Which of the following is the correct source file?

1) kernel-2.4.21.0.13mdk-1-1mdk.i586.rpm
2) kernel-enterprise-2.4.21.0.13mdk-1-1mdk.i586.rpm
3) kernel-secure-2.4.21.0.13mdk-1-1mdk.i586.rpm
4) kernel-smp-2.4.21.0.13mdk-1-1mdk.i586.rpm

P.S. Thanks for all your help so far.
 
Old 07-16-2003, 10:14 AM   #7
ksgill
Senior Member
 
Registered: Apr 2003
Location: Toronto, Canada
Distribution: Ubuntu Jaunty (9.04)
Posts: 1,044

Rep: Reputation: 45
uname -r
to find out your kernel version and then download that. And none of the above files is source file. source file looks like
kernel-source-2.4.21.0.13mdk-1-1mdk.i586.rpm
something like that
 
  


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
/usr/src/linux not there? blames Linux - Software 6 10-15-2004 06:06 AM
/usr/src/linux millennia DamnSmallLinux 6 07-24-2004 01:48 PM
/usr/src/linux? krackerroot Slackware 6 10-26-2003 02:31 PM
/usr/src/linux player_dos Linux - Newbie 2 07-20-2003 10:49 PM
Creating /usr/src/linux-<xx> from kernel.<xx>.src.rpm jmourik Linux - Newbie 2 02-19-2003 03:24 PM

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

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